AI Agents for Beginners: Microsoft's Free 18-Lesson Course on Building Agents
Everyone is talking about AI agents, but most tutorials stop at a chatbot with one tool bolted on. AI Agents for Beginners is Microsoft's free, open course that walks you from the basic idea of an agent to running secure, scalable ones in production. It is MIT licensed and has passed 80,000 stars on GitHub.
What it is
The course is made up of 18 standalone lessons, so you can start wherever you like. Each one comes with a written lesson, a short video, Python code samples, and links to extra reading. The code uses Microsoft Agent Framework with Microsoft Foundry Agent Service, and the lessons have been translated into more than 50 languages, including Portuguese.
What you'll learn
- The fundamentals. What agents are, where they make sense, and how the main agentic frameworks compare.
- Design patterns. Tool use, planning, multi-agent setups, and metacognition, each with its own lesson.
- Agentic RAG and memory. How agents retrieve knowledge, manage context, and remember what matters.
- Protocols. Hands-on coverage of MCP, A2A, and NLWeb for connecting agents to tools and to each other.
- Real-world topics. Building trustworthy and secure agents, computer use agents, local agents, and deploying agents at scale in production.
Why it matters
Agents are moving fast, and the hard part is no longer calling a model; it's designing systems that plan, use tools safely, and don't fall apart in production. This course packs those ideas into short, practical lessons. It's a solid fit for developers who know some Python and want a structured path into agentic AI, and the design pattern lessons are useful even if you never touch Microsoft's stack.
Getting started
Fork or clone the repo, or open it in GitHub Codespaces. The full repository is large because of the translations, so the README shows a sparse clone that skips them. Install Python 3.12+ and run pip install -r requirements.txt, then follow the Course Setup lesson. Most samples need an Azure subscription with a Microsoft Foundry project, though some also support OpenAI-compatible providers. New to generative AI? Microsoft suggests starting with its Generative AI for Beginners course first.
View the repo on GitHub: github.com/microsoft/ai-agents-for-beginners
aka.ms/ai-agents-beginners | Course Setup | Discord

