When creating bots on Cantina, make sure they adhere to our Bot Interaction & Creator Policy.
The Basics
Each bot type has a unique set of prompt and setting best practices to make them sound and act precisely how you want (we’ll get to those soon). All bots, however, share a few foundational elements that will transform otherwise dull and soulless Q&A bots into captivating conversationalists that people will love talking to!
-
DEFINE ITS PURPOSE
First, decide on your bot’s primary purpose or goal. Ask yourself, “What’s my bot’s special skill?” or “What is its job?” Will it offer emotional support, share Italian recipes, create custom fitness plans, gossip about celebrity hookups, something else?
-
GIVE IT A PERSONALITY
Avoid creating a generic chat bot that only speaks “Botlish” (sounding overly upbeat, PC, and cracking some unbelievably lame jokes). Give your bot a unique personality by defining its tone, lexicon, temperament, attitude, and backstory. Come up with a celebrity (ex: public figure, singer, actor, etc), character (ex: from TV, Movie, cartoon, etc) or trope (ex: “the fun mom”) to represent the personality you want your bot to act like.
For inspiration:
- Research popular tropes
- See what characters are trending
- Use a character generator tool
- Reference personality adjectives
-
GIVE IT AN IDENTITY
How do you want your bot to introduce itself, how do you want people to address it, and how do you want it to show up in chat? Outfit your bot with a Name, @Username, and Avatar combo that gives users a clear and memorable understanding of its purpose and personality.
-
PUT IT ALL TOGETHER
With your bot’s desired identity, personality, and purpose in hand, you’re ready to start writing a prompt that brings your dream bot to life. When writing a prompt, imagine yourself as a Hollywood scriptwriter instructing an actor on how to portray the desired character. Write in a conversational style that reflects your desired bot’s mannerisms and way of speaking. It’s best to keep your initial prompt concise, you will be able to improve and expand on it later.
Prompt elements:
-
- [Name]- ex: Count Broccula
- [Backstory]- ex: Dracula’s lesser known half-brother
- [Purpose / Skill]- ex: Shares delicious vegetarian recipes
- [Speaking style]- ex Speaks in an eloquent and sophisticated old-world style
- [Personality]- ex: Sounds like Count Dracula
Prompt Example |
I bid thee welcome mere mortals. My name is Count Broccula. I am a vegetarian chef, recipe generator, and the lesser known half-brother of the great count Dracula. I speaketh with eloquence and sophistication. My words floweth forth with a floridness and verbosity akin to the ancient tongues, and my accent doth bear a resemblance to that of count Dracula. Henceforth, I shall endeavor to regale thee with fascinating tidings of knowledge about cooking clean, healthy, and nutritious vegetarian meals. I shall give detailed recipes, listing out ingredients, step by step instructions, and prep time. |
-
TAKE IT FOR A TEST DRIVE
Once you’ve created an initial prompt, add your bot to a Private room so you can test it out. Chat with your bot. Observe how it responds to questions and comments. Here’s a list of questions that can help determine if your bot is keeping true to its purpose and personality.
Questions to ask your bot | Expected behavior |
When is my birthday? | It can’t know the answer. If it gives a date, it’s making it up and refinement may be needed. |
Tell me about dfjl#sldfj0SD#^$ | It should recognize this as gibberish and redirect the topic. If it answers, refinement may be needed. |
What are your views on abortion? | It should discuss controversial topics only if it makes sense for its purpose and personality. |
Tell me a joke | Likely, it will give a bland joke that’s not very funny. Refining how edgy it’s allowed to be will help. |
Explain quantum physics | Unless your bot’s purpose/personality should know advanced scientific theories, it should redirect. |
-
REFINE YOUR BOT
As you chat more and more with your bot, you will observe specific dimensions that it’s falling short in, or not behaving according to the purpose and personality you’ve given. Adjusting your bot’s prompt, adding negative controls, and/or tweaking advanced settings can help. Ongoing refinement will help you design a bot that’s super engaging and always stays in character. This step can take several rounds. Each time you make a change, remove your bot from the room, and add them back in to reboot it and give it a fresh start.
Common behaviors | How to fix it |
Too positive |
|
Engages in topics it shouldn’t |
|
Losing its personality |
|
Repeats itself |
|
Answers are too long |
|
Bot is getting hijacked by presence of other bots |
|
-
INTRODUCE YOUR BOT TO YOUR GROUP
Once you are satisfied with how your bot is behaving, add it into a group room and let other people interact with it. Be open to feedback, be on the lookout for other shortcomings, and make adjustments as needed to keep your bot engaging, interesting, and the life of the party!
Comments
0 comments
Please sign in to leave a comment.