AI Agents for Beginners: Build a Helper That Plans, Acts and Checks Its Work
Learn how AI agents work by building one in plain Python with free local models: tools, planning, memory, teams of agents, and keeping agents safe.

Build an AI agent that plans, acts and checks its work
An AI agent doesn't just answer: it decides what to do next, uses tools to do it, and keeps going until the job is done. This course shows you how agents really work by building one yourself in plain Python, with free models that run on your own computer: no accounts, no API keys and no cost.
You'll build Brightside Front Desk, an assistant for a (made-up) tutoring centre. Module by module it learns to check the timetable, answer from the centre's notes with sources, work out prices, plan multi-step tasks, hand billing questions to a second agent, remember each family, and ask a staff member before it books anything.
What you'll learn
- What an agent is (a model, tools and a loop) and when you shouldn't build one
- How tool calling works, writing the agent loop yourself, and designing tools a model can use well
- Agentic RAG: search as a tool, checking answers, and saying "I don't know"
- Planning with structured output, and letting an agent review its own work
- Teams of agents and hand-offs, and how to find what went wrong between them
- Context engineering and memory, and how memory goes wrong
- Safe agents: prompt injection, least privilege, human approval and a tamper-evident log
- MCP and A2A, testing and tracing an agent, cost, and agent frameworks
Before you start
You need some Python: variables, lists, dictionaries, functions and loops. Our free Python Foundations course covers it all. Generative AI for Beginners is a good first step but not required. You need a Windows, Mac or Linux computer with at least 8 GB of memory, or a free Google account to run everything in Google Colab instead.
How it works
- 8 modules, 24 lessons, about 9 hours including quizzes
- Every program in the lessons was run for real with the free models you'll use, and the lessons show what came back, including the agent's mistakes and how to fix them
- Starter files with every program, a cheat sheet, a quiz after each module and a certificate
Free forever, like every self-paced course on Avro Academy: all lessons, quizzes, downloads and your certificate. Our promise
Adapted from Microsoft's AI Agents for Beginners, MIT licence. Avro Academy is not affiliated with or endorsed by Microsoft. The full licence notice is in the last lesson.
Course outline
Module 1: What an agent is
From chatbot to agent, when an agent is the wrong tool, and setting up Ollama to meet Brightside Front Desk.
- From chatbot to agentFree preview12 min
- When an agent is the wrong toolFree preview12 min
- Set up Ollama and meet Front DeskFree preview25 min
- Module 1 quiz5 min
Module 2: Tools: letting the model act
How tool calling works, writing the agent loop yourself, and what makes a good tool.
- How tool calling works15 min
- Write the agent loop yourself25 min
- Good tools and bad tools20 min
- Module 2 quiz5 min
Module 3: Agentic RAG
Search as a tool, checking answers (and why the sums belong in code), and teaching an agent to say "I don't know".
- Search as a tool20 min
- Check the answer, then fix the cause25 min
- Say "I don't know"20 min
- Module 3 quiz5 min
Module 4: Planning and reflection
Breaking a goal into steps, plans as structured output checked in code, and letting an agent review its own work.
- Break a goal into steps20 min
- Plans as structured output25 min
- Let the agent review its own work25 min
- Module 4 quiz5 min
Module 5: Teams of agents
When one agent isn't enough, hand-offs and a coordinator, and reading what agents say to each other.
- When one agent isn't enough15 min
- Hand-offs and a coordinator25 min
- Watching agents talk20 min
- Module 5 quiz5 min
Module 6: Memory and context
What goes in the context window, short and long-term memory, and what happens when memory goes wrong.
- What goes in the context window20 min
- Short and long-term memory25 min
- When context goes wrong20 min
- Module 6 quiz5 min
Module 7: Safe and trustworthy agents
Prompt injection and other threats, a person approving risky actions, and a signed log of everything the agent did.
- What can go wrong25 min
- A person approves risky actions25 min
- A signed log of every action25 min
- Module 7 quiz5 min
Module 8: Agents in the real world
MCP and A2A, testing and tracing an agent, frameworks, and where to go next.
- Protocols: MCP and A2A15 min
- Testing, tracing and cost30 min
- Frameworks, what you built and where next20 min
- Final quiz5 min
