ai-agents-for-beginners: 18 free lessons to start building AI agents
Added · Updated
Made by Microsoft
View profile on GitHub (opens in a new tab)Learn how AI agents plan, call tools, remember context and work together, one lesson at a time.
Microsoft’s 18-lesson course is for developers and learners who want to start building agents, and each lesson stands on its own. Lessons pair a written guide, and for most a short video, with Python code samples built on Microsoft Agent Framework (Microsoft’s library for agents) and Microsoft Foundry, Azure’s hosted AI service. Topics run from tool use and agentic RAG (an agent that looks things up before answering) to multi-agent patterns, MCP and securing agents. Microsoft publishes the course under the MIT licence.
What it does
Each lesson teaches one piece of the agent puzzle — how agents plan, call tools, remember context, and work together — with runnable notebook examples instead of pure theory.
How to use it
Open any lesson in the browser and read the guide or watch its video. To run the code, fork or clone the repository (the setup page suggests a shallow or sparse clone, as the full repository is about 3 GB), install packages with pip install -r requirements.txt, sign in with az login, and open a notebook whose name ends in python-agent-framework.ipynb. It sends your prompts to a model deployed in your Foundry project and shows the agent’s replies.
Common use cases
- Run the Tool Use lesson’s notebook against your Foundry model and watch an agent decide when to call a code function, then use the function’s result in its answer.
- Follow the Agentic RAG lesson to give an agent a set of documents and ask questions, getting answers that draw on those documents rather than only on the model’s training.
- Work through the Multi-Agent Design Pattern lesson to set up several agents that split a task between them and return one combined result.
Can I use this?
Requirements Reading needs only a web browser. Running the code needs Python 3.12 or later, the Azure CLI, an Azure subscription, and a Microsoft Foundry project with a deployed model; the .NET samples need .NET 10 or later. Most notebooks sign in through az login rather than API keys, though a few lessons use keys. The setup page does not list hardware requirements.
Caveat The samples are built around Microsoft’s own services, so following along means using Azure; some samples also support other OpenAI-compatible providers. The later lessons do not all have videos yet.
Worth knowing An introduction: real agent systems need substantially more engineering, and framework APIs move fast. The code samples now use Microsoft Agent Framework with Microsoft Foundry and need an Azure subscription to run. Licensed under MIT.
Why it's here
- 693 people starred it on GitHub this week — 79,175 in total.
Numbers as of 8 November 2026, from BuildTube’s latest daily refresh.
Behind it
View sourceBuildTube has not run or verified this project. Everything above is written from what the creator published.
Made this?
Quick questions
- What is ai-agents-for-beginners?
- Each lesson teaches one piece of the agent puzzle — how agents plan, call tools, remember context, and work together — with runnable notebook examples instead of pure theory.
- What can I use ai-agents-for-beginners for?
- Run the Tool Use lesson’s notebook against your Foundry model and watch an agent decide when to call a code function, then use the function’s result in its answer; Follow the Agentic RAG lesson to give an agent a set of documents and ask questions, getting answers that draw on those documents rather than only on the model’s training; Work through the Multi-Agent Design Pattern lesson to set up several agents that split a task between them and return one combined result
- Can I run ai-agents-for-beginners on my computer?
- No install needed: it runs in your web browser. The setup page does not list hardware requirements.
- What do I need to use ai-agents-for-beginners?
- A browser to read; running the notebooks needs Python and the lesson dependencies.
- What license does ai-agents-for-beginners use?
- Licensed under MIT.
More from this week
- RAGFlow Ask questions about your documents and get cited answers
Upload documents and ask questions with traceable citations.
- agent-desktop Let AI agents read and click desktop apps
For developers building computer-use agents: agent-desktop lets an AI agent read and operate desktop apps on Mac, Windows or Linux from a command line.
- DeepTutor Study your own documents with a personal AI tutor
Read documents with page-by-page citations, practice daily and get video lessons from an AI tutor.
Explore by topic
Post this
Download share imageFor makers
Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.
README badge (Markdown)
[](https://buildtube.app/p/gh-microsoft-ai-agents-for-beginners/)Embed card (HTML)
<iframe src="https://buildtube.app/embed/gh-microsoft-ai-agents-for-beginners/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="ai-agents-for-beginners on BuildTube"></iframe>