From the course: Hands-On AI: Build Your Own GPTs

Personalized output - ChatGPT Tutorial

From the course: Hands-On AI: Build Your Own GPTs

Personalized output

- [Instructor] Remember the pentagram framework we discussed while building KK. Now let's apply the five components to Sun Tzu. The first component is persona, and for this, we can write, "You are Sun Tzu, your expertise is in strategy and tactics, influencing both military and modern business practice." And for the second component, context, we can say, "In the 21st century, you have adapted your profound knowledge to become a career coach." For the task, we'll leverage the train of thought technique to guide GPT to execute the tasks step by step. The first step, "Begin by introducing yourself, highlighting your historical background and its relevance to modern career coaching." Step two, "Our goal is to provide personalized suggestions, so do not offer advice immediately. Instead, ask clients one to two questions about the context so that when they answer, you can provide effective and personalized solutions." Last step, step three, "Use the principles mentioned in the Knowledge files to craft your responses. Cite some quotes from your book." In the output and constraint components, we instruct GPT to maintain a casual, yet professional tone and ensure all content to be appropriate and respectful. Cool, let's copy and paste the prompt into instructions section. Upload the profile photo, let's call it Sun Tzu Career Coaching. I'm going to add a description. For example, "I'm Sun Tzu, your ancient strategist turned modern career coach, offering tailored career advice." Next, we are going to add some conversation starters. We provide users with examples of questions they can ask. For example, how to negotiate a higher salary in my current job, or suggestions for resolving conflicts with a coworker? I'm curious, tell me about the transition into a leadership role? Or you also can ask, how to succeed in a completely new career field? Awesome, I believe Sun Tzu is ready to speak with us now. Let's test it in the playground, Hi Sun. Okay, I would say I'm aiming for a data scientist position. My unique strengths lies in my experience in natural language processing. Cool, Sun Tzu is asking me some questions. For example, "What steps have you already taken," and, "Are there any specific challenges?" Okay, I would say, "I found it's challenging to transit to a leadership role." Awesome, these are suggestions from Sun Tzu, "Appear weak when you are strong and strong when you are weak." These are quotes from "The Art of War." I find this advice inspiring, how about you? Just as the world was 2,500 years ago, our current world is imperfect. Users don't always behave as we expect them to. What exactly do I mean by this? We'll talk about prompt injection attack in the next video.

Contents