From the course: GPT-4 Foundations: Building AI-Powered Apps
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Prompt chaining for your chatbot - GPT Tutorial
From the course: GPT-4 Foundations: Building AI-Powered Apps
Prompt chaining for your chatbot
- [Instructor] So far, we've learned to build an e-commerce app with one prompt. Today, we're going to learn how to build a multi-prompt chat bot. To get us started with our current file, you can head to the exercise files and grab the file named starter. Once we have it imported, we'll be on the Canvas right now. So to determine how to move from one prompt to the other, we're going to need an extra Block. This Block is called the If Block. So let's go ahead and add it to the Canvas. We're going to go to the Logic step and drag out our If Condition Block. So this Block will let us determine, should we move on to the next Prompt or not. Has the previous Prompt met our current objective? In this case, we can use the If Condition to determine, does the user have any more questions, or do they want to exit the chat bot? So let's have the If Condition do that. Actually, we're going to need one more Block to help us out. I'm…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.