AI Agents for Beginners: Build Agents in Python & OpenAI (Udemy.com)
Build Real AI Agents with Tools, Memory, Handoffs, & Guardrails Using OpenAI Agents SDK & Python.
Created by: Prof. Ryan Ahmed, PhD, MBA
Last updated December 2025
What you will learn
- Build AI agents in Python using OpenAI Agents SDK with Memory and Tools.
- Build a travel planner AI Agent that creates an itinerary based on user preferences.
- Inspect the agent’s behavior using traces on the OpenAI API platform.
- Master best practices in creating Autonomous AI Agents
- Master the art of Prompt Engineering & Setting Up Agent Instructions
- Understand the Key components of an Effective AI Agent System Prompt (Context, Instruction, Input, & Output Indicator)
- Test AI agents and watch it run using the Runner class
- Design & build a personal finance AI agent with memory that can recall user preferences, past tasks, & ongoing conversations to deliver personalized experiences
- Integrate SQLite-based session storage to enable persistent memory for agents
- Test and compare agent behavior before and after adding memory to evaluate improvements in context retention.
Course Description
In this course, you’ll learn how to build real AI agents in Python using the OpenAI Agents SDK. You’ll understand the core building blocks of modern AI agent systems, including reasoning, memory, tool usage, planning, and guardrails and how these components work together to automate and enhance tasks.
You will also learn how to develop a team of autonomous AI Agents that can work together to achieve a goal. You’ll learn how to inspect and debug agent behaviour using tracing and observability tools, so your agents are not just powerful, but also transparent, testable, and safe.
By the end of this course, you’ll be able to:
Build AI agents in Python using the OpenAI Agents SDK
Understand how agents reason, plan, and execute tasks using system prompts and instructions
Design effective agent system prompts (context, instructions, inputs, and outputs)
Understand how AI agents work under the hood
Use tools, memory, and planning to create more capable, context-aware agents
Design safe agent interactions with guardrails and controlled execution
Compare agent behaviour with and without memory to evaluate context retention
This course is designed for developers and engineers who want a practical, code-first introduction to AI agents. No prior experience with agent architectures or machine learning is required just basic Python knowledge and an interest in building real AI systems that work reliably in practice.
Instructor Details
- 4.5 Rating
194 Reviews
Prof. Ryan Ahmed, PhD, MBA
I'm Dr. Ryan Ahmed, professor, engineer, and founder of Stemplicity, where we help people get past the hype and actually build things with AI, Agentic AI, Cloud, and Data Science.
Over the past 10 years, I've taught 1 million learners across 160 countries — 700,000+ enrolled in my Udemy courses, 260,000+ subscribers on the "Prof. Ryan Ahmed" YouTube channel, and 120,000+ on Coursera. I also run corporate AI training for teams at HSBC, RBC, Discover, and Barclays across the US, Canada, and the UK. I held leadership roles at GM, Samsung, and Stellantis in Canada and the U.S., working on electric and autonomous vehicle technologies.
I hold a MASc, PhD, and MBA from McMaster University. I’m also a licensed Professional Engineer and a Stanford-certified program manager with over 60+ published research papers in AI and battery systems.
But credentials are the least interesting part. Here's what I actually believe: "AI is the biggest opportunity of our lifetime", and most people are sitting it out because they think they need to code or have a PhD. You don't. If you're willing to show up and try, I'll help you get good at this.
More courses by Prof. Ryan Ahmed, PhD, MBA
ChatGPT 6 Astra, Copilot, Midjourney, & DallE - The AI Bible (2026)
4.5 (21,879 Reviews)
Provider: Udemy
Time: 13.1h
$89.99
Mastering Microsoft 365 CoPilot & AI Agents [2026]
4.5 (11,743 Reviews)
Provider: Udemy
Time: 21.9h
$19.99
The Complete Claude Code & Claude Cowork Masterclass [2026]
4.6 (8,843 Reviews)
Provider: Udemy
Time: 21.8h
$19.99
MATLAB/SIMULINK Bible | Go From Zero to Hero + ChatGPT! (2025)
4.6 (7,605 Reviews)
Provider: Udemy
Time: 8.2h
$18.00
Python & Machine Learning for Financial Analysis (2024)
4.7 (4,821 Reviews)
Provider: Udemy
Time: 23h
$84.99
More Software Development courses
Build Web Apps with Nuxt.js 3: Master TypeScript & API [New] (2026)
4.9 (635 Reviews)
Provider: Udemy
Time: 6.7h
$19.99
Vagrant Up! Comprehensive development system automation (2019)
4.8 (937 Reviews)
Provider: Udemy
Time: 4.6h
$69.99
Reviews
By Salman on 8/10/2026
Great explanation step-by-step
By Bhaviya Batra on 5/14/2026
More explanation can be added.
By Sangay Phuntsho on 4/28/2026
The course is resourseful and interesting
By Yogendra Reddy Uppalapati on 4/12/2026
I really like the way Ryan simplifies the teachings and how he explains in simple terms.
By Katarzyna Pilarz on 3/29/2026
Great for understanding the core concepts for developing agents.
By Qazi Naved Rafiq on 3/28/2026
good clear code , instructions and simplified to suit all levels.
By Carlos Martinez on 1/30/2026
Great experience, pretty clear and useful content
By Viju Velu on 1/21/2026
I am yet to learn, but it is good so far! loving it and excited to build my own agents! lets go
By Nythyashree Nagarajan on 6/10/2026
By Sokleap Suon on 6/9/2026
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 90 / 100

![Mastering Microsoft 365 CoPilot & AI Agents [2026]](/programming/data-analysis/images/6436607_551a_3.jpg?v=1789443512)
![The Complete Claude Code & Claude Cowork Masterclass [2026]](/programming/data-analysis/images/7066971_118a_4.jpg?v=1789492559)





![Build Web Apps with Nuxt.js 3: Master TypeScript & API [New]](/programming/software-development/images/6457785_5adc_4.jpg?v=1789443959)



