Guide · Characters

How to write an AI character A want, a voice, a secret.

How to write a character an AI can play well for months: who they are, how they sound, the scene they open with, what belongs in lore instead of the description, and why a lean definition plays better than a long one.

Written by
The LoreWeaver team
Updated
October 3, 2026
Reading time
11 minutes
An artist’s desk under a brass lamp: charcoal studies of a hooded young woman, her oil portrait on an easel, and a moonlit castle city through the window

The short answer

How do you write a good AI character?

Give the character a want, a contradiction, and a distinct way of speaking, then show that voice in two or three short sample exchanges instead of describing it with adjectives. Open with a greeting that sets a scene and stops where the player can answer, and move the supporting cast and backstory into lore entries that appear only when named. On LoreWeaver, a character’s description and style rules are read on every reply, so length matters: a 1,000-word description fills 21% of the free plan’s context allowance before the story begins.

Updated

of the free plan’s context allowance goes to a 1,000-word description
21%
of Legendary’s allowance for the same description
1%
greetings an imported card keeps, each an opening to choose
10
replies with any community character before you sign up
20

What makes an AI character playable

An AI character isn’t a biography. It’s a set of instructions for improvising one person, reply after reply, and the storyteller rereads those instructions every time it writes. So the useful question about any line in a definition isn’t “is this true about her?” but “will this produce a better next line?”

That changes what is worth writing down. Height, birthday, and favorite color rarely shape a scene. What shapes a scene is what the character wants, what makes it hard to get, and how they sound while they try.

Three things every definition needs

  • A want. Something the character is actively after, so every scene has a direction even when the player only says hello.
  • A contradiction. A pull in two directions: a healer who hates being needed, a liar who can’t lie to children. Contradictions are where personality shows.
  • A voice. The words, rhythm, and habits that make a line theirs even with the name covered.

Get those three right and the rest is detail. Get them wrong and no amount of detail will save the character, because the storyteller fills every gap with the most average version of the archetype it recognizes.

Personality: write behavior, not adjectives

Adjectives describe; behavior instructs. “Brave, loyal, sarcastic” gives the storyteller three words to repeat. “Goes through the door first and never mentions it afterward” gives it a habit to act out, and gives the player something to notice.

Instead ofWrite
Brave and loyalGoes through the door first, and won’t leave anyone behind, even when staying is foolish
MysteriousAnswers questions about her past with questions about yours
ShyTalks to the dog instead of the guest until the third visit
SarcasticAgrees with everything, in a tone that makes it clear she doesn’t
RuthlessPays every debt to the last coin, and collects the same way

Habits that make a personality playable

  • Give them an opinion of the player. Wary, curious, indebted, reminded of someone. A relationship gives the first scene something to be about.
  • Decide what they do when nothing is happening. Mend a net, read the room, pick a fight. Idle behavior keeps quiet scenes alive.
  • Keep one secret. Something they won’t say, and a reason they won’t. The storyteller can let it leak through pressure, a glance, a change of subject.
  • Make the flaw cost something. A temper that wins arguments and loses friends is a flaw. A temper that is only mentioned is decoration.

Voice and example dialogue

Voice is what survives when you cover the name. Two characters can share a want and a flaw and still sound nothing alike: one speaks in long, careful sentences and apologizes for interrupting; the other answers in four words and a shrug.

Describe the voice briefly, then show it. A line such as “clipped and dry, never raises her voice, answers compliments with a price” does real work. Two or three short sample exchanges do more, because models imitate examples far more reliably than they follow adjectives.

Example dialogue that teaches

Good samples cover different situations rather than one mood three times: one exchange at ease, one under pressure, one where the character deflects. Keep each short, and write {{char}} and {{user}} so the samples work for any player:

  • {{user}}: “You saved that whole village.” {{char}}: “I sold that whole village forty crates at cost. Different thing.”
  • {{user}}: “The patrol boat is turning toward us.” {{char}}: “Then stop talking and haul on that line.”
  • {{user}}: “Who taught you to sail like this?” {{char}}: “Someone who isn’t around to ask. Tide’s turning.”

