Build a Production AI Agent in 6 Weeks
Beyond the hype: build a maintainable system around the AI
The agent concept is easy. Input, a decision, an action, in a loop. The hard part is everything around it: validation, boundaries, fallbacks, and the structure that makes it predictable instead of flaky. Reliability doesn't come from a smarter model. It comes from a clearer system.
This cohort is six weeks of building that system properly. You build Expense AI Agent, a complete application with function calling, a Telegram bot, a web dashboard, 95%+ test coverage, and a Docker deploy. You write the production code; we deeply review it for architecture, naming, and decoupling. Co-led with AI engineer Juanjo Expósito.
Who is this for?
Intermediate Python developers who want to go beyond API demos and LLM wrappers, and architect AI applications that are testable, deployable, and maintainable.
Time commitment: 6-10 hours per week.
What you'll build
A full-stack AI agent, from data layer to deployment, with three interfaces and production-grade engineering.
Agent architecture
Repository pattern, service layers, and Python Protocols for swappable LLM providers. Function calling and Pydantic structured outputs, not string parsing.
Three interfaces, one agent
A Typer + Rich CLI, a Telegram bot with human-in-the-loop confirmation, and a web layer (FastAPI REST API plus a Streamlit dashboard). One core, three ways in.
Production-grade testing
150+ tests, 95%+ coverage, Docker deployment, and CI/CD. You ship an app that's ready for users, not a notebook that's ready for a demo.
What you build, week by week
Scaffolding
- Repository pattern for data access
- SQLModel entities & migrations
- In-memory + database repositories
- Test-driven from day one
LLM Integration
- Protocols for swappable providers
- Pydantic structured outputs
- OpenAI function calling / tools
- LLM client abstraction layer
Agent Tools & CLI
- Prompt engineering for classification
- Service layer orchestration
- CLI with Typer + Rich
- Classification pipeline end-to-end
Telegram Bot
- Input preprocessing & validation
- Conversation state management
- Human-in-the-loop confirmation
- Mobile-first AI interface
Web Interface
- FastAPI with dependency injection
- Pydantic request/response schemas
- Streamlit dashboard + Plotly charts
- REST API with OpenAPI docs
Deploy & Ship
- Docker multi-stage builds
- Docker Compose orchestration
- GitHub Actions CI/CD
- Production-ready deployment
Tech stack: SQLModel, Pydantic, OpenAI function calling, Typer + Rich, FastAPI, Streamlit, Telegram bot API, Docker, GitHub Actions
Why this transfers
The patterns here are not AI-specific. They're how senior engineers build software: Protocols, repository pattern, service layers, dependency injection, clear boundaries, real tests. That's the difference between a demo that works once and a system you can run again and again with confidence. You leave with a deployed AI agent on your GitHub and the instinct to build the next one yourself.
How an AI expense agent is actually structured →
Join the cohort
Six weeks, two coaches, a portfolio-ready project. Capped small for high-touch, detailed PR review on every push.
Book a call to reserve your seat →
Full curriculum and enrollment: pythonagenticai.com. Prefer 1:1 on your own AI project? Start here →