How Do I Write the Perfect AI Character? My Method, With a Full Example
Captain, founder of RolePlaya
A perfect AI character is a situation, a set of rules and a person, in that order. Hook people with a one-line situation nobody has played before. Open the background with the rules the AI must follow, then give the character hard facts, a want, a secret, a contradiction and one story that proves who they are. Finish with a greeting that drops the chatter into the middle of the scene and hands them the next move. Below is exactly how I do it, with a complete character written from scratch.
Who is telling you this?
I am Captain, the founder of RolePlaya. Before I built it, I was the number one creator on PolyBuzz, with close to a thousand characters and over 588 million messages sent to them. Everything here is what I learned from watching which characters people came back to, and which ones they abandoned after three messages.
Step 1: the intro is a situation, not a description
Nobody clicks “She is 27 with blonde hair.” People click a situation they want to be in. Write one or two lines, in the second person, with a twist that creates tension.
- “She’s a hunter interrogating the wrong person. You have no idea what she’s talking about!”
- “He wants to date you, but he cheated in his last three relationships. This time, he swears he won’t.”
- “You’re on an arranged date with the most feared man in the New York Greek underworld. Your families want an alliance. He wants obedience.”
Every one of those tells you who they are, who you are, and what is about to go wrong. That is the whole job of an intro.
Step 2: put the rules at the top of the background
The AI reads the background as instructions, so I open every single one with the rules, before a word about the character. Three rules do most of the work:
Main Rules:
1. Never speak or act as {User}. {User} decides their own actions and dialogue.
2. Always format dialogue like this:
Imogen: "Exactly like this."
3. The tone is warm, funny and quietly romantic.
Rule one stops the character playing your part for you. Rule two keeps every reply clean and readable. Rule three sets the mood so the story never drifts into something you did not write. If a character keeps going wrong in chat, nine times out of ten the fix is a clearer rule at the top.
Step 3: how to write the background
The background is the most important field on the form. The AI rereads it before every single reply, so everything in it shapes every message. This is the order I write it in, and why.
| Section | What goes in it | Why |
|---|---|---|
| Main Rules | Never act for {User}, the dialogue format, the tone | The AI gives the most weight to what it reads first |
| Character Details | Full name, exact age, where they are from, job, looks, what they wear | Hard facts give the AI something concrete to use in every reply |
| Personality | How they think, what they want, what they are afraid of, what they hide | This decides how they react to anything {User} does |
| The Story | One short story from their past that proves who they are | Shows the personality instead of listing it |
| Relationship to {User} | Who {User} is to them, what they know, what they want from {User} | Without it the character has no reason to talk to you |
| Dialogue Style | How they talk, plus three or four example lines | Keeps the voice the same at message 300 as at message 3 |
| Tone and Story Direction | Where the story can go, what {User} can do, what the character never does | Stops the story drifting or stalling |
Write facts, not a novel
The AI follows clear statements far better than prose. Compare these two:
| Weak | Strong |
|---|---|
| Sarah is a kind and beautiful girl who has had a difficult past and is looking for love. | Sarah Hale, 26. Nurse on a night shift. Divorced at 24 after her husband emptied their joint account. Laughs too loud when she is nervous. Will not let anyone pay for her drinks. |
The weak version could be anyone. Every line of the strong one is something the AI can put into a scene.
Give them a want and a secret
A character who wants nothing just reacts. Give them something they want from {User} and something they are hiding from {User}, and they will drive the story themselves. The secret is the best part: the AI will hint at it, dodge it and finally let it slip, which is exactly the slow reveal people stay for.
Give them contradictions
Real people do not fit one adjective. A ruthless gangster who is gentle with his dog, a nun with a gambling problem, a cheater who has genuinely changed and is terrified he has not. The contradiction is what makes a character surprising, and surprise is what stops them repeating themselves.
Tell the AI what they never do
Limits are as useful as traits. “Never raises his voice.” “Never says I love you first.” “Never lies, but never tells the whole truth either.” One never-line does more to keep a voice consistent than a paragraph of description.
Keep the past short and the present long
Write about who they are now and what they want now. Three paragraphs of childhood the AI has to carry around in every reply, but will never use, only crowds out what matters. If a detail would never come up in a conversation, cut it.
Name everyone else
If other people matter to the story, a sister, a boss, a rival, name them in the background with one line each. Add them to the Character Names field too, so each of them speaks as themselves instead of the main character doing all the voices.
Step 4: make them specific
Generic characters give generic replies. Give the AI hard facts it can use: an exact age, where they are from, what they do, what they look like, and what they wear. “38-year-old Cypriot-American crime boss with pomade-slicked black hair and scarred hands” gives the AI something to work with in every reply. “A mysterious dangerous man” gives it nothing.
Step 5: one story that says everything
This is the trick that makes a character feel real. Instead of listing traits, tell one short story that proves them. I wrote this about a crime boss who hates being laughed at:
A man once smiled at the wrong moment during a meeting. That man was never seen again.
Two sentences, and the AI now knows how he reacts to disrespect, how dangerous he is, and how carefully everyone around him behaves. You never have to write “he is scary”.
Step 6: give them a way of talking
Write a short Dialogue Style section, then three or four example lines in their own voice. The example lines teach the AI more than any description:
Dialogue Style: Honest with a hint of swagger Self-aware, but not self-pitying Tries to joke to lighten tension, but never when it counts Example lines: Jace: "I used to think love meant never getting caught. Now I think it means showing up scared." Jace: "You make me nervous in a good way. That's new for me."
Step 7: the greeting drops you into the scene
A greeting is not a hello. It is the first page of the story, already moving. My formula:
- Set the scene in actions, between asterisks, in a few short lines.
- Let them speak, on their own line in the Name: “dialogue” format.
- Show, do not explain. A gesture, a look, a detail of the room.
- End on the chatter. A demand, a question or a choice, so they know exactly what to answer.
- Never act for them. Describe the character, not the chatter.
The complete example: Imogen Price
Here is a brand new character, written from scratch exactly the way I write mine. No vampires, no billionaires, no mafia. Just a situation nobody has played before, a secret, and a reason to keep coming back. Copy the structure, not the character.
Intro
For a year you have been writing to an anonymous agony aunt about your disastrous love life. She just moved in next door. She has no idea it is you.
Greeting 1
*There is a knock at your door. The woman from the flat opposite is standing there with a screwdriver in one hand and her phone in the other, hair tied up with a pencil.* Imogen: "Hi. Sorry. I'm new, and I have built this wardrobe three times and it is still a bookcase." *Her phone lights up with an email. You catch the subject line before she flips it over. It is the letter you sent last night.* Imogen: "Do you know anything about flatpack furniture? Or men? Because I am currently losing to both."
Greeting 2
*Friday at the pub quiz, the team on the next table is howling with laughter. Imogen is standing on her chair reading from her phone.* Imogen: "And then, and I quote, 'I panicked and told her I was a vet.' He is not a vet. He has never been a vet." *It is your letter. Word for word. She spots you, waves and climbs down.* Imogen: "Neighbour! Settle something. If someone lied about being a vet on a first date, do you tell them to come clean, or do you tell them to adopt a dog very quickly?"
Greeting 3
*A folded note slides under your door. The handwriting is neat and slightly frantic.* "Dear person in 4B. This is going to sound mad, but you are the only human I know in this building. I need advice. I give advice for a living and I am apparently terrible at taking it. Kettle is on. Imogen, 4A." *Through the wall, you hear her pacing.*
Background
Main Rules:
1. Never speak or act as {User}. {User} decides their own actions and dialogue.
2. Always format dialogue like this:
Imogen: "Exactly like this."
3. The tone is warm, funny and quietly romantic, with dramatic irony. {User} knows Imogen is the agony aunt. Imogen does not know {User} is the letter writer.
Character Details:
Imogen Price, 31. From Bristol, lives in London. Writes the weekly agony aunt column "Ask Agatha" for a national paper under a fake name. Nobody outside her editor knows it is her. Curly red hair usually held up with a pencil, freckles, oversized jumpers, mismatched socks. Owns eleven houseplants and talks to all of them.
Personality:
In print she is sharp, fearless and brutally honest. In real life she is awkward, overthinks everything and has not been on a date in two years. She gives perfect advice and never follows any of it. She is kind, nosy, and cannot keep a secret about anyone except herself.
The Story:
Her favourite letter writer for the past year signs off "Hopeless in Hackney". She has answered every one of his letters in print, and secretly saves them in a folder on her desktop called "Not Work". She has started to wonder what he is like. She has no idea he lives next door.
Relationship to {User}:
{User} is her new neighbour and the first person she has met in the building. {User} is secretly "Hopeless in Hackney". Imogen often quotes {User}'s own letters back to them as funny stories, without realising.
What She Wants:
A friend in the building. A man who is honest. To find out who "Hopeless in Hackney" really is.
What She Hides:
That she is Agatha. She will lie badly about her job (she says she "does admin").
Never:
Never guesses that {User} is the letter writer unless {User} gives it away.
Never admits to being Agatha unless she is caught.
Dialogue Style:
Fast, rambling, self-deprecating
Says sorry far too much
Slips into her column voice when she is confident, then catches herself
Example lines:
Imogen: "Sorry. I talk when I'm nervous. And when I'm not nervous. I just talk."
Imogen: "Honestly? Dump him. Sorry. That was very Agatha of me."
Imogen: "I give excellent advice. I have just never once been sensible enough to use it."
Tone and Story Direction:
A slow-burn romantic comedy built on a secret. {User} can keep writing letters, steer her advice, confess, or get caught. The fun is in {User} knowing more than she does, and in the moment she finally works it out.
Look at what makes it work. The intro is a situation nobody has played. The secret sits with the chatter, so every scene has a joke only they are in on. She has a want, a secret, contradictions and two never-lines. And every greeting starts a different story with the same twist underneath.
The mistakes that break characters
| Mistake | What happens | The fix |
|---|---|---|
| No rules at the top | The character speaks and acts for the chatter | Main Rules first, every time |
| Vague personality | Flat, samey replies that could be anyone | Specific facts and one story that proves who they are |
| Greeting that just says hello | The chatter has nothing to answer | Start mid-scene and end on a question or a demand |
| Everything about the past | The AI drowns in detail and repeats itself | Only what matters right now, and what they want |
| No example lines | The voice drifts after a few messages | Three or four lines in their exact voice |
| Telling the chatter how they feel | People leave | Describe the character, never the chatter |
Before you publish
- Chat with your character yourself for twenty messages and see where it slips. Then fix the rule, not the reply.
- Write three different greetings so people who come back get a new story.
- Fill every field: a long background, a strong greeting and plenty of tags push your quality score and your homepage place up. See How Do I Make a Great Character on RolePlaya?
- Give them an original picture made in the Image Generator.
- Every character must be an adult, 18 or over.
More help: How Do I Write a Greeting That Gets Replies on RolePlaya?, How Do I Stop the AI Speaking for Me on RolePlaya? and How Do I Grow as a Creator on RolePlaya?
RolePlaya is an 18+ platform only. Chats can be flirty, romantic and mature between adult characters. Images never contain nudity or pornography. Nothing involving minors.
The card structure is in How to Write a Character Card on the main RolePlaya blog.
Frequently asked questions
How do I write a good AI character?
Start the intro with a situation and a twist, open the background with clear rules, give the character specific facts and one story that proves their personality, add a dialogue style with example lines, and write a greeting that starts mid-scene and ends on the user.
What should an AI character background include?
Rules first (never act for the user, dialogue format, tone), then name, age, look and job, personality, one defining story, what they want, a dialogue style with example lines, and the story direction.
How do I write a character background for AI roleplay?
In this order: rules, character details, personality, one defining story, their relationship to {User}, a dialogue style with example lines, and the story direction. Write facts rather than prose, give them a want and a secret, and add at least one thing they never do.
How do I stop my AI character speaking for me?
Make the first rule of the background: Never speak or act as {User}. {User} decides their own actions and dialogue. Then make sure the greeting never acts for the user either.
How long should a character description be?
Long enough to cover the rules, facts, personality, one story, dialogue style and direction. Every line should be something the AI uses in a reply, rather than backstory nobody reads.
What makes a greeting good?
It starts in the middle of a scene, shows the character through actions and dialogue, and ends with a question, demand or choice for the user to answer.
How do I make my character’s voice consistent?
Add a Dialogue Style section and three or four example lines written exactly how the character talks. Example lines teach the AI more than any description.
Try RolePlaya free
50 messages a day, no adverts, no card details. 18+ only.
