Skip to content

AI Agents for Beginners

A free course of 18 lessons teaching beginners how to build AI agents, with Python code samples.

Stars
78.7k
Forks
25.8k
Licence
MIT
Language
Jupyter Notebook
Last update
4 days ago
Type
Learning resource

What it is

This is a course, not a software product, that teaches the basics of building AI agents. Each lesson has a written guide, a short video, and Python code samples built on Microsoft Agent Framework and Microsoft Foundry Agent Service. You can start with any lesson, since each covers its own topic.

  • Work through the lessons to learn core agent concepts and patterns
  • Run the code samples in the code_samples folder as starting points for your own agents
  • Fork the repository and adapt the examples to your own project
  • Use the linked Discord channel to ask questions while studying

Great for

  • Developers new to AI agents who want guided lessons with code
  • Students learning how agentic AI systems are structured
  • People who already know basic generative AI and want to move to agents
  • Readers who prefer working through example code in Jupyter-style notebooks

Not ideal for

  • People who want a ready-made agent product to use without coding, since this teaches building agents
  • Those without an Azure account, because the README says the main path requires Microsoft Foundry (Azure Account Required)
  • Readers looking for a framework-neutral comparison, since the examples centre on Microsoft tools
Step-by-step guide: how to use AI Agents for BeginnersInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Clone and build from source

    You'll need: Azure account for Microsoft Foundry · Python (version not stated in the README excerpt)

    Clone the repository with sparse checkout (skips translations, faster download)

    git clone --filter=blob:none --sparse https://github.com/microsoft/ai-agents-for-beginners.git

    Enter the project folder and set sparse checkout (Bash / macOS / Linux)

    cd ai-agents-for-beginners && git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'
  2. 2

    Run it

    • Clone the repository, using the sparse checkout command if you do not need translations
    • Read the Course Setup guide in 00-course-setup/README.md
    • Set up a Microsoft Foundry account and configure access as described in the setup guide
    • Open the first lesson, 01-intro-to-ai-agents, and run its code samples
  3. 3

    Get the most out of it

    • Start with the Course Setup guide, which the README links for configuration details
    • Read the lessons in the order of the lesson table, or jump to a topic you need
    • Use the extra learning links in the lesson table for deeper study
    • Ask questions in the Microsoft Foundry Discord channel linked in the README
    • Some samples support OpenAI-compatible providers such as MiniMax, per the README

Downloads

Strengths

  • Free, MIT-licensed, and organised as 18 lessons with text, video, and code
  • Lessons can be read in any order, so you can jump to the topic you need
  • Includes translations into many languages, according to the README

Trade-offs

  • The examples depend on Microsoft Foundry and an Azure account, which may cost money
  • The README does not describe a fixed schedule or prerequisites beyond the setup course, so the time commitment is unclear
  • Some lessons may depend on specific Microsoft framework versions that change over time

How it compares

ProjectStarsTypeLevelUpdatedBest for
ai-agents-for-beginners (this)78.7kLearning resourcebeginner4 days agoDevelopers new to AI agents who want guided lessons with code
generative-ai-for-beginners123kLearning resourcebeginner5 days agoDevelopers who know some Python or TypeScript and want a guided introduction to generative AI
langchain149kFrameworkintermediate4 days agoPython developers building LLM-powered applications
semantic-kernel28.7kLibraryintermediate4 days agoDevelopers already using Azure OpenAI or OpenAI who want a structured SDK for agents
awesome-ai-engineering22.5kCurated listbeginner15 days agoDevelopers who want an overview of the AI engineering topics covered in the description
Prompt-Engineering-Guide79.8kLearning resourcebeginner8 months agoPeople who are new to prompting and want structured lessons with examples

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.