An AI agent goes beyond chatting — it can plan, use tools and take actions to achieve a goal, looping until it's done.
The AI Agent Loop
How agents plan, act and observe.
Tap or hover a part to learn more.
The objective.
You give the agent a goal, e.g. 'research this topic and draft a summary'. The agent works out the steps to achieve it.
Check your understanding
1. What lets an agent affect the real world?
2. Why do agents need guardrails?
Keep learning
How agents work
- Goal — you give the agent an objective.
- Reason → Act → Observe — the LLM decides a step, calls a tool (search, an API, code, a database), observes the result, and repeats.
- Tools — agents connect to real systems via APIs, which is what makes them powerful.
- Memory — agents keep context across steps, sometimes with RAG.
- Multi-agent — several specialised agents can collaborate.
Agents can automate complex workflows — but autonomy adds risk (unintended actions, errors compounding), so guardrails, human approval and limited permissions matter (AI security).
