Skip to content

mzwaMoj/agentic-ai-workflows

Repository files navigation

Building Agentic AI Applications - Beginner's Guide

Python 3.9+ OpenAI Azure

🎯 Overview

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.

What You'll Learn

  • πŸ€– 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

Architecture Overview

Here's what a multi-agent system looks like:

agentic-ai-flow-diagram.mov

πŸ“š What's Inside

This repository contains two parallel lesson tracks - pick the one that matches your API provider:

πŸ“‚ Lessons_OpenAI

Complete tutorials using OpenAI's API (GPT-4+)

  • Uses the new client.responses.create() format
  • Modern tool calling patterns
  • Direct OpenAI API integration

πŸ“‚ Lessons_AzureOpenAI

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!

�️ Learning Path

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

πŸŽ“ Prerequisites

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

πŸš€ Quick Start

Step 1: Clone the Repository

git clone <repository-url>
cd <repository-name>

Step 2: Choose Your Track

Pick OpenAI or Azure OpenAI based on what you have access to:

For OpenAI API:

cd Lessons_OpenAI

For Azure OpenAI:

cd Lessons_AzureOpenAI

Step 3: Follow the Setup Guide

Each folder has its own README.md with detailed setup instructions:

  1. Create a virtual environment
  2. Install dependencies
  3. Configure your API keys
  4. Start with Lesson 1

Step 4: Start Learning!

Open Lesson 1 and follow along. Each lesson includes:

  • πŸ““ Jupyter notebooks with explanations
  • πŸ’» Working code examples
  • βœ… Exercises to practice
  • 🎯 A project to build

πŸ”‘ What Makes This Different?

✨ Beginner Friendly

  • 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

🎯 Practical Focus

  • 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

πŸš€ Progressive Learning

  • 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

πŸ€– What You'll Build

Throughout these lessons, you'll create increasingly sophisticated AI agents:

Lesson 2: Simple Chatbot

from openai import OpenAI
client = OpenAI()

response = client.responses.create(
    model="gpt-4",
    input="Hello! Tell me a joke."
)
print(response.output_text)

Lesson 3: Web Search Agent

An agent that can search the internet and answer questions with current information.

Lesson 4: Database Agent

Convert natural language to SQL:

  • "Show me top 5 customers by spending" β†’ SQL query β†’ Results

Lesson 5: Document Agent

Ask questions about your PDF documents using RAG (Retrieval Augmented Generation).

Lesson 6: Multi-Agent System

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

Lessons 7-9: Production Deployment

Deploy your agents as APIs with monitoring, testing, and Docker containers.

�️ Repository Structure

β”œβ”€β”€ 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!

πŸŽ“ Learning Tips

For Complete Beginners

  1. Start with Lesson 1 - Don't skip the setup!
  2. Type the code yourself - Don't just copy-paste
  3. Experiment - Change values and see what happens
  4. Take breaks - These are complex concepts
  5. Join the community - Ask questions, share what you build

🌟 What You'll Master

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

πŸ“– Additional Resources

Official Documentation:

Community:

Further Learning:

🀝 Contributing

Found a bug? Have a suggestion? Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

πŸ“ License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published