Welcome! This repository is your friendly, beginner-focused guide to building AI agents from scratch. Whether you're using OpenAI's API or Azure OpenAI, you'll learn to create intelligent applications that can search the web, query databases, process documents, and much more.
- π€ Build AI Agents - Create chatbots, search agents, and database assistants
- π§ Use Modern APIs - Work with OpenAI's latest response format and tool calling
- π Go From Zero to Production - Start with basics, end with deployable applications
- π Hands-On Learning - Every lesson includes working code and Jupyter notebooks
Here's what a multi-agent system looks like:
agentic-ai-flow-diagram.mov
This repository contains two parallel lesson tracks - pick the one that matches your API provider:
Complete tutorials using OpenAI's API (GPT-4+)
- Uses the new
client.responses.create()format - Modern tool calling patterns
- Direct OpenAI API integration
Identical lessons using Azure OpenAI Service
- Enterprise-grade deployment
- Same capabilities, Azure integration
- Follows Azure authentication patterns
Both tracks cover the same material - choose based on your API access!
Each lesson builds on the previous one, taking you from beginner to building production-ready AI agents.
| Lesson | What You'll Build | Key Concepts |
|---|---|---|
| 1. Environment Setup | Development environment | Python, virtual environments, API keys |
| 2. Chatbot Basics | Your first AI chatbot | Response API, prompting, conversations |
| 3. Web Search Agent | Agent that searches the web | Tool calling, function definitions, API integration |
| 4. Text-to-SQL Agent | Natural language database queries | SQLite, schema understanding, query generation |
| 5. Document Q&A Agent | Ask questions about documents | RAG, vector search, embeddings |
| 6. Multi-Agent System | Multiple specialized agents | Agent orchestration, routing, coordination |
| 7. Evaluation & Testing | Measure agent performance | Metrics, testing, quality assurance |
| 8. API Deployment | Deploy as REST API | FastAPI, endpoints, service architecture |
| 9. Production Ready | Deploy to production | Docker, monitoring, scaling |
What you need to know:
- Basic Python (variables, functions, loops)
- How to use a terminal/command prompt
- Basic understanding of APIs (helpful but not required)
What you need to have:
- Python 3.9 or higher installed
- An OpenAI API key OR Azure OpenAI access
- A code editor (VS Code recommended)
- About 2GB free disk space
git clone <repository-url>
cd <repository-name>Pick OpenAI or Azure OpenAI based on what you have access to:
For OpenAI API:
cd Lessons_OpenAIFor Azure OpenAI:
cd Lessons_AzureOpenAIEach folder has its own README.md with detailed setup instructions:
- Create a virtual environment
- Install dependencies
- Configure your API keys
- Start with Lesson 1
Open Lesson 1 and follow along. Each lesson includes:
- π Jupyter notebooks with explanations
- π» Working code examples
- β Exercises to practice
- π― A project to build
- No prior AI experience needed - We start from the basics
- Step-by-step explanations - Every concept is explained clearly
- Working examples - All code is tested and ready to run
- Learn by doing - Build real projects in every lesson
- Real-world projects - Build agents you can actually use
- Modern patterns - Learn the latest API formats and best practices
- Production ready - Go beyond tutorials to deployable applications
- Two API options - Works with OpenAI or Azure OpenAI
- Start simple - Basic chatbot in Lesson 2
- Add complexity - Web search, databases, documents
- Combine skills - Multi-agent systems in Lesson 6
- Deploy it - Production deployment guide in Lesson 9
Throughout these lessons, you'll create increasingly sophisticated AI agents:
from openai import OpenAI
client = OpenAI()
response = client.responses.create(
model="gpt-4",
input="Hello! Tell me a joke."
)
print(response.output_text)An agent that can search the internet and answer questions with current information.
Convert natural language to SQL:
- "Show me top 5 customers by spending" β SQL query β Results
Ask questions about your PDF documents using RAG (Retrieval Augmented Generation).
Multiple specialized agents working together:
- Router agent decides which specialist to use
- Web agent for current events
- SQL agent for database queries
- Document agent for company documents
Deploy your agents as APIs with monitoring, testing, and Docker containers.
βββ Lessons_OpenAI/ # Complete course using OpenAI API
β βββ lesson_1_environment_setup/
β βββ lesson_2_chatbot_basics/
β βββ lesson_3_rag_web_access/
β βββ lesson_4_text_to_sql/
β βββ lesson_5_document_rag/
β βββ lesson_6_multi_agent_systems/
β βββ lesson_7_evaluation_metrics/
β βββ lesson_8_api_deployment/
β βββ lesson_9_production/
β βββ requirements.txt
β
βββ Lessons_AzureOpenAI/ # Same course using Azure OpenAI
β βββ lesson_1_environment_setup/
β βββ lesson_2_chatbot_basics/
β βββ ... (same structure as above)
β
βββ README.md # You are here!
- Start with Lesson 1 - Don't skip the setup!
- Type the code yourself - Don't just copy-paste
- Experiment - Change values and see what happens
- Take breaks - These are complex concepts
- Join the community - Ask questions, share what you build
By the end of this course, you'll be able to:
β
Build conversational AI chatbots with memory
β
Create agents that search the web for real-time information
β
Convert natural language to database queries
β
Build document Q&A systems using RAG
β
Orchestrate multiple AI agents working together
β
Test and evaluate agent performance
β
Deploy agents as production APIs
β
Use modern tool calling patterns
β
Handle errors and edge cases gracefully
β
Monitor and scale AI applications
Official Documentation:
Community:
- OpenAI Community Forum
- Open an issue on this repository for help
Further Learning:
- OpenAI Cookbook - Advanced examples
- LangChain Documentation - Alternative framework
Found a bug? Have a suggestion? Contributions are welcome!
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - use it freely for learning or commercial projects!
This guide is a work in progress. Additional models including opensource models will be added