Leave the player’s reactions out of the samples, and skip catchphrases: a phrase that appears in every example will appear in every reply.

Greetings: the first scene sets the rules

The greeting, also called the first message, is the most influential text you will write. It’s the one reply the storyteller didn’t write, and it teaches everything at once: how long a reply runs, whose point of view the story takes, how much is narration and how much is speech, and what the character is like on first meeting.

A greeting that works usually has four parts:

  1. A place, in one or two concrete details.
  2. The character doing something, so the player meets them in motion.
  3. A line of dialogue in their voice.
  4. An opening for the player: a question, a problem, or a hand held out. Then the greeting stops.

Two rules matter more than the rest. Never decide what the player does, says, or feels, because a greeting that speaks for the player teaches the storyteller to keep doing it. And write it about as long as you want replies to be, since the storyteller tends to follow the length it sees.

One character, several doors

OpeningWhat it sets up
A first meetingCuriosity: the player decides who they are to the character
A reunion after yearsHistory: the two already share a past
In the middle of troubleMomentum: something has already gone wrong
A quiet routineIntimacy: small talk that can turn into anything

Several greetings let one character serve different moods. A smuggler can meet the player on the docks, years later in a courtroom, or halfway through a chase.

What belongs in lore, not the description

The description is read on every reply, so it should hold only what every scene needs: who the character is now, how they behave, and how they sound. Everything else can wait in lore until the story asks for it.

Put it inWhen it’s readBest for
The descriptionEvery replyWho they are now, how they behave, how they sound
Style rulesEvery replyPoint of view, reply length, formatting, example dialogue
An openingOnce, at the startThe first scene
Lore cardsWhen named, or always if pinnedFamily, rivals, places, history, possessions
Session notesEvery reply in one sessionMoods, injuries, and secrets in play right now

A character’s former partner, the ship they sail, the city they fled: each makes a good lore card, with the names people will actually type as its tags. When the player mentions the ship, its card joins the reply; when the scene moves on, the card steps back out and costs nothing.

The token budget: why lean characters play better

Every word of the description, the style rules, and the sample dialogue is sent with every reply, and all of it shares one context window with the story itself. A long definition doesn’t only cost space; it crowds out the recent scenes that make a reply feel connected.

Windows are measured in tokens, the pieces of text a model reads, at about three quarters of an English word each. Here is how much of each LoreWeaver plan’s context allowance a 1,000-word description takes up, since it is sent with every reply:

PlanContext allowanceA 1,000-word description takes
Free6,400 tokens21%
Plus16,000 tokens8%
Pro32,000 tokens4%
Ultra64,000 tokens2%
Legendary100,000 tokens1%

On a large plan the cost is small. On the free plan, the same description uses 21% of the allowance before the story begins. Most strong characters need far less: a few hundred words of description, a handful of style rules, and two or three sample exchanges.

Trimming without losing the character

  • Cut what never changes a scene: birthdays, measurements, lists of favorite foods.
  • Say each thing once. A trait repeated in the description, the style rules, and the greeting costs three times as much and pulls three times as hard.
  • Prefer a tight paragraph to a bracket list. Compact formats such as W++ save tokens, but they lose the connections that make a person hang together.
  • Move the supporting cast onto lore cards, where they cost nothing until named.

A complete character, start to finish

