From the course: Build with AI: Building a Project with the ChatGPT API
Challenge: Enhance the movie script generator with Threads
From the course: Build with AI: Building a Project with the ChatGPT API
Challenge: Enhance the movie script generator with Threads
(upbeat music) - [Instructor] So far, your movie script generator has talent, it can spin up creative plots, and generate images from just a prompt, but ask it a follow-up question. It forgets what just happened. That's where conversation threads come in. In this challenge, you'll upgrade your movie script generator to support multi-turn conversations. First, generate a unique conversation ID. This conversation thread will hold the entire history between you and the AI. Next, send the first prompt. This prompt is the initial request to generate a movie script. Then run the assistant and get the initial plot. Get the assistant's response using the thread and model. Capture the generated plot and optionally generate a corresponding image. Next, add a follow up prompt, simulate a follow up question, something like, can you add a love interest to the story? Or, let's make the setting post apocalyptic instead. Or I want a surprise twist at the end. Add that as a new message in the same thread. Finally, rerun the assistant in the same thread and see how would adjust the plot while remembering the original details. Once you've completed the challenge, join me in the next video where I'll walk you through my solution. I'll show you how I structured the thread interactions and share a few storytelling tips to make your project even more engaging. Ready to give your AI a memory boost? Let's go.