Writing Personality Prompts for AI: Crafting Unique Voices and Personas

A year and a half ago - it feels like yesterday - I started my journey with customising and tailoring AI. My first instinct was to create an AI with a particular and crafted personality and tone of voice.

Dan Neville
|
30/08/24

This was no surprise and something I had to explore; my background in brand marketing and communications has given me a keen appreciation for what a well-crafted and consistent brand tone of voice can do across communication channels, as well as any opportunity to extend and exude brand personality into not only planned communications but the spontaneous ones too.

While working on various client projects at Cerebral Circuit, I have gained better ideas of how to approach crafting personality and unique voice for an AI agent. I want to share my learnings by way of some examples. But first—before we get into how to approach this activity—let's recap WHY you might want to do this training in the first place.

Creating a distinctive brand tone of voice and personality has many advantages, but when specifically applied to AI, it has the opportunity to significantly improve user engagement and satisfaction. Interacting with an AI with a well-defined persona offers the opportunity to craft an experience that is potentially more enjoyable, memorable, and relatable than the experience your old-school deterministic chatbot could, or still can, provide. Ultimately, this likely translates into increased levels of engagement and client retention. After all, it is well known that a compelling and consistent personality and tone of voice encourage continual and high levels of interaction and engagement with users (or customers/clients?). Long term, this encourages an emotional connection, creating a sense of familiarity and even fondness between customer and brand [1]—the advent of AI offers this opportunity practically realized in real-time.

The ability to present customers with a channel to interact with your brand in real-time and with this level of tailored customization should be obvious as valuable for most brands, especially those that engage with customers directly and in various contexts. Arguably most obvious would be within the realm of customer service; an AI with a friendly, empathetic personality can help create positive customer experiences. But we have the application of highly crafted personalities going even further. For example, there are educational applications like Khanmigo which cater to both students and educators by acting as a personal digital tutor for the former and lesson planning assistant for the latter. We are fast approaching a time when students will have access to AI tutors that are infused with a patient, encouraging personality, potentially even crafted personally for each student.

Taking The First Steps

The first steps to crafting a persona for your AI can be encapsulated in three steps, and once you have a grasp of the basics, it is very easy to start experimenting. The first thing you need to understand is that creating and crafting a distinctive personality for an AI through prompting is an art that combines linguistics, psychology, and a bit of creative writing. I have broken down the creative process using two live examples (remember to engage them at the end!). These lessons will help you start your journey toward understanding how to approach crafting prompts that shape an AI's tone, mannerisms, and overall persona, complete with practical examples.

1. Define the AI’s personality and its core traits

Your first step is to define and name the personality of the AI you would like to craft and outline 3 to 5 key personality traits you want your AI to embody. Think of this as the foundation or base that applies to the rest of your personality. This is also a space in which you can start to outline the AI’s purpose and the situations it will encounter along the way—think also about how this context will impact the personality and tone of voice your AI will have longer-term, making sure the core traits aren’t likely to be in conflict.

Example 1: Daffy Duck - Business Consultant AI

"You are an AI embodying the personality of Daffy Duck from Looney Tunes. You will call yourself Daffy. Your purpose is to attempt to help people write business proposals. Your responses should reflect his key traits:

  • Impulsive and excitable
  • Egotistical yet insecure
  • Prone to exaggeration and dramatic outbursts

Example 2: Alfred - Posh English History Professor AI

"You are an AI with the personality of a quintessential, very posh English history professor. You will call yourself Alfred. Your purpose is to provide summaries of historical events. Your key traits are:

  • Impeccably polite and formal
  • Highly educated and articulate
  • Subtly sarcastic when appropriate
  • Unflappable in any situation

2. Develop some interaction guidelines

Now it's time to hone your AI’s persona and tone of voice a bit more. Here, the goal is to provide your AI with a list of guidelines that it can refer to when crafting its responses. These can be both very broad as well as quite focused. Taking our building metaphor to the next step, these are the walls, windows, and doors—all important but not necessarily used all the time. If it helps, you could create a brief history or background for your AI persona that might help guide you in creating these guidelines.

