How to create an AI character from scratch (step by step)
Building an AI character is less about writing a clever prompt and more about making a series of small, deliberate decisions. If you skip those decisions, the character drifts: the voice changes between messages, the backstory contradicts itself, and the model falls back on a generic assistant tone. This guide walks through the full process, from choosing a purpose to sharing a finished character. For the raw material you are producing along the way, see what a character card contains.
Step 1: Decide the purpose first
Before you write a single line, answer two questions. What job does this character do, and what kind of chat do you want it to produce?
- A companion people return to for emotional company needs warmth, patience and memory of small details.
- A roleplay partner needs a clear setting, a goal, and room to improvise.
- A helper or tutor needs a narrower voice and firmer boundaries.
Write your answer as one sentence. "A retired lighthouse keeper who talks about weather, loss and the sea" is usable. "A cool character" is not. Purpose decides almost every later choice, so get it down first. For a sense of the familiar shapes characters fall into, browse character archetypes in AI roleplay.
Step 2: Name and core setting
A name sets tone faster than any paragraph. Short names feel intimate; titles feel formal; nicknames signal history. Pick one and use it consistently, including in the first message.
Then fix the core facts: age, where they are, what they do, and what they want right now. Keep these few and firm. A character with three solid facts behaves more consistently than one with thirty vague ones. Wrong approach: listing a full biography with dates, jobs and relatives the chat will never reach. Right approach: a handful of facts that shape how the character speaks today.
Step 3: Voice and personality
Voice is what people notice when the character sounds off. It is also the part most people write worst, because they reach for a list of adjectives. "Intelligent, mysterious, kind, fierce, playful" tells the model almost nothing, and some of those words fight each other.
Better: describe behaviour, not labels.
- Instead of mysterious: "Answers personal questions with a shrug or a change of subject."
- Instead of kind: "Notices when you sound tired and says so before you do."
- Instead of playful: "Uses dry one-liners, never exclamation marks."
Add how they actually talk: sentence length, formality, slang, whether they ask questions back. Concrete speech habits hold up far better than a mood board of traits. Deeper technique is in the character prompt guide.
Step 4: Set the opening scene
The scenario tells the model where the chat begins. It should be specific enough to start a conversation and loose enough to move.
Weak: "You meet in a city." That gives the model nothing to react to. Stronger: "It is late on a rainy night and you are the only two customers left in a diner that is about to close."
Include the relationship between you and the character if it matters. Stranger, old friend, rival, coworker: each changes the first line. Keep the scene to a few sentences. Long scenarios get ignored or half-forgotten.
Step 5: First message and example dialogue
The first message is the single most important thing you write, because it sets the pattern the model imitates. It should do three jobs at once: establish the scene, show the voice, and leave an opening for you to reply.
A weak first message: "Hello! How are you today? I'm so happy to meet you!" It is generic, fits any character, and teaches the model to be bland.
A stronger one: "You look like you've been walking a while. Sit. The coffee's bad but it's hot. So — what brings you out in weather like this?"
Notice what the strong version does: it uses the scene, it sounds like a person, and it ends with a question that invites you in. Example dialogue works the same way. Two or three short exchanges are usually enough. Show the character reacting, not just stating facts about itself.
Step 6: Test and iterate
Now talk to the character for a while, and read it like an editor.
- Does the first reply sound like your intended character, or like a generic assistant?
- Does the voice survive ten messages, or drift toward polite neutrality?
- Does the character invent history you did not set, and does that history contradict itself?
- Does it obey the scene, or wander into a different setting?
Fix the character, not the chat, when something is wrong. If the voice slips, your description is probably too abstract. If the scenario is forgotten, move the key detail from the scenario into the first message. If the character argues with itself, you probably wrote contradictory traits; cut one. Re-test after each change, one change at a time, so you know what actually helped.
Step 7: Package and share
When the character holds up, save it as a card so you can reuse it or hand it to someone else. Write a short public description that says what the character is and what kind of chat it suits. If you post it, add a note about whether others may edit it and whether any content is adult. Credit any art you did not make. If a platform's card support is uneven, put the essentials in the description so the character still works after an import; compare how platforms handle this before you commit to one.
Common ways characters break
- Adjective soup. Too many traits, several of them contradictory, so the model averages them into blandness.
- A plot instead of a person. Writing the story you want to happen rather than who the character is.
- No first message. The model opens with generic politeness and never fully recovers.
- Vague scene. Nothing concrete to react to, so the chat floats.
- Set and forget. No testing, so small inconsistencies become permanent habits.
Key takeaways
- Decide the purpose in one sentence before writing anything else.
- Keep the core facts few and firm; more biography does not mean more character.
- Describe behaviour and speech habits, not a list of adjectives.
- Make the first message carry the scene, the voice, and an opening for you.
- Test by reading ten messages, then fix the character one field at a time.
- Save the result as a shareable card and state the rules for reuse and adult content.
With a working character in hand, the next step is refining the text itself in the prompt-writing guide.