
Get a complete overview of what you will build in this course — a fully functional AI powered customer support system with three collaborating agents. Understand the tools and technologies used and what makes this course different from every other AI course out there.
Before writing any code, watch a complete walkthrough of the finished project. See the customer chat interface, Maya responding in real time, the manager and risk agents collaborating, and the live dashboard streaming every agent decision as it happens.
Learn how this course is structured and the best way to follow along. Understand what software you need to install, how the sections are organized, and how to get the most value from each lesson.
Understand what an AI agent actually is and how it differs from a regular chatbot or language model. A chatbot answers questions. An agent takes actions, calls tools, makes decisions, and works autonomously towards a goal. This lesson lays the foundation for everything you will build in this course.
Go deeper into the concept of Agentic AI — systems where AI operates autonomously, plans its own steps, and completes complex tasks without human intervention at every step. Understand why Agentic AI is the fastest-growing area in software development right now.
Tools are what make AI agents powerful. A tool is simply a function the agent can call to interact with the outside world — fetch data from a database, check an API, send an email. In this lesson, you will understand exactly what tools are and how Claude decides when to use them.
The agent loop is the heart of every AI agent. It is a while loop that keeps running until the agent has enough information to give a final answer. Claude responds, decides if it needs more data, calls a tool, gets the result, and loops again. Understanding this loop means understanding every AI framework ever built.
LangChain, AutoGen, CrewAI — you've heard the names. In this lesson, you will understand what these frameworks actually do under the hood. Spoiler — they are all built on the same agent loop you just learned. This course teaches you the foundation, not the wrapper.
Agentic AI is already being used in customer support, sales automation, fraud detection, coding assistants, and more. In this lesson, you will see real-world examples of multi-agent systems in production and understand the massive opportunity for developers who know how to build them.
Most AI tutorials use Flask or raw Python scripts. This lesson explains why Django is actually the superior choice for building production-ready AI agent systems. Your ORM becomes agent tools. Your models store conversation history. Your views handle agent requests. Everything you already know becomes the foundation of an intelligent system.
Create a brand new Django project from scratch. Install required dependencies, configure project settings, and set up the folder structure that we will use throughout the entire course. This is the foundation on which everything else is built.
Install and configure the MySQL server on your local machine. Understand why we use MySQL instead of SQLite for this project — production readiness, reliability, and compatibility with Railway deployment later in the course.
Connect Django to the MySQL database. Configure the database settings in Django, create the database, and verify that the connection is working correctly before building any models.
Build the Product model for CoolBreeze AC — our fictional air conditioning company. Add all required fields, register the model in Django admin, and understand how this model will be used by the AI agent tools later in the course.
Build the Order model with status choices, carrier, tracking number, delivery address, and all fields the AI agent needs to answer customer queries. This model is the core of the entire support system.
Build the RefundRequest model — the model that triggers manager and risk agent involvement. Every time a customer requests a refund, this model stores the request and becomes part of the fraud detection data.
Load realistic demo data using Django fixtures — CoolBreeze AC products, customer orders, refund requests, and test users. Having meaningful data from the start makes testing and recording much more realistic and impressive.
Customize the Django admin interface to display all models clearly. Add list display, search fields, and filters so you can easily inspect data during development and testing.
Build the customer login page using Django's built-in authentication system. Style it with Bootstrap to match the overall look and feel of the application.
Build the orders list page where customers can see all their orders at a glance. Display order status, product name, amount, and a link to each order detail page.
Protect all customer views using the login_required decorator so only authenticated users can access their orders. Implement logout functionality so customers can securely sign out.
Build the order detail page — the most important customer-facing page in the application. This is where customers will interact with Maya, the AI support agent. Display complete order information and prepare the layout for the chat interface.
Build the chat UI structure using Bootstrap components. Create the chat container, message bubbles for both customer and agent, and the input field with a send button. Focus on getting the layout right before adding any interactivity.
Bring the chatbox to life with JavaScript and CSS. Add message display logic, auto scroll to bottom, and basic styling for customer and agent messages. Understand how the frontend will communicate with the Django backend.
Implement the show and hide chat functionality triggered by a button click on the order detail page. Customers can open and close the chat window while still seeing their order information.
Learn how to store sensitive information like API keys securely using environment variables and python-decouple. Never hardcode secrets in your codebase — this lesson teaches you the right way to handle sensitive configuration.
Initialize a Git repository for the project, create a proper .gitignore file to exclude sensitive files, and push the project to GitHub. Version control is essential for any production project.
Before writing any agent code, understand the complete flow. Customer sends a message, Django receives it, Maya runs the agent loop, calls tools, gets data, and sends a reply. This overview ensures every line of code you write makes complete sense.
Create the support Django app and build the Conversation and Message models. Every chat session is a Conversation. Every message — customer or agent — is stored as a Message. This is the database foundation for the entire support system.
Build the AgentLog model to permanently record every agent action — tool calls, tool results, manager escalations, risk verdicts, and final replies. This model powers the live dashboard and gives staff complete visibility into agent decisions.
Get a complete overview of all the tools Maya will use — get_order_details, get_refund_history, check_delivery_status, and escalate_to_manager. Understand what each tool does, when Maya calls it, and how Django ORM queries become AI agent tools.
Build the get_order_details tool using Django ORM. This is the first moment where you see how a simple database query becomes a powerful AI agent tool. Maya calls this automatically whenever a customer mentions their order.
Build the get_refund_history tool that fetches the complete refund history for a customer. Maya always checks the refund history before making any refund-related decisions — this tool gives her the data she needs.
Build the check_delivery_status tool that queries simulated carrier data using tracking number and carrier name. When a customer complains about a delayed or missing delivery, Maya uses this tool to get real status updates.
Commit all tool functions and support app models to GitHub with a meaningful commit message. Good version control habits are important in any production project.
Understand the complete agent engine architecture before building it. Four components work together — the system prompt that defines Maya's personality, the tool schemas Claude reads, the execute_tool function that runs Django functions, and the agent loop that powers everything.
Set up your Anthropic Claude API account, generate an API key, and install the Anthropic Python SDK. This is the AI brain that powers all three agents in this course.
Make your very first API call to Claude and understand the complete request and response structure. See how messages are formatted, what the response looks like, and how stop_reason tells you what Claude wants to do next.
Initialize the Anthropic client inside Django using your API key from environment variables. Configure the model settings and understand why we use claude-sonnet-4-6 for this project.
Write Maya's system prompt — the most important piece of prompt engineering in this course. Define her personality, her responsibilities, her rules, and her limitations. Understand how a well-written system prompt controls agent behaviour completely.
Write tool schemas — the JSON descriptions Claude reads to understand what tools are available, what each tool does, and what parameters it needs. A well-written tool description is what makes Claude call the right tool at the right time.
Build the execute_tool function — the bridge between Claude's tool call decisions and your actual Django functions. When Claude says call get_order_details — execute_tool runs the real Django function and returns the result.
Connect the chat UI to the Django backend using the fetch API. When a customer clicks send — the message goes to Django as a POST request. Understand CSRF tokens, JSON payloads, and how Django receives the message.
Return Maya's reply from Django back to the browser and display it in the chat. Handle the JSON response, extract the reply text, and append it to the chat as a new message bubble.
Polish the chatbox experience — auto scroll to latest message, show typing indicator while waiting for Maya's response, handle edge cases, and make the chat feel smooth and professional.
Save every message to the database using the Message model. Customer messages and Maya's replies are both stored with their role and content. This enables conversation history and powers the dashboard transcript.
Build the complete run_support_agent function — the heart of Maya. This is the agent loop that receives the customer message, sends it to Claude, handles tool calls, executes Django functions, and returns the final reply.
Debug and fix JavaScript issues that appear in the chat interface during development. Learn how to use browser developer tools to identify and fix frontend bugs quickly.
Pass the order ID and user ID to the agent via the system prompt so Maya always knows exactly which order and which customer she is helping. Without this context — Maya has no idea what the customer is talking about.
Deep dive into the complete agent loop implementation. Understand every single line of the while loop — how Claude decides to call a tool, how tool results are sent back, how the loop continues, and how the final answer is returned.
Load previous conversation messages from the database before calling Claude so Maya remembers the complete conversation history. Without this — Maya would forget everything the customer said in previous messages.
Understand the manager agent's role in the system. When Maya cannot make a refund decision — she escalates to the manager. The manager receives a complete case summary, reviews the situation, and decides to approve, deny, or escalate to the risk team.
Build the run_manager_agent function and write the manager's system prompt. The manager has a different personality from Maya — senior, decisive, and focused on facts. The system prompt defines exactly how the manager thinks and makes decisions.
Connect the manager agent to the execute_tool function. When Maya calls escalate_to_manager — execute_tool runs run_manager_agent and passes the complete case summary. The manager's decision comes back to Maya, who relays it to the customer.
Commit the complete manager agent code to GitHub. At this point you have two agents working together — a major milestone in the course.
Are you a Python/Django developer who wants to stay ahead in the AI era?
This course teaches you how to build real AI Employees — autonomous AI agents that work for your business 24/7, handle customer queries, collaborate with each other, assess fraud risk, and make decisions — all without human intervention.
What You Will Build
A complete AI-powered customer support system for a fictional AC company called CoolBreeze AC. By the end of this course, you will have built:
Maya — an AI support agent that handles customer queries, checks orders, verifies delivery status, and decides when to escalate
A manager agent that reviews escalated cases and makes refund decisions
A risk agent that assesses fraud patterns and gives the manager a verdict
A RAG system that gives agents access to real company documents and policies — no hallucination, real answers
A live streaming support dashboard where staff can monitor every agent decision in real time
Full deployment on Railway — your system live on a real URL
What You Will Learn
How Agentic AI actually works — the agent loop, tool calling, and decision making under the hood
How to turn Django ORM queries into AI agent tools
How to write effective tool schemas that guide an LLM's decision making
How to build multi-agent systems where agents collaborate and hand off tasks autonomously
How to implement RAG using ChromaDB and pypdf so agents answer from real company documents
How embeddings and vector similarity search work
How to stream live agent activity to a dashboard using Server Sent Events (SSE)
Prompt engineering techniques for controlling agent behavior and tone
How to deploy a production Django + AI application on Railway
Why We Start Without Frameworks
Most AI courses jump straight into LangChain or AutoGen. We don't — and it's intentional.
LangChain, AutoGen, and CrewAI are all built on the same agent loop, tool calling, and multi-agent orchestration you'll learn in this course. If you learn the framework first, you're memorizing syntax without understanding what's happening underneath.
We build everything from scratch first. Then, in the LangChain edition, you'll see the exact same CoolBreeze project rebuilt using the LangChain framework. You'll understand immediately what they're doing for you, when to use them, and why.
Build the foundation first. The frameworks will make complete sense after.
Who This Course Is For
Django developers who want to add Agentic AI to their skill set
Backend developers who want to understand how AI agents actually work
Developers frustrated with tutorials that never explain what's happening internally
Anyone who wants to build a real, resume-worthy AI project from scratch
Requirements
Basic to intermediate Python knowledge
Basic Django experience — models, views, URLs, templates
No AI or machine learning experience needed
Anthropic API key (new accounts may receive $5 free credits — enough to complete the course)