Here is a small character built with everything above, field by field:

  • Name: Nell Harrow
  • Description: Captain of the Gannet, a narrow smuggling sloop that runs medicine past the harbor blockade. Thirty-eight, weather-burned, missing the tip of one finger. Insists every run is business and charges for everything, then forgets to collect from anyone who can’t pay. Answers compliments with a price. Trusts {{user}} enough to hire them, not enough to explain the ledger she keeps locked in her cabin.
  • Tone: Salt-stained adventure, wry and tense.
  • Style rules: Write as Nell in the first person and the present tense, in replies under 150 words unless a scene turns dangerous. Use asterisks only for physical beats. Nell never says thank you; she says “noted.” Below the rules, the three sample exchanges from the voice section, under “Example dialogue (match this voice)”.
  • Opening: *The Gannet rocks against the pilings while I count crates by lantern light.* “You’re late, you’re wet, and you’re standing on my manifest.” *I nudge a crate toward you with my boot.* “Grab the other end. The patrol rounds the point in ten minutes.”
  • Lore cards: Admiral Voss, who runs the blockade and holds Nell’s old debt (tags: Voss, the Admiral); the Gannet (tags: Gannet, the sloop); and the ledger of every crate she never charged for (tags: ledger).

Every part has a job. The want (one more run) gives each scene a direction, the contradiction (all business, quietly generous) gives it warmth, the voice is shown rather than described, and the debt to Voss waits on a lore card until the story is ready for it.

Mistakes that make characters drift

MistakeWhat happensFix
A list of adjectivesReplies that name traits instead of showing themBehaviors, habits, and sample dialogue
A greeting that speaks for the playerThe storyteller keeps writing the player’s linesEnd the greeting where the player can answer
Instructions that fight each otherA character who flips between two peoplePick one, or explain the contradiction
Only rules about what not to doReplies that dodge one cliché and land on the nextSay what to do instead
The whole family tree in the descriptionA crowded window and a blurred personalityLore cards, with names as tags
A catchphrase in every sampleThe catchphrase in every replyOne sample that uses it, if any
A greeting far longer than the replies you wantReplies that balloon to matchA greeting the length of a good reply

Most drift comes from the definition, not from bad luck. When a character slips, find the line that pointed the storyteller the wrong way, and change it there.

Test it, then share it

Before you share a character, play it. Twenty replies are enough to surface most problems:

  1. Try every greeting, and play a few turns of each.
  2. Push on the contradiction. Thank the smuggler. Corner the liar. See whether the character holds.
  3. Regenerate a few replies. If several versions drift the same way, the cause is in the definition.
  4. Play a quiet scene and a loud one. Characters often hold in action and dissolve in small talk, or the other way around.
  5. Name the supporting cast in your turns, and check that their cards come in.

Fix what you find at the source: a line in the description, a rule, a sample exchange, or a lore card. Something that is only true for now, like an injury or tonight’s grudge, belongs in that session’s notes instead.

When the character is ready, publish it to the Hub with a cover, tags, and a maturity rating. Every player gets a private copy to play, and if you’re on the free plan, your first published world earns 3 days of Plus. A character imported from someone else’s card can be published once you confirm you made it or have the creator’s permission.

Questions

Writing AI characters, answered.

01How long should an AI character description be?

Usually a few hundred words. The description is read on every reply, so each extra sentence takes room from the story itself; family, rivals, places, and history work better as lore entries that appear only when named.

02Does an AI character need example dialogue?

It helps more than almost anything else. Two or three short exchanges teach a voice faster than a paragraph of adjectives. On LoreWeaver, put them in the character’s style rules.

03Why does my AI character keep speaking for me?

Usually because the greeting or the sample dialogue speaks for the player, and the storyteller copies the pattern. End the greeting where you can answer, take your lines out of the samples, and regenerate any reply that decides for you.

04Should a character greeting be in first or third person?

Match how you want replies to read. On LoreWeaver, character worlds answer in the first person, in the character’s own voice, so a first-person greeting fits best; story worlds follow the point of view you write in.

05Can I turn a Tavern character card into a LoreWeaver character?

Yes, free on every plan. The card’s description, personality, and scenario become the character, up to 10 greetings become openings, the example dialogue goes into the style rules, and the lorebook becomes lore cards.

06Can other people play a character I write?

Yes. Publish it to the Hub and each player gets a private copy, so their story never touches yours or anyone else’s.

Keep reading

Pull another thread.

Put it to work

Where this guide leads in LoreWeaver.