From the course: Build with AI: Building a Project with the ChatGPT API
Challenge: Add agent features to your movie script generator
From the course: Build with AI: Building a Project with the ChatGPT API
Challenge: Add agent features to your movie script generator
(bright upbeat music) - [Instructor] So far, you've built a chat bot that generates a movie script and image based on a prompt. That's impressive. But what if we could go further? What if your AI could not only craft a story but spice it up with a dramatic twist? That's where AI agents come in. In this challenge, your task is to evolve your chat bot into a full AI agent using the OpenAI Agents SDK. First, you'll write clear, structured system instructions that explain what the agent is supposed to do, what topics to avoid, and how it should behave. This guides the model's responses and tone. Then, you'll register and integrate an external tool, such as a custom function that helps the agent become a better storyteller. The tool you'll develop enhances creativity by introducing unexpected twists into the plot, tailored to a genre and tone. The agent will decide when to call it. Your job is to define how it works. Finally, you'll add a plot twist to the original movie story you generated in the previous hands-on challenge. Once you've completed the challenge, head over to the next video. I'll walk you through my solution, show you how I structured the agent, and give you a few extra ideas you can use in your own version. You ready? Let's build your first agent.
Contents
-
-
-
-
Understand the foundations of AI agents2m 59s
-
Select models and define instructions2m 42s
-
Integrate tools using function calling2m 17s
-
Build with the OpenAI Agents SDK8m 39s
-
Apply guardrails for safe agent behavior7m 6s
-
Challenge: Add agent features to your movie script generator1m 41s
-
Solution: Add agent features to your movie script generator8m 44s
-
-
-
-