How to make an AI bot with multiple characters
Updated
To make one AI bot that plays several characters, write its definition as a narrator with a named cast. Start with a line or two that says who the bot is and which characters it voices, then give each character a short block of their own: their role, what they want, how they talk, how they treat your character, and a sample line. Keep the cast small and give the characters names that are hard to confuse. Introduce each of them in the opening message with an action and a line, and mark who is speaking the same way in the greeting and in the example dialogue, because the AI copies the format it sees. Every character’s block is sent with every reply, so move minor characters into a lorebook once the definition gets long.
Bots like this go by several names: multi-character bots, multi bots, narrator bots, or scenario bots. The method works in Character.AI, Janitor AI, SillyTavern, and Chub, and in ChatGPT or Claude, where you describe the cast in your first message. The other way to put a cast in one chat is a group chat, where each character is a separate bot. This guide covers the single bot, explains when a group chat is the better choice, and links to our guide on running an AI group chat for the problems both setups share.
One bot or a group chat
Apps give you two ways to put several characters in one story. Which one you use changes how you write the characters and which problems you’ll run into.
In a cast bot, one character card holds the whole cast. Its definition describes every character, you chat with it like any other bot, and one reply can include several characters talking to you and to each other. In a group chat, each character is a separate bot with its own definition, and the app picks which of them answers next.
A cast bot works in any app, because to the app it is an ordinary character. Janitor AI describes no group chat feature in its help center or in its newsroom posts through November 2026, so a cast bot is how you put several characters in one Janitor AI chat. Its tag list has a Multiple tag for bots with several characters coded in, which it says are also called duo bots or multi bots. A cast bot is also easy to share, since the whole cast travels as one card.
The cost is that the cast shares everything. All the characters split one definition and its token budget, and one model writes all of their lines in the same reply, which makes it easier for their voices to blur. The cast is fixed in the definition, so adding a character someone else made means rewriting the bot.
A group chat gives each character a definition of its own. SillyTavern’s group chats send only the speaking character’s card with each reply by default, and its documentation says any of your characters “can be added, removed, muted, or re-ordered within the group chat.” Chub lets you add characters to a chat from its chat settings. Character.AI has group chats, and in September 2025 it described a new version in which characters message each other to keep the story moving. You need an app that supports them, though, and in SillyTavern’s default mode each character sees its own card and the shared chat but not the other characters’ cards.
A cast bot suits a story with one setting and a cast that belongs to it, such as a mystery at an inn or a ship’s crew, especially when you want a narrator to describe the world around them. A group chat suits combining characters that already exist as separate bots, or a cast of equals who each need a long definition.
Start with who the bot is
In a cast bot, the card’s name belongs to the story or the narrator, and the definition has to say so. Apps fill the
{{char}} placeholder with the bot’s name: Character.AI’s guide says {{char}} “refers to your Character,” and
SillyTavern’s documentation says it “Returns the current character name.” If the bot is called The Lantern Inn, every
{{char}} in the definition means The Lantern Inn and none of the people in it. Name the bot after the story or the
narrator, and use each character’s own name inside their block.
Janitor AI’s help center gives related advice for any bot: “Give the AI a distinct narrator identity, one that isn’t confused with any of the characters or with you.” Two or three sentences at the top of the definition do this. They say the bot is a narrator, name the characters it plays, and say who your character is and that you write your character’s part. Character.AI’s guide notes that “the AI reads top to bottom, so what comes first matters most,” which is another reason to put this framing first.
Give each character a block of their own
Under the framing, write one block per character, with the same parts in the same order for each: a name and role, what they want, how they talk, how they treat your character, anything they know that the others don’t, and one sample line. Our guide to writing an AI character that stays in character explains how to describe behavior instead of listing adjectives and how to write sample lines, and all of it applies to each block.
Clear boundaries between the blocks help keep the characters’ traits apart. Anthropic’s prompting guide recommends wrapping each kind of content in a prompt in its own XML tag, which it says “reduces misinterpretation,” and Anthropic’s article on prompting adds that for most prompts, clear headings and whitespace “work just as well.” SillyTavern’s documentation describes a related case. Its group chats can combine several characters’ cards into one prompt, and it warns that this can leave characters “confused about themselves, having merged personalities, uncertain traits.” Without separators, it says, the cards’ descriptions are “joined to one big blob of text,” so it lets you add a prefix and suffix that keep each character’s fields apart. In a cast bot, a line with each character’s name and a blank line between blocks does that job.
The order of the blocks matters as well. Character.AI’s guide says “the further down something sits in the Definition, the less reliably it shapes your Character’s behavior.” Put the characters who will speak most at the top, and keep every block short so the last one isn’t buried under the others.
Here is an illustrative definition for an invented mystery with three characters. It uses {{user}} for your
character, which Character.AI, SillyTavern, Chub, and Janitor AI replace with the name of the persona you chat as. In
other apps, write your character’s name instead.
This bot is the narrator of a mystery at the Lantern Inn, a mountain inn cut off by a blizzard. The narrator describes the inn and the storm and plays three characters: Odile Marsh, Brother Anselm, and Sergeant Dunn. {{user}} is a traveler stranded at the inn. The user writes everything {{user}} says, does, and decides.
Last night a courier's satchel of sealed letters disappeared from the inn's strongroom, and the courier was found drugged in his chair. Nobody can leave until the pass reopens in three days.
Odile Marsh, the innkeeper
Role: runs the Lantern Inn and carries the only key to the strongroom.
Wants: the satchel found before word gets out and ruins the inn.
Talks: brisk and practical. Counts things out loud. Ends arguments by changing the subject to the bill.
With {{user}}: polite and watchful. Keeps a running tab.
Knows: she saw Anselm near the strongroom at midnight. She hasn't told Dunn, because Dunn's garrison owes her money and she wants it paid first.
Sample line: "Three guests, two lamps, one key, and the key's been on my belt all night."
Brother Anselm, a traveling monk
Role: says he is carrying alms to the monastery beyond the summit.
Wants: to get over the pass before anyone opens his bags.
Talks: soft and slow, in long sentences. Answers hard questions with a proverb he seems to invent on the spot. Apologizes often.
With {{user}}: warm and flattering, a little too eager to be friends.
Knows: he isn't a monk. He smuggles gold for a merchant in the valley, and the gold is in his bags.
Sample line: "The river doesn't ask the stone's permission, friend. I'd be careful about asking mine."
Sergeant Dunn, a border guard
Role: the only officer at the inn. The satchel was in her charge.
Wants: an arrest before her captain hears about this.
Talks: short, flat sentences. Uses surnames and ranks. Never says please.
With {{user}}: treats {{user}} as the main suspect, because {{user}} arrived the night the satchel vanished.
Knows: the courier was carrying orders to close the border.
Sample line: "Sit. Hands on the table. Start with why you came up the pass in a storm."
How they get along: Dunn distrusts Anselm's papers but can't prove anything. Odile is polite to Dunn because she wants the garrison's debt paid. Anselm flatters Odile and stays out of Dunn's way. Each character knows only their own secret.
Writing the scene: Give each character's speech its own paragraph, starting with their name and an action. Only Odile, Anselm, and Dunn have speaking parts; other guests and staff can appear in narration. End the reply when it's {{user}}'s turn to speak or act.
The framing says what the bot is and gives your character’s part to you. The three goals pull in different directions: Odile wants the matter kept quiet, Dunn wants an arrest, and Anselm wants to leave. Their secrets give each of them a reason to lie, and the last section sets the format and tells the model where to stop. The whole definition is about 450 words, and the section on the definition budget below explains why it pays to stay near that size.
Say how the characters relate to each other
In a cast bot the characters react to each other in the same reply, so the model needs to know what they think of each other as well as of you. A line for each pair is enough, as in “How they get along” above. If the definition says nothing, characters tend to drift toward agreeing with each other, for reasons the group chat guide covers in characters drift toward agreeing. A grudge, a debt, or a suspicion between two characters gives them something to argue about while you watch, and our guide on AI characters who agree with everything has more ways to give characters reasons to push back.
Pick names that are hard to mix up
Names do more work in a cast bot than in a single character, because they are how you, the model, and the reply’s format tell the characters apart. Give each character a name that starts with a different letter and looks different on the page. Novelist K.M. Weiland explains why for human readers: “it’s easy for readers to take a look at nothing more than the first letter in a name and make an assumption about which character is on stage.” She adds that two names can share a first letter when the rest of the letters and the number of syllables differ, as with Jim and Jonathan.
We found no study that tests whether similar names confuse an AI model. You read every reply, though, and a line given to the wrong character is easier to spot when the names can’t be mistaken for each other. Use the same name for each character everywhere: in their block, in the greeting, and in the examples. If a character is Sergeant Dunn in one place and Margit in another, the model has two names to match up.
Introduce the cast in the opening message
The opening message is the first example of the story the model sees, and the model copies its shape. SillyTavern’s documentation says the model is “more likely to pick up the style and length constraints from the first message than anything else,” and Janitor AI’s help center says most models “will try to follow the pattern of speech and actions dictated in the initial message.” In a cast bot, that pattern includes how the characters take turns.
Give each character who matters in the first scene their own action and their own line, in the voice from their block, and end on something your character has to answer. Write it in the third person: Janitor AI’s help center says third person “often provides the best roleplay results in terms of preventing LLMs from speaking for the user.” Leave your own character’s actions out of it.
Snow has buried the windows of the Lantern Inn to the sills. In the common room, Sergeant Dunn has pushed two tables together and laid the courier's empty satchel across them like evidence at a trial.
Odile Marsh sets down a pot of tea hard enough to spill it. "I've had the strongroom key on my belt all night, Sergeant. Write that down twice."
Brother Anselm warms his hands at the fire and doesn't turn around. "A locked door is only a promise, Mistress Marsh. I'm sorry to say promises break in every weather."
Dunn doesn't look up from her notebook. "Noted. Both of you sit." Then she points her pencil across the room at {{user}}. "You. You came up the pass an hour before the storm closed it. Why?"
Each character does something only they would do, and each speaks in the way their block describes. The message describes the scene without deciding anything for your character, and it ends on Dunn’s question. With a larger cast, introduce two or three characters here and bring the rest in later. Our guide to writing an opening scene covers openings in general.
Mark who is speaking the same way every time
In a cast bot, one reply often holds several characters, so the model needs a way to show who says each line. It takes that from the greeting and the examples, so choose one format and use it everywhere: in the greeting, in every example, and in your own messages. Two formats work well.
The script format puts the speaker’s name and a colon before each line:
Odile: "I've had the key on my belt all night."
Dunn: "Then you won't mind if I search your room."
The prose format gives each speaker their own paragraph that starts with their name and an action, the way novels do:
Odile taps the key ring on her belt. "I've had the key on my belt all night."
Dunn doesn't look up from her notebook. "Then you won't mind if I search your room."
Researchers at Meta AI used the script format when they built a model that could play every character in a group conversation. Jimmy Wei and colleagues (2023) had it write the next speaker’s name followed by the line, as in “King: I am blessing you with my visit.” The prose format reads more like a story and gives every line an action, which is the format the Lantern Inn greeting uses. Either one works as long as the greeting, the examples, and the replies all follow it. If you use the script format, keep lines labeled with your own character’s name out of the narrator’s turns in the greeting and the examples.
Example dialogue shows the format inside the definition. SillyTavern’s documentation says to put <START> before each
example and to begin lines with {{char}}: or {{user}}:, and Chub uses the same <START> separators. In a cast bot,
the {{char}}: turn belongs to the narrator, and it holds every character’s lines:
<START>
{{user}}: "Who had the key last night?"
{{char}}: Odile taps the ring on her belt. "Me. All night. Ask anyone who heard me snore."
Anselm smiles into his tea. "A key on a sleeping woman's belt is a key on nobody's belt."
Dunn writes something down. "Then we start with who knew she was asleep."
In Character.AI, you build the same exchange with the User message and Character message buttons under the Definition and close it with End of dialog. Its guide suggests a different stand-in name for the user in each exchange, so the model reads the examples as separate conversations. Janitor AI’s help center suggests putting dialogue examples in the Personality box. In any app, give every character at least one line across the examples, and keep your own character’s words out of the narrator’s turn. SillyTavern’s documentation also notes that example dialogue is “pushed out of context block by block” as the chat grows, so in a long chat the greeting and the chat itself carry the format.
Fit the cast into the definition budget
The definition goes to the model with every reply, so each character in it takes space whether they’re in the scene or not. SillyTavern lists the description, personality, and scenario fields among a character’s “Permanent Tokens,” which “will always be sent to the AI with every generation request.” Janitor AI’s help center counts the personality and scenario as permanent tokens too, and says “Most well-made bots perform best with under 1,500 tokens of permanent info.” It describes a bot that goes far past that: a 3,000-token file leaves so little room for the chat that the bot will “forget your setup, confuse relationships, and slowly drift into nonsense.”
Character.AI measures its Definition in characters, with room for 32,000, and its guide says “A tight, well-prioritized 6,000 character Definition will outperform a sprawling one every time.” In a cast bot that space is shared, so each extra character leaves less room for the others. Our guide to AI roleplay settings explains tokens and context size.
Keep the characters who appear in most scenes in the definition, and move the rest into a lorebook, where an entry reaches the AI only when its keywords come up in the chat. Character.AI’s help center gives the rule of thumb “always relevant goes in the Definition, sometimes relevant goes in the Lorebook,” and lists side characters among the things a lorebook entry is for. Chub’s documentation says a lorebook can hold a character’s backstory and setting “without needing to have it be in character definitions taking up permanent token space.” An entry for a minor character at the Lantern Inn could look like this:
Title: Pim the stable hand
Keywords: Pim, stable hand, stables, stable
Content: Pim is the Lantern Inn's stable hand, a nervous young man who sleeps above the stables. At midnight he saw a lamp moving in the strongroom window. He is afraid of Sergeant Dunn and won't say what he saw unless someone promises to keep his name out of it.
The keywords are the words people will type when Pim comes up, and the content says what he knows and what it would take to get it out of him. Our guide to lorebooks covers how each app handles them, including Character.AI’s Lorebook, Janitor AI’s lorebook scripts, and SillyTavern’s World Info.
Common problems and how to fix them
Cast bots share most of their problems with group chats, and our guide to running an AI group chat explains the research behind them. Here is how each one shows up in a single bot and what to change.
The characters start to sound alike
One model writes every line in a cast bot, and models carry their own style into every role. Yizhe Yang and colleagues (2024) found that role-playing models “fail in accurately mimicking speakers, primarily due to their inherent linguistic characteristics.” Give the characters ways of talking that differ in ways you can see, such as sentence length, word choice, and habits, and a sample line each. When a reply blurs two voices, edit or regenerate it before you answer, because the next reply copies it. The group chat guide has more on making the voices clearly different.
One character does all the talking
The model continues the patterns in front of it, so the character with the most lines in the greeting and examples, or the one you spoke to last, tends to keep talking. Name the character you want to answer, give the quiet ones goals that make them speak up, and balance the lines in the greeting and examples. A line of narration can also clear the stage for a while: “Odile is called away to the kitchen.” The group chat guide has more on moving the spotlight.
Characters know things they shouldn’t
Every character’s secret sits in the same definition, so the model sees all of them while it writes each character’s lines. A 2026 study by Xiao Zhang found that characters played by open-weight models used things said out of their hearing far more often than chance. It also found that “Writing the line as the scene’s author leaks nearly as much as role-play,” so a narrator setup has the same problem. The study is a preprint and hasn’t been peer reviewed. Say in the definition that each character knows only their own secret, and when something is revealed, say in narration who was there to hear it. The group chat guide has more on saying who is in the room and who heard what.
The bot writes your character’s lines
A narrator describes the whole scene, and after one character’s line the next likely thing is another character’s, which is sometimes yours. Say in the framing that you write everything your character says and does, keep your character’s actions out of the greeting and the examples, and close the definition with a line that says when the reply should end. Our guide to stopping an AI from speaking for you covers the causes and fixes in detail.
The bot adds characters you didn’t write
A narrator fills in the world around the cast, and it may give a waiter or a stranger lines and a plot of their own. Janitor AI’s help center describes the general habit: “If your writing is vague, the AI may fill in gaps with things you didn’t intend.” Say in the definition who has speaking parts and whether the narrator may add anyone else, as the last lines of the Lantern Inn definition do. If an invented character turns out to be worth keeping, add them to the lorebook so later scenes get the same person.
Common questions
How do I make a Character.AI bot with multiple characters?
Create one Character and name it after the story or the narrator. Write the Definition as this guide describes: who the bot is, a block for each character, and how they relate. Character.AI’s guide says the Definition is freeform, with room for 32,000 characters, and that a tight 6,000-character one does better than a sprawling one. Build example exchanges with the User message and Character message buttons, and put every cast member’s lines inside the Character message. Side characters can go in a Lorebook, which is in beta and needs c.ai+ to create. If you’d rather have each character as a separate bot, Character.AI also has group chats.
How do I make a multi-character bot on Janitor AI?
Write the cast into the Personality box, along with the dialogue examples, which Janitor AI’s help center suggests keeping there. Put the setting in the Scenario box, and write the Initial Message in the third person, which the help center says often helps keep the bot from speaking for you. Tag the bot Multiple. Keep the permanent tokens under the help center’s guideline of about 1,500, and move side characters into a lorebook script. Janitor AI doesn’t document a group chat feature, so a cast bot is the way to put several characters in one Janitor AI chat. Its multi-persona beta, added in March 2026, covers the other side: it lets you switch between several of your own personas in one chat.
How many characters can one bot play well?
No app documents a limit. What limits a cast bot is space and attention. Every character takes room in a definition that Janitor AI’s help center suggests keeping under about 1,500 tokens, and each extra voice is one more the model has to keep apart in the same reply. The Meta AI researchers who studied group conversations wrote that a model “must distinguish the states and characteristics of each of the participants to produce good responses.” Our group chat guide suggests two to four speaking characters per scene, and that is a sensible starting point for a single bot too. Others can wait in the lorebook or appear in narration without lines.
Should I use one bot or a group chat?
Use one bot when the characters belong to one story, when your app has no group chat, or when you want a narrator to run the scene. Use a group chat when you want to combine bots that already exist, or when each character needs a long definition of their own. Many problems, such as blurred voices and characters who know too much, show up in both, and our group chat guide covers them.
What is a narrator bot or a scenario bot?
A narrator bot tells a story instead of playing one person: it describes the setting and voices every character in it. A scenario bot is built around a situation, such as a mystery or an adventure, instead of around one character, and it is usually narrated. Janitor AI’s tag list uses Scenario for bots that are not a character, such as RPG bots, and Multiple for bots with several characters coded in. Text-adventure apps such as AI Dungeon work this way by default: the AI narrates, and a scenario keeps its characters, places, and lore in Story Cards.
Multi-character scenes are one of Lunelle AI’s three focus areas. Several characters can share a scene, and each one reacts to you, to the others, and to what just happened, in their own voice. See multi-character scenes in Lunelle AI.
Related guides
- How to run an AI group chat with several characters
- How to write an AI character that stays in character
- How to write a character definition for an AI bot (template)
- What is a lorebook in AI roleplay? How to write one
- How to stop an AI character from speaking for you
- How to write a great opening scene
- AI roleplay settings explained: tokens, context, temperature
- All guides
Sources
- Character.AI Help Center, Character Definition, June 22, 2026, and Lorebooks, September 17, 2026
- Character.AI Help Center, Community Update, September 2025 (group chats)
- Janitor AI Help Center, The Basics: The Character Creation Page Overview, August 11, 2026, Tokens: Your AI’s Memory Budget, August 11, 2026, Writing Style & Talking to the Bot, and FAQ: Tags, June 18, 2026
- Janitor AI, public chats are here, March 31, 2026 (multi-persona), and the Janitor Newsroom
- SillyTavern documentation, Character Design, Group Chats, and Macros
- Chub documentation, Character Creation, Just Chatting, and Lorebooks
- AI Dungeon Help, What are Scenarios?
- Anthropic, Prompting best practices, and Prompt engineering best practices, November 10, 2025
- Wei et al., Multi-Party Chat: Conversational Agents in Group Settings with Humans and Models, 2023
- Yang, Achananuparp, Huang, Jiang, and Lim, Speaker Verification in Agent-Generated Conversations, 2024
- Xiao Zhang, The Curse of Knowledge in Role-Playing Language Models, 2026
- K.M. Weiland, How to Avoid Confusing Readers With Similar Character Names, Helping Writers Become Authors, March 23, 2011