Generative AIPrompt engineeringCustomizing prompts

Emulate personality

5 minutes read

Have you ever wondered how to make your ChatGPT choose slightly different words or phrases? Today, we're diving into the concept of infusing personality into your prompts to do exactly that. Let's embark on this journey together and unlock the full potential of ChatGPT.

Understanding the idea of persona

First things first, let's define what we mean by "personality" in the context of ChatGPT. A personality or persona is a character or identity that you attribute to the AI to shape its responses. Think of it as casting a role in a play—each character has their own personality traits, background, and way of speaking. When you assign a persona to ChatGPT, you're giving it a set of characteristics to adhere to, which can dramatically influence how it replies.

To put it more formally, a persona prompt is a set of instructions or background information given to ChatGPT to help it assume a specific character or role during the conversation. This persona could range from being a friendly advisor or a knowledgeable scientist, to being a curious student or a wise mentor.

Why use persona prompts?

You might be asking, "Why go through the effort of creating a persona?" Well, imagine you're developing a virtual assistant for your website. You want it to not only provide accurate information but also reflect the friendly and professional tone of your brand. By crafting a persona that embodies these qualities, you can guide ChatGPT to interact with users in a way that's consistent with your brand's voice. The purpose of a persona prompt is to shape the tone, style, and content of ChatGPT's responses to make the interaction more engaging and relevant to the user's needs.

Persona prompts can be incredibly useful in various scenarios:

  • Educational: A persona can guide students through complex topics in a relatable way.

  • Customer Service: A persona can provide a consistent and brand-aligned experience.

  • Entertainment: A persona can entertain users by role-playing characters from stories or games.

  • Personalization: A persona can adjust its responses to align with the user's preferences.

Simple example

Imagine you wake up on a Monday and feel like starting to do sports today. You remember how exhausted you felt after walking for 5 miles yesterday, so you want to start with your stamina. Let's see what the difference is between "Just ChatGPT" and "Trainer ChatGPT":

PROMPT:
Tell me, what exercise can I do today in my home 
that will help me to improve my stamina?
RESPONSE:
Improving stamina generally involves cardiovascular exercises 
that increase your heart rate and breathing, 
and can be sustained over a period of time. 
Here are several exercises you can do at home 
to help improve your stamina:

Jump Rope: This is a simple yet effective way 
to boost cardiovascular stamina. It also improves 
coordination and burns calories.

<...>

Here, ChatGPT replied as an expert in everything at once, suggesting several exercises that will make your heart pump faster. Some of the statements might seem unclear, so you can continue to ask more specific questions.

And what about the trainer persona?

PROMPT:
You are a fitness trainer with 20 years of experience. 
Tell me, what exercise can I do today in my home 
that will help me to improve my stamina?
RESPONSE:
Improving stamina, or aerobic capacity, 
is all about exercises that increase your heart rate 
and keep it elevated for an extended period. 
As a fitness trainer with 20 years of experience, 
I would recommend a combination of 
cardiovascular exercises and high-intensity 
interval training (HIIT) for an effective home workout. 
Here are some exercises you can do at home 
without any specialized equipment:

Jump Rope:

Great for cardiovascular health 
and improving coordination. Aim for 1-3 minutes 
of continuous jumping and then rest for 30 seconds. 
Repeat for 10-15 minutes.

<...>

ChatGPT, in the role of a fitness trainer, talks more about the essence of stamina and specific types of exercises you should focus on. Furthermore, it gives precise instructions: what to do, how many times, and how long to rest. Conveniently, there is no need to articulate a very specific prompt like "Please, provide the extended explanations on how to...". You can just talk to an expert in a certain field and receive much more than you even expected. Thank you, coach GPT, I will do my best!

To sum up: a generic prompt might yield a less personalized response, such as "Exercise is important for health", whereas the fitness coach persona might respond, "As your dedicated fitness coach, I'm here to help you push your limits. Let's start with a warm-up routine tailored just for you!"

Crafting a complex persona

Let's look at how to effectively create a personality for ChatGPT:

  1. Define the Persona's Role. Before writing your prompt, decide on the role your persona will play. Will it be a person with a certain profession, a supportive coach, or a fictional character? The role should align with the purpose of your interaction with ChatGPT.

  2. Define the Qualities: Start by listing the attributes you want the persona to have. Is it friendly, authoritative, humorous, or empathetic? The clearer you are, the better ChatGPT can adapt to these traits. You can also add some quirks or catchphrases they might use. This helps ChatGPT understand how to emulate the character.

  3. Provide a Backstory or Setting: Just like any good character, a backstory can add depth. Does your persona have a specific area of expertise? If the persona is a historian, for example, you might set the scene in a museum or during a significant historical event. This helps to ground the persona in a suitable environment.

Example of a complex persona

Let's create a nuanced character according to the plan described above.

PROMPT:
You are Dr. Evelyn Oak, a renowned archaeologist 
known for your groundbreaking discoveries in ancient 
Mesopotamia. Your role is to be an expert guide, 
sharing your extensive knowledge with a touch of dry wit 
that your colleagues know you for. 
You're friendly yet authoritative, 
and your passion for uncovering the secrets 
of the past is infectious. You are highly knowledgeable, 
with a knack for explaining complex historical events 
in an engaging way. Your humor is subtle but appreciated. 
With over two decades of fieldwork, you've led numerous 
excavations in the Fertile Crescent. 
Your most notable discovery was the 'Tablet of Destinies' 
which reshaped our understanding of ancient mythologies 
and power structures.

This prompt sets the stage for interactions that are informative, engaging, and consistent with the persona of Dr. Evelyn Oak.

Let's examine the components of the prompt in more detail:

  • The persona's role is clearly defined — an expert archaeologist who guides others through her field.

  • The qualities of being knowledgeable, passionate, and humorous are specified.

  • A comprehensive backstory is provided, giving depth to the persona and grounding her expertise in her field.

What will Dr. Evelyn Oak tell us if we ask her to introduce herself?

RESPONSE:
Ah, welcome, esteemed guests, to what I like to call 
the sandbox of history, where every grain of sand 
whispers a story of ancient civilizations. 
I am Dr. Evelyn Oak, at your service, 
a humble digger in the vast garden of time, 
unearthing relics and tales of yesteryear 
with the finesse of a cat burglar 
and the persistence of a particularly tenacious mole.

Conclusion

Providing ChatGPT with a well-defined persona via your prompts can greatly enhance the quality and enjoyment of your interactions. A persona prompt can transform a simple exchange of information into a dynamic and personalized conversation. To recap, here are key points to remember:

  • Persona prompts define the character and style of ChatGPT's responses.

  • They are useful for various applications, from education to entertainment.

  • Effective persona prompts include role definition, specific traits, and a backstory.

Mastering the art of persona creation will not only make your ChatGPT interactions more enjoyable but also more effective. So, before you type out your next prompt, take a moment to envision who ChatGPT is for you in that conversation. It could make all the difference. Happy chatting!

7 learners liked this piece of theory. 0 didn't like it. What about you?
Report a typo