From the course: GPT-4 Foundations: Building AI-Powered Apps

Solution: A BigStarCollectibles chatbot - GPT Tutorial

From the course: GPT-4 Foundations: Building AI-Powered Apps

Solution: A BigStarCollectibles chatbot

(upbeat music) - [Instructor] Wow, our last challenge. Let's look at a sample solution for building our Binaryville e-commerce chatbot. So let's go ahead and actually run it so we can go through each of our requirements and test cases. So I'm going to hit Run here. So we get an introduction to our chatbot. Let's go ahead and look at requirement number one which tells us that we need to look up our past order. So let's say, "Hi, I'm John. What did I order last time?" Hit Enter. Now we're going to use our first prompt for order identification. We get reprompted about our last name. Let's say, "Smith." There we go. We get our order back based on this prompt. Now I can see what I ordered last time. Let's go ahead and ask a question about our action figures to fulfill requirement number two. "I don't quite remember much about Rex. Can you tell me more about them?" And hit Enter. Now this should activate our questions about action figure path, using our if statement that we learned about before. Great, we got an answer about Rex, him being the mayor of Binaryville. All right, that's awesome. I've read his bio and I think that he's a great character. Let's say, "I'm ready to order." So now we should move on to our third prompt. So we're going to be asked for our name and shipping address. I'm going to say, "John Smith, 123 Fake Street." And there we go. Our order was successful. We've outputted that this will be shipped in three to five business days, and we've successfully completed our task. Wow, we've built a full chatbot using prompt chaining. Now we can go ahead and actually run this chatbot on the Big Star Collectibles website, like we did before. You can see down here we have our assistant. Wow, so there we go. You've learned to build a full scale chatbot using prompt chaining and the power of GPT-4. We now have a full conversational assistant to power our Big Star Collectibles website.

Contents