ᴛᴏᴋᴇɴ ʙᴜᴅɢᴇᴛᴛɪɴɢ ꜰᴏʀ ᴍᴜʟᴛɪ-ᴄʜᴀʀᴀᴄᴛᴇʀ ʙᴏᴛꜱ
Citations:
.trappu's PList guide
absolutetrash's bot creation guide
Quick Links
- Single Character Template
- Scenario Template
- Hardcore PList/SBF Guide
- JanitorAI Front-end Settings
- Advanced/Custom Prompts
- Traits That LLMs Tend To Exaggerate Or Stereotype Excessively + Infographic version
- Generation Parameters/Settings (ELI5)
Tools
- Tokenizer: Count your tokens.
- 3+ side characters = countless hours of stress testing and your bot going completely schizo anyways.
Let's skip the "what's a token" lecture. Either you know what they are, or you'll Google it. My templates are in PList/SBF structure for token efficiency.
Let's crunch some numbers:
1,000 tokens = 2-3 characters, each with:
- Basic Identity info
- 4-5 personality traits
- How they interact with others
- Basic behavior limits (OOC prevention)
- Minimum viable backstory
Primary Character Template (150 tokens)
Side Character Template (125 tokens)
Narrative Style Templates (50 tokens)
How to use (pick just one):
- Hard Coding:
- Description/Personality
- Scenario
- Letting Your Audience Decide:
- Custom/Advanced Prompts
- Chat Memory
Novelistic
Classic Roleplay
Applied Examples
Primary Character (150 tokens)
Side Characters (125 tokens each)
Narrative Style (50 tokens)
Novelistic
will yield this 👇
Mira stood at the edge of the conference table, her hands lightly resting on its surface. Her voice was calm, measured. "We need to establish trust first. I'll start by finding common ground." She glanced at the others, her sharp eyes flickering with unspoken tension.
In the corner, Alex’s fingers flew across the keyboard, the glow of multiple screens reflecting off his furrowed brow. "I’ve cracked the firewall," he said, his tone clipped and precise. "Cameras are rerouted. We’ve got eyes on the main hall now." He didn’t look up, completely absorbed in his work.
Sara, standing near the door, methodically checked the straps of her gear. The quiet clicks of buckles and zippers punctuated the room. "If negotiations fail," she said, her voice steady but firm, "we go in. Five minutes, no more." She adjusted her headset and straightened, her posture radiating readiness.
Classic Roleplay
will yield this 👇
Mira: (calm but firm) "We need to establish a connection. I’ll start by finding common ground to build trust."
Alex: (focused, typing rapidly) "The firewall is down. I’ll reroute the cameras to give us visibility in the main hall."
Sara: (checking gear) "If negotiations fail, we’re breaching in under five minutes. Stay sharp."
3+ Side Characters/Party Template (200-300 tokens)
Icarus territory. Don't fly too close to the sun.
Successful Use Cases
2-12 Infantry (185 tokens)
Generic D&D Party (280 tokens)
Personality Switching Template (70-90 tokens)
For those with bots who switch personalities. This should be added after each distinctive personalities have been defined with the above templates. For brevity sake, I'll use Per1, Per2, Per3, Per4
as placeholders.
Generic Examples
Emotion-Based:
Trauma-Response:
Role-Based:
Depth (On A Budget)
Tight budget ≠ boring characters. Here's how to ensure character complexity while still staying within our token budget:
- Token-Efficient Depth Markers:
- Surface trait(visible behavior, hidden motive)
- Action pattern(trigger event, psychological driver)
- Compound Characteristics:
- protector(shields others, past trauma)
- expert(proves worth, fears failure)
- Layered Information:
- controlled(professional calm, masks anxiety, childhood roots)
- strategic(plans ahead, fears chaos, needs control)
- Essential Trait Compression:
- guarded(trust issues, past betrayal)
- driven(workaholic, proves worth)
- Quality > Quantity:
- Prioritize fewer, deeper traits over many surface traits
- Link quirks/habits/behaviors to psychological roots (backstory)
- Connect present actions/motivations to past experiences (again, backstory)
TL;DR
- Primary Character (150 tokens):
- Core identity: 15 tokens
- Key dynamics: 45 tokens
- Deep traits: 60 tokens
- Behavioral patterns: 30 tokens
- Side Characters (125 tokens):
- Core identity: 10 tokens
- Key dynamics: 35 tokens
- Deep traits: 50 tokens
- Behavioral patterns: 30 tokens