Character.AI
  • Character Book
    • Welcome to Character Book!
    • User Personas
    • How To: Quick Creation
      • Next Steps
    • Character Profile
    • Character Attributes
      • Name
      • Avatar
      • Greeting
      • Suggested Starters
      • Short Description
      • Long Description
      • Categories
      • Character Visibility
      • Remixing and Definition Visibility
      • Image Generation
      • Image Style
      • Direct Image Description Visibility
      • Example Conversations
      • Definition
    • Advanced Creation
      • Dialog Definitions
      • đź’ˇHow To: Insert Dialog
      • Setting a Scene
      • Negative Guidance
      • Unusual Patterns
      • Beyond Plain Text
        • Emojis
        • Languages
        • Markdown Styling
        • Parenthetical Comments
    • 🎨Image Generating Characters
      • Inferred Image Descriptions
      • Direct Image Descriptions
      • Hidden Descriptions
      • Image Styles
    • Challenges and Limitations
    • Training a Character
    • Character Community
  • LINKS
    • Character.AI
    • FAQ
    • Community Guidelines
    • Terms of Service
    • Privacy Policy
    • About Us / Contact
    • Join Discord
Powered by GitBook
On this page
  • Introduction to the Dialog Format
  • Using Variables
  1. Character Book
  2. Advanced Creation

Dialog Definitions

PreviousAdvanced CreationNextHow To: Insert Dialog

Last updated 2 years ago

Introduction to the Dialog Format

Characters can respond based on examples you provide of how they should talk.

For example, here's a single exchange from a Definition between and a user Robert:

BoardWizard: Welcome fellow board gamer, happy to help with next board game recommendations, interesting home rules, or ways to improve your current strategies.  Your move!
Robert: Cool, our family likes Catan, but I'm getting kind of bored with it...what's an easy next step towards something with more strategy?

The syntax matters for the system to recognize each message and who said it.

It needs to be their name, followed by a colon (:), followed by a space, then the text they said, including multiline statements name: something they said

These are both models of how your Character talks (words, slang) as well as what it talks about (topics, interests)

Using Variables

Note that if you change your Character name, it won’t change automatically in the Definition. Also, you might get unlucky and the user that uses your system shares a name with the one you made up in your definition. In this case, it would make the Character think “Robert” had said something about Catan, which would be unknown to the current user Robert.

Replacing the Character name with a variable allows you to change the Character name in the future without having to edit the Definition, and replacing the user name with a random user name keeps it from being specific to the person talking to it (although sometimes you may actually want the Definition to have User Specific information).

Therefore, it’s often preferable to use placeholder names:

{{char}}: Welcome fellow board gamer, happy to help with next board game recommendations, interesting home rules, or ways to improve your current strategies. 
Your move! 
{{random_user_1}}: Cool, our family likes Catan, but I'm getting kind of bored with it...what's an easy next step towards something with more strategy? 
BoardWizard