Goal: Keep an eye on the weather in Toronto, Munich, London and Mauritius. Check every minute, notice what changed, and alert me when something matters.
Type start to begin.
What the agent is doing
1 · Observe
2 · Think
3 · Act
4 · Wait
How to create your own agent
An AI agent isn't just a chatbot. You give it a goal, and it works in a loop on its own: it observes, thinks, acts, then waits and does it again. Every agent has the same four parts:
1. A goalWhat it's trying to achieve. "Watch the weather in 4 cities and alert me when something matters."
2. ToolsWhat it can read and do. A weather service; showing alerts on screen.
3. A triggerWhat makes it run. You type "start", then every minute.
4. A brainHow it decides. Rules here; in a business agent, an AI model such as Claude or Copilot.
Exercise: build this agent yourself in 10 minutes
You need a free Claude account (claude.ai). No coding.
Go to claude.ai and start a new chat.
Click Copy prompt below, paste it into the chat and send.
Claude builds the agent as an app. If it shows on screen, type start. If it gives you a file, download it, open it in your browser, and type start.
Now change it: ask Claude to add your own city, change the alerts, or check every 5 minutes.
Build me a simple AI agent as a single web page (HTML with JavaScript, no API key needed).
Goal: watch the weather in Toronto, Munich, London and Mauritius and alert me when something matters.
How it works:
- I type "start" in a box to start it and "stop" to stop it.
- Every 1 minute it gets the current weather for each city from the free Open-Meteo API (api.open-meteo.com).
- Show each city as a card: temperature, weather, wind and local time.
- Show the agent's loop as 4 steps that light up: Observe, Think, Act, Wait.
- Keep a log in plain English of what it observed, what it thought, and what it did.
- Think: compare with the last check, name the warmest and coldest city, and spot rain, snow, storms, strong wind or freezing temperatures.
- Act: show an alert only when something new needs my attention. Don't repeat old alerts.
- Show a countdown to the next check.
Try these changes next
"Add Cape Town and tell me which city is best for a beach day."
"Only alert me if it's going to rain in London in the next hour."
"Add a 'pack for my trip' suggestion for each city."
From demo to a real work agent
A work agent like a Sprint Health Agent uses exactly the same four parts, just with work tools:
Weather Agent (this demo)
Sprint Health Agent
Goal
Alert me when the weather matters
Keep the sprint on track and flag risks early
Tools
Weather service
Read Jira; post to Teams or Slack
Trigger
Every minute
Every morning at 9am
Brain
Simple rules
An AI model that reads the board and suggests actions
Human in the loop
You decide what to do with the alert
The Scrum Master approves the action
To run an agent on a schedule without you, use a tool built for it, for example scheduled tasks in Claude, Microsoft Copilot Studio, n8n or Zapier. Start small: one goal, one or two tools, and a human who approves the actions.