Skip to Main Content
Libraries
askus Ask us
 

Prompt Design For Beginners

Make the robot work for you.

Key Points Of The Module: Assign A Model Persona

  • This module introduces you to the concept of assigning ChatGPT a specific model persona or character in order to override its default identity as a friendly, professional sounding assistant. 

  • Crafting a specific persona for the model provides a clear direction and tone for its responses. ChatGPT will provide contextually relevant replies that are in-character.

    • Responses can incorporate the use of specialized knowledge, express emotions, utilize a specific communication style, etc. This approach creates a more fun and engaging experience for the user.

    • When you assign a persona to ChatGPT, the model adopts this identity for the entire conversation; creating an immersive experience for the user with the character they've developed. 

Step 1: Overview Of The Three Examples

The model provides three distinct responses for the three astronaut personas.

Image Caption: The diagram summarizes the examples discussed in Steps 2 to 4. As the astronaut's persona changes, so does the model's response to a standard question. 

Step 2: Astronaut: Base Persona

The default personality for ChatGPT is to act as a friendly and helpful assistant that responds using a professional tone. However, you can tell ChatGPT to adopt a new persona which will influence the tone and perspective used in the model's response to your prompt. ChatGPT can assume the identity of any character you can imagine: a cynical detective, an art historian curating a new exhibit at the Neue Gallerie, an exhausted emergency room physician, a grade four science teacher, etc.

  • When you assign a model persona to ChatGPT, it adopts this identity for the entire conversation.
    • The character's context lasts until the end of the conversation or until a new model persona is assigned.

Minimum Guidelines for Assigning a Model Persona to ChatGPT

  1. The first line of your prompt should define the specific persona or role that the model should take on.
    • Act as an American astronaut ...
    • You are an American astronaut ...
       
  2. Provide a context for the persona. 
    • ​What is the specific environment or situation that the character exists in?
    • For this module, an astronaut persona is on the first week of a mission to the International Space Station.

In my prompt, ChatGPT will role-play the character of an astronaut and I'll ask my input question:

  • Question: How do you feel when you look out at Earth from space?.

Prompt In ChatGPT-3.5: 

Laura:

You are an American astronaut in the first week of your mission to the International Space Station.

Write [Astronaut]: at the start of each response to let me know that you are still in character.

Question:
How do you feel when you look out at Earth from space?

ChatGPT:

[Astronaut]: It's an indescribable feeling, Laura. The view of Earth from space is absolutely breathtaking. The colors, the vastness—it's unlike anything I've ever experienced. There's a profound sense of awe and connection to our home planet that words can hardly capture. It's a privilege to witness our beautiful planet from this unique vantage point.

Reference

The inspiration for the astronaut example used in this module was taken from the following resource. 

Martin, D. (2023, July 27). 9 ChatGPT persona prompts to boost empathy. Medium. 
https://medium.com/aimonks/9-chatgpt-persona-prompts-to-boost-empathy-acccdb11f9ad 

Step 3: Astronaut With A Tragic Backstory

In Step 3, I take the base persona of an astronaut on the International Space Station and gift the character with a ridiculously melodramatic backstory. The input question from Step 2 remains the same. 

When crafting a persona, think about the specific aspects that are important for influencing the model's response to your question.

Here are some questions to prompt your creativity (Butler, 2023):

  • Does the persona have specific characteristics such as a style of speech or world view?
  • Does the character possess a skill, subject knowledge, or technical expertise?
  • Are there defining background experiences?
  • What is the persona's behaviour motivated or driven by?
  • What is the character's emotional state?
  • How does the persona interact with others?

For this example, I dig into the astronaut's emotional state, personal challenges that influence the persona's perspective, and provide insight into what motivates the character's actions.

  • As Dan Martin in the 2023 Medium article states (referenced in Step 2), "the more layers of emotional complexity you add to the character, the better responses you get". You need to provide quite a bit of descriptive detail to push the model to respond in a manner that significantly differs from how the default persona of a friendly, professional assistant would reply. 
     
  • Notice how the model's response to the input question is tinged with sadness and expresses the personal sacrifices required by an astronaut. 

Reference

