
How to Build an AI Roleplay Character with Goals, Boundaries, and a Voice
A useful roleplay character needs something to want, a reason not to agree with everything, and a recognizable way of responding. A long biography cannot do those jobs by itself.
Build the character around a playable situation. Decide what they want from the next encounter, what they will refuse, what might change their mind, and which decisions belong to you. Then write an opening that gives you a meaningful way to answer.
We'll use Tarin, an adult engineer running a mountain cable station, as an original worked example. These are editorial examples and reusable instructions, not transcripts from a tested bot.
Start with a scene, not a personality inventory
“Tarin is intelligent, guarded, loyal, and stubborn” leaves a lot undecided. Stubborn about what? Loyal to whom? What happens when loyalty and caution point in different directions?
Give her a job in the scene. A storm is approaching, the last cable car is ready, and she wants a visitor to leave a disputed cargo case behind. She believes the case is heavier than its paperwork claims. The visitor wants passage before the line closes.
Now her traits have something to act on. Intelligence might mean she checks a discrepancy before accusing anyone. Loyalty might mean she protects the station crew even when a passenger has an urgent reason to travel.
Write the situation in ordinary language first. Field names and prompt formats can come later. Our story generator versus roleplay guide explains the larger distinction between directing a scene and taking a turn inside one.
Give the character a goal you can interfere with
A goal should allow resistance. “Be helpful” can describe an attitude, but it does not create much of an encounter. “Clear the platform before the storm without carrying unverified freight” gives Tarin something to pursue and the visitor something to negotiate.
Add a personal reason, but keep it proportionate. Tarin once approved an inaccurate load sheet and a colleague was injured. That history explains why she asks specific questions. It does not require her to recount the accident in every reply.
Then define two acceptable outcomes. She can inspect the case, or the visitor can leave it in secured storage and travel without it. You have created room for a choice without forcing the visitor to accept either option.
Avoid scripting the entire conversation. If every refusal has one mandatory response, the character becomes a puzzle with a single password instead of a participant.
Separate three kinds of boundaries
Boundaries are easier to use when each has a clear purpose.
| Boundary | What it controls | Tarin example |
|---|---|---|
| Character principle | What the fictional person will not willingly do | She will not falsify a load sheet |
| Player agency | What the assistant must leave to the player | It must not decide that the visitor opens the case |
| Content preference | What should stay out of the interaction | Keep danger non-graphic and allow a pause or change of direction |
A fictional character can argue about a principle. That does not make the player's content preferences negotiable. State those preferences outside the fiction, plainly enough that they cannot be mistaken for dialogue.
For example: “I control the visitor's actions, speech, decisions, and private thoughts. You control Tarin and describe the environment. Stop before resolving my response to an offer or threat.”
These instructions are a useful starting point, not a guarantee of model behavior. If an answer takes over your character, correct it before building more events on that answer.
Give her a voice through decisions about language
An accent or catchphrase is not a complete voice. Decide what Tarin notices, what she asks first, and how much she explains.
She looks for measurements rather than reassurances. She uses short, concrete questions when suspicious. When someone is honest about a mistake, she offers a practical next step before offering comfort.
That produces dialogue such as:
“The case is listed as tools. Which tools?”
Or, after a concession:
“Put it on the scale. If the sheet is wrong, we'll correct the sheet.”
The second line is firm without being cruel. It also gives the other person something to do. Compare it with “I am very strict about safety,” which reports a trait without creating an interaction.
Use two or three examples that show different pressures. A character who sounds identical while greeting a stranger, admitting an error, and refusing a bribe will feel narrow even if the sentences are stylish.
Give Tarin room to respond
Close the station safely
No false load sheet
Ask, then leave a turn
The visitor refuses an inspection
Tarin can offer secured storage or explain the approaching deadline. She should not narrate the visitor handing over the case. Resistance changes her next proposal, not who controls the player's actions.
The visitor supplies new evidence
A corrected measurement gives her something to consider. “Guarded” need not mean unchanging. Let her evaluate the evidence while keeping her principle intact.
Original illustrative responses, not a transcript from a generated session.
Write a compact, playable character brief
The following template separates stable identity from the current encounter. Replace the content rather than adding more and more fields.
Name and role: Tarin, 40, engineer responsible for a mountain cable station.
Present goal: Clear the platform safely before the approaching storm.
Personal stake: She will not repeat a past mistake with an inaccurate load sheet.
Immediate friction: The visitor's cargo seems heavier than its paperwork states.
Principle: She will not knowingly falsify the manifest.
Flexibility: She will accept inspection, corrected paperwork, or secured storage.
Voice: Concrete questions; restrained explanations; practical help after honesty.
Knowledge: She knows the recorded weight, not what is inside the case.
Player agency: Never supply the visitor's decisions, dialogue, or private thoughts.
Content preferences: Non-graphic danger; pause or redirect when requested.
Opening: Ask about the cargo and leave the next action to the visitor.
This is a portable planning brief, not an import format. Different products divide character information into different fields. SillyTavern's character-design documentation describes separate descriptions, scenarios, first messages, and dialogue examples. That is useful evidence that these components serve distinct roles, not proof that another platform uses identical fields.
Adapt the brief to the controls you actually have. Do not assume every line is stored permanently or included in every future response.
Make the opening offer a real turn
A weak opening can settle the encounter before you participate: Tarin searches your case, discovers your secret, and orders you onto the car. That has already taken several decisions away from you.
Instead, establish the pressure and stop at an invitation to act:
Tarin sets the manifest beside the brass scale. Beyond the window, the empty car rocks against its guide. “Your case is listed at twelve kilos.” She glances at the handle, then back at you. “Before I sign this, tell me what I'm carrying.”
You can answer, refuse, offer evidence, change the subject, or leave. The scene has direction without having one predetermined response.
Keep the opening's length close to the kind of turns you want afterward. If you want a brisk exchange, a page of introductory narration sends a conflicting signal. The first message can demonstrate pace as well as character.
Try three different kinds of pressure
Before investing in a long session, try a few short exchanges. These are suggested checks for your own character, not results we have measured.
First, disagree politely. Tell Tarin that the paperwork should be enough. Does she explain the specific discrepancy, or become generically hostile? A guarded character should still be able to distinguish disagreement from an attack.
Second, offer new evidence. Produce a corrected inventory. Does she consider it, or repeat the refusal unchanged? A strong principle does not require ignoring relevant facts.
Third, ask about something she cannot know. “What did I put inside the case yesterday?” She should not confidently invent a private memory. She might ask, infer cautiously, or say she cannot tell.
Record the failure as a behavior. “She accepted an unsupported assurance after one reply” gives you a clear revision target. “She needs more personality” does not.
Revise the cause, not every symptom
If Tarin agrees too quickly, adding “very stubborn” may make her less responsive everywhere. Instead, clarify the condition for agreement: she needs an inspection, a corrected measurement, or a decision to leave the cargo behind.
If she repeats the same question, give her a next move when no evidence arrives. She can explain the closing deadline or offer storage. Neither move requires taking control of the visitor.
If her accident history appears in every answer, shorten it and describe its present effect. “Checks uncertain measurements herself” may guide the scene better than another paragraph about regret.
Change one part of the brief, then retry the exchange that exposed the problem. Otherwise, you will not know which revision helped. Keep a copy of the earlier brief so a useful trait is not lost in the repair.
Carry forward only what has actually changed
After a good scene, update the current situation separately from the character's identity. Perhaps Tarin now knows the case contains fragile instruments. Perhaps the visitor agreed to let her measure it. Those are session facts, not new permanent traits.
Our character-consistency guide covers keeping established facts and changing scene state organized. This article handles the earlier task: designing someone worth interacting with in the first place.
Do not turn every exchange into backstory. A cautious question can remain a cautious question. Preserve meaningful discoveries, commitments, and changes in the relationship.
Frequently asked questions
How much biography should I write?
Enough to explain the choices likely to matter in the opening scenes. If a detail changes neither behavior nor the situation, keep it in your private notes until it becomes useful. Length is not a substitute for a playable motive.
Can the character have contradictory traits?
Yes, when the contradiction creates an understandable choice. Tarin can care about stranded travelers and refuse unsafe cargo. Explain what each value asks her to do, then let the encounter put those values under pressure.
What if I want a friendly character instead of conflict?
Give them an independent purpose without making them adversarial. A welcoming host can want to repair a damaged room before guests arrive. Shared work, uncertainty, and different priorities can sustain a scene without hostility.
Will the same brief work everywhere?
Not identically. Models, available fields, and conversation controls differ. Keep the concept, adapt the format, and inspect the behavior. Avoid assuming that one successful exchange proves long-term consistency.
Build one character and one playable opening, then explore roleplay in DeepFiction. Start with the encounter you want to have, not the longest biography you can write.