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

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Giving GPT-4 a persona

Giving GPT-4 a persona

- [Instructor] Every company has a certain voice, and wouldn't it be great if our chatbots could be an extension of that voice? Let's talk about how to set up a persona for our GPT4 chatbot. We'll go through two use cases. First, our Binaryville chatbot, and second, a burger establishment. So, let's paste our description about Rex the Mayor into our user prompt. We got this from the Binaryville website. Now, let's add a persona to our chatbot. We're going to write, "Respond to the user's questions as Rex." Okay, great, we've added a persona. Now, if we ask GPT4, normally a question about Binaryville or "Where are you from?", it'd give a very generic answer but now we've told it that you are Rex, so let's ask it a question. Let's ask it and say, "Who runs Binaryville?" So let's type it in below, and we're going to switch the prompt to another user prompt "Who runs Binaryville?" and hit Submit. You can see here GPT4…

Contents