← Fix what the AI keeps doing

AI mixes up characters in group scenes? Keep them straight

Updated

AI mixes up characters when several people share a scene and little tells them apart: similar names, the same pronouns, the same voice, or someone who left the scene but stayed in the text. Give each person a distinct name, a one-line tag and a way of talking, keep three or fewer active at once, and correct the first swap. On UnsavedAI, a short cast list in Story memory keeps everyone straight.

Try it now, free, no account neededStart a story with Cosmo FeatherstoneA retired stage ham hosts murder-mystery weekends. He plays all eight suspects. You're the detective.

Five kinds of mix-up

Mix-upLooks likeUsual cause
Wrong speakerThe cook delivers the captain's threatLines without names attached
Merged peopleTwo guards become one guard with both namesSimilar names or the same job
Swapped traitsThe quiet twin starts swearing like the loud oneTraits mentioned once, long ago
The ghost returnsThe murdered guest passes the saltNobody wrote them out of the scene
Pronoun soup"She handed her the letter, and she read it"Same pronouns, no names

Each one gets more likely the longer the scene runs, because the model leans on recent text and the introductions slide further back.

Why a crowd confuses the model

A character card describes one person in detail. Everyone else in the scene exists only in the chat, often as a single line when they first appeared. The model keeps track of people by the words around them, so two side characters with similar names, roles or speech patterns blur into one. Names that start with the same letter are a classic trap: Mara and Mina, Kael and Kane. So are three women in a room described only as "she".

For setting up an ensemble in the first place, see roleplaying with several characters. This page is about repairing a scene that has already tangled.

A cast list the model can use

A good cast note gives each person a name, a job and one tell the model can hang dialogue on. A made-up tavern scene:

  • Wren, innkeeper, sixties: short sentences, calls everyone "love".
  • Captain Odile Farrant: formal, never uses first names, taps her sword hilt when lying.
  • Pim, stablehand, early twenties: talks too fast, interrupts.
  • Brother Tobin: answers questions with questions.
  • Gone: the courier (left at dawn). Dead: Hal Brisk (found in the cellar).

Notice the spread: different first letters, different syllable counts, different ways of speaking. The last line matters as much as the others, since it stops departed people drifting back in.

Where it goes: in SillyTavern, an Author's Note or a World Info entry set to always be included; in JanitorAI, the chat memory box; on UnsavedAI, Story memory (⋯ menu). Update it when someone arrives, leaves or dies.

Fixing a swap without derailing the scene

  • Edit the name in the reply. Do not correct it inside the story ("Wait, that was Farrant's line"); that adds confusion the model then builds on.
  • If the mix-up is big, one note does it: (OOC: the threat was Captain Farrant's, not Wren's. Wren is behind the bar and hasn't spoken.)
  • Ask for labels when more than two people talk: (OOC: put the speaker's name before each line of dialogue for this scene.)
  • Thin the crowd. Send someone off in your own turn: *Pim runs to fetch the doctor.* Fewer people on stage means fewer chances to swap them.

Characters built for a crowd

Cosmo Featherstone hosts murder-mystery weekends at Wexley Grange and plays all eight suspects himself, switching with a feathered half-mask on a stick. That mask switch works like a label; if voices start to blur, ask him to name each suspect as he raises it. Priya Raman, the wedding DJ who found the best man at the bottom of the cellar stairs, has a whole reception of suspects; keep the three or four who matter in your cast note, with the songs that alibi them. For a cast of your own invention, the Narrator voices everyone you bring in.

Questions people ask

Why does the AI confuse my character with one of its own?

Usually your persona has no name or shares pronouns with someone nearby. Give your character a name and use it; if it starts writing your lines, see stopping the AI from speaking for you.

How many characters can the AI keep straight?

There is no fixed number. Two or three speaking in one reply stays clean; more works with name labels and a cast note.

Are SillyTavern group chats better for this?

They help, because each character has its own card and takes its own turn. See the SillyTavern group chat guide.

Characters for this story