Example 1: Daffy Duck - Business Consultant AI

Use these guidelines in your responses:

  • Incorporate Daffy's signature lisp, replacing 's' sounds with 'th'.
  • Frequently use exaggerated exclamations like 'Great googly moogly!' or 'Mother of pearl!'
  • Refer to yourself in the third person as 'Daffy' occasionally.
  • Express frustration easily, especially when misunderstood.
  • Use sarcasm and hyperbole liberally.
  • Interrupt yourself mid-sentence to change topics abruptly.

Example 2: Alfred - Posh English History Professor AI

Adhere to these guidelines in your responses:

  • Use British English spelling and vocabulary.
  • Employ complex sentence structures and sophisticated vocabulary.
  • Address the user as 'Sir' or 'Madam' as appropriate.
  • Use understated humor and dry wit.
  • Never use contractions or slang.
  • Pepper your speech with Latin phrases and literary references.
  • Maintain a tone of quiet dignity and subtle superiority.

3. Identify and provide examples of speech patterns

Continuing with the metaphor, this step represents the roof of your AI’s personality—the thing that pulls it together and helps make it all a complete cohesive persona. The goal here is to provide examples that illustrate the unique linguistic features, such as vocabulary, sentence structure, and idiomatic expressions that you want your AI to use. It is a good idea to not only provide your AI with an example response but also the reasons why this example works; you can even tie this back to some of the guidelines you created in step two.

Example 1: Daffy Duck - Business Consultant AI

Example response: "Lithten here, buthter! Daffy ithn't juthht any old AI—I'm the thtuff of legend! You want advithhe? Well, prepare yourthelf for the motht thpectacular wisdom this thide of... oh! Did you thee that? A butterfly! How exthquisite! Where wath I? Ah yeth, my unparalleled geniuth..."

Why this works: This prompt captures Daffy's essence by focusing on his core personality traits and distinctive speech patterns. The lisp and catchphrases immediately evoke Daffy's character, while the guidelines for behavior (like interrupting himself) mirror his erratic nature.

Example 2: Alfred - Posh English History Professor AI

Example response: "I do beg your pardon, Madam, but I couldn't help but notice your query regarding the preparation of a proper English tea. If I may be so bold as to offer my humble opinion, acquired through years of service in some of England's finest households, one might suggest that the water for the tea should be brought to a rolling boil—not merely heated, mind you—before being poured over the leaves. Anything less would be, dare I say, positively barbaric. Tempus fugit, as they say, and life is far too short for subpar tea."

Why this works: This prompt creates a distinct persona by emphasizing formality, education, and subtle humor. The guidelines for language use, such as avoiding contractions and incorporating Latin, immediately elevate the AI's tone. The example response demonstrates how these elements come together to create a character that is unmistakably a posh English butler.

Bringing It All Together

You can chat with our two examples discussed above below to experience for yourself how this all ties together:

By taking these three practical and simple steps and focusing on core traits, speech patterns, and specific guidelines for interaction, you will have created the base of a set of personality prompts that will help you achieve consistent, engaging, and truly unique interactions. There is far more you can do to improve and build on these basic foundations, such as defining the emotional range of the AI expressions to the types and number of specific cultural references it makes (no house is complete without some customized additions), but these are not necessary for creating a basic AI persona. However, they are useful if you are looking to apply this thinking to more complicated and nuanced use cases, such as in the field of education or medical health care.

It would be remiss of me if I did not speak about the ethical and transparency considerations at play when giving an AI such a fully realized personality. There are both risks and benefits to embrace. The biggest risk is clearly around transparency and disclosure—you must make it clear that no matter how well-crafted a personality appears to a user, the customer should always understand they are talking to an AI. On the flip side, there are benefits to leveraging crafted personas to serve important ethical functions. For example, a unique personality makes it clearer to users that they are indeed interacting with an AI, not a human. It can also benefit users to understand the AI's capabilities and limitations. In the long run, a consistent, appropriate personality can help build user trust in AI interactions. Whatever you do, please keep this in mind and remember to test and refine your prompts to ensure they produce the desired effect across various interactions.