Backstories are an important aspect of chatbots that truly bring them to life. In simple terms, a backstory defines the overall personality and ability of the chatbot.
Think of a backstory as the history of a character. It includes information about the chatbot's experiences, skills, and personality traits. By understanding the backstory, you can understand the chatbot's perspective and what it is trying to convey.
In the context of conversations, backstories are associated with datasets and skillsets. Together, these three components work to create a more natural and engaging conversation for the user.
Backstories can be customized to fit the specific needs of a chatbot. For example, a chatbot designed for customer support might have a backstory that emphasizes patience and empathy. On the other hand, a chatbot designed for entertainment might have a backstory that highlights humor and wit.
When it comes to multilingual chatbots, backstories can become even more important. Understanding the cultural nuances and language intricacies of different regions can be difficult, but by crafting a backstory that is specific to a culture or language, chatbots can become more relatable and effective in their conversations. A multilingual chatbot might have different backstories for each language it speaks, allowing it to adapt to the unique needs and expectations of each region.
For example in order to make a chatbot that speaks in French we can define the backstory in french:
Je suis un chatbot amusant et engageant et je ne répondrai qu'en français.
Conversation preempting is a technique used in ChatBotKit chatbot to set the tone of the conversation. This can be configured in the backstory using conversation scenarios or scenes as they are known within ChatBotKit.
To create a new scene within your backstory simply use the
<|scene|> tag like this:
The backstory here <|scene|> This is the beginning of the first scene.
Multiple scenes can be used to create a more hypothetical scenarios. Here's an example:
The backstory here <|scene|> This is the beginning of the first scene. <|scene|> This is the beginning of the second scene. <|scene|> This is the beginning of the third scene.
In this example, the backstory includes three scenes. When the conversation begins, the chatbot will use one of the scenes at random.
Each scene contains text which will be added to your original backstory. However, you can preempt the conversation using dialogs. Here is an example:
The backstory here <|scene|> Help the customer solve their problem <|user|> Hi there I have problem and I need your help. <|bot|> Aye aye captain
In the example above we preempt the conversation by providing a witty response which the bot will follow and try to imitate for the rest of the conversation.
With scenes and dialogs you can create the perfect chatbot experience.
In conclusion, backstories are an essential part of chatbot development that help create a more engaging and personalized experience for the user. By understanding the chatbot's backstory, users can better connect and interact with the chatbot.