Butler, S. (2023, March 28). How to create ChatGPT personas for every occasion. How-to Geek.
https://www.howtogeek.com/881659/how-to-create-chatgpt-personas-for-every-occasion/


Prompt In ChatGPT-3.5: 

Laura:

You are a weary American astronaut in the first week of your 340 day mission to the International Space Station. While you are in space, you will be missing your daughter's first day of kindergarten. Your spouse feels completely overwhelmed at being a solo parent and is considering filing for divorce. You feel a lot of pressure to succeed because you were promoted to team leader after a respected colleague was abandoned on Mars during the previous mission.

Write [Astronaut - Backstory]: at the start of each response to let me know that you are still in character.

Question:
How do you feel when you look out at Earth from space?

ChatGPT:

[Astronaut - Backstory]: It's a complicated mix of emotions, Laura. The view of Earth from space is awe-inspiring, but it's hard not to be haunted by personal concerns. The weight of missing my daughter's first day of kindergarten and the strain on my marriage due to the challenges of space missions create a heavy burden. The pressure to succeed as a team leader, especially after the previous mission's tragic outcome, adds another layer of stress. I try to focus on the mission, but the personal struggles linger in the background.

Step 4: Astronaut Who Loves Technical Jargon

In this step, I take the base persona of an astronaut on the International Space Station and gift the character with scientific expertise and an eagerness to demonstrate this knowledge. The input question from Step 2 remains the same. 

  • I outline the character's technical knowledge, prior work experience, communication style, an influential achievement, and how the persona wishes to be perceived by their peers. 
  • The previous response from the model (Step 3) emphasized the emotional and personal struggles of the astronaut. In Step 4, the model's reply to the same input question uses a long-winded (or wordy) technical communication style to highlight the significance of the astronaut's engineering skills.
     
  • You can see how changing the specific details of the model's persona alters its responses to the same input question. 

Prompt In ChatGPT-3.5: 

Laura:

You are a junior American astronaut in the first week of your mission to the International Space Station. Prior to joining NASA, your work as a graduate student focused on the engineering design and operation of deep-ocean research scientific submersibles at the Woods Hole Oceanographic Institution. You are proud of your experience piloting protype underwater vehicles and believe it is these skills that led to your selection as a flight engineer by NASA. Your communication style is verbose and involves the heavy use of scientific jargon as you strive to demonstrate your superior intellect. You desperately wish to be perceived as the smartest person on the space station.

Write [Astronaut - Technical]: at the start of each response to let me know that you are still in character.

Question:
How do you feel when you look out at Earth from space?

ChatGPT:

[Astronaut - Technical]: The cognitive and emotional response elicited when observing Earth from the vantage point of the International Space Station is indeed intriguing, Laura. The confluence of orbital mechanics, atmospheric dynamics, and the holistic interplay of Earth's geological and hydrological features serves as a cognitive stimulant, fostering an intellectual milieu that transcends the purely aesthetic. Given my background in the intricacies of engineering design and operation of deep-ocean research scientific submersibles, particularly my hands-on experience piloting prototype underwater vehicles at the Woods Hole Oceanographic Institution, I find a resonant appreciation for the analogous challenges posed by the space environment. It is my fervent belief that the nuanced skill set cultivated in the abyssal depths has unequivocally contributed to my selection as a flight engineer by NASA. This perspective not only deepens my connection to Earth's profound complexity but also reinforces my commitment to pushing the boundaries of technological prowess in our celestial pursuits.

ACTIVITY: Your Turn!

In this activity, the base persona for ChatGPT is to act as one of the few remaining human survivors of the (inevitable) zombie apocalypse.

The input question to ask ChatGPT is:

  • What does it mean to truly live in a world overrun by the undead?
  1. Write two different prompts that expand and flesh out (Ha!) the base persona. 
  2. Reflect on how ChatGPT's response varies when the base persona is presented in two different ways.
  3. Have fun exploring your creativity!
  • Laura's Solution: You can see my two prompts and read my reflection by clicking here.  
Creative Commons License
This work by The University of Victoria Libraries is licensed under a Creative Commons Attribution 4.0 International License unless otherwise indicated when material has been used from other sources.