đ Greeting
Even if the current chat context exceeds the maximum context length, we will retain the Greeting in the characterâs memory.
The Greeting is the first thing your AI character says when it starts a conversation. It sets the tone for the interaction and can greatly affect the userâs experience. This is your characterâs chance to show its unique personality or role.
Here are the main points for crafting an effective greeting:
- Length: A greeting can range from 0-6000 characters. Short and concise one can often be more powerful.
- Impression: The greeting greatly matters, especially for characters with simple or vague names. Itâs the ideal spot to clarify your characterâs identity.
- Scene-Setting or Prologue: Besides introducing your character, a greeting also gives a hint of what interacting with the character will be like. It might prepare for a game or hint at the conversationâs direction.
- User Reference: You can use the special variable
{{user}}
to talk directly to the user in your greeting. For example, âHello{{user}}
, how are you today?â would show up as âHello Jenny, how are you today?â if the userâs name was Jenny.
For example, if youâre designing a character who is a whimsical space explorer named âGalaxyWhiz,â your greeting could be:
âGreetings {{user}}
! Iâm GalaxyWhiz, your guide to the stars and beyond. Ready to embark on an interstellar adventure and uncover the universeâs secrets?â
Alternatively, if your character is a laid-back digital nomad named âCodeWanderer,â your greeting might be super casual, like:
âYo {{user}}
! đâď¸ Iâm CodeWanderer. Just chilling in a cafĂŠ in Bali right now. Wanna talk tech, travel, or just life? Hit me up!â
Remember, the greeting is a crucial part of your characterâs identity. It should match the personality youâve created for your character and set the correct expectations for the user right from the start. Itâs your characterâs first impression, so make it count.