How to roleplay with AI: a guide for your first story
Updated
To roleplay with AI, you choose a character and a situation, then take turns: you write what your own character does and says, and the AI writes everyone else and the world around you. Before you start, settle three things: who you are, who the AI is playing, and where the first scene begins. Then write turns that give the other characters something to answer, bring in new events yourself instead of waiting for the AI to, and fix a bad reply right away by regenerating or editing it, because the AI copies whatever stays in the chat.
This works the same way in character apps such as Character.AI and Janitor AI, in story apps such as AI Dungeon and NovelAI, in SillyTavern, and in general assistants such as ChatGPT, Claude, Gemini, and Grok, where you write the setup yourself. This guide covers the basics, gives a starter prompt and 18 story ideas, and links to our guides on the problems that come up once a story gets going. App details are as of December 2026.
How AI roleplay works
A roleplay chatbot is a language model that writes the next part of a text. Before each reply, the app sends it the character’s description, any notes or memory, and as much of the recent chat as fits, and the model writes a continuation of that text. It has no other source. What the character knows, how it talks, and what it does next all come from what is in front of it.
Murray Shanahan and colleagues, in a 2023 paper on role play with language models published in Nature, suggest thinking of a chatbot as playing a character. The same model can play any number of characters, and the one it plays in your chat is shaped by the setup and by everything written since. That is why your own messages matter as much as the character’s description. Janitor AI’s help center says of its own model, “JLLM mirrors you,” and gives the practical advice: “So write the kind of story you want to see. The bot will follow.”
The player usually drives the plot. Kristine Ask and Tanja Sihvonen, who studied Character.AI players from 2022 to 2024, describe the platform as “best understood as an open world text-based roleplaying game run by user-generated storylines.” A 2026 study of 87 stories written by people and language models together found the same division of work: “human turns introduce greater semantic novelty and are more likely to shape subsequent developments,” while the model mostly built on what the person introduced. The models in that study also leaned toward a more positive tone than the people did. In practice, the AI will follow and elaborate well, and the twists, setbacks, and hard choices often have to come from you.
Where you can roleplay with AI
The basics are the same everywhere, but apps differ in how much is set up for you.
Character apps such as Character.AI and Janitor AI have large libraries of characters made by other players, and you can make your own. A chat starts with the character’s greeting, and you reply. Janitor AI’s built-in model, JLLM, “is free, built-in, and ready to go out of the box,” according to its help center; connecting another model through a proxy is optional.
Story apps such as AI Dungeon and NovelAI are closer to text adventures. In AI Dungeon you take turns with three actions: Do (“Have your character perform an action”), Say (“Have your character say what you type”), and Story (“Have the AI respond to your own narration”).
SillyTavern is a free, open-source interface that you run yourself and connect to a model of your choice. It has the most settings of any option here and needs the most setup. If you want full control over the model and the prompt, we recommend it.
General assistants such as ChatGPT, Claude, Gemini, and Grok have no ready-made characters. You describe the story and the rules yourself, as in the starter prompt below. To keep that setup across chats, put it in a project in ChatGPT or Claude, or in a Gem in Gemini. OpenAI is retiring custom GPTs on December 11, 2026, and suggests projects for ongoing writing.
Set up your first story
A few decisions before the first message save a lot of correcting later.
Choose who the AI plays
Pick one character to start with, or a narrator who plays a small cast. A character with a clear want and a clear problem is easier to play against than one described only by personality. If you write the character yourself, start with our character definition template and how to write example dialogue. Our guide to writing an AI character who stays in character covers behavior and voice in more depth.
Decide who you are
Give your own character a name, a role in the story, and a few facts the other characters can see, such as an occupation or a scar. Most apps have a place for this, usually called a persona. Keep it to facts that don’t change and let your character’s personality show through what you write in the chat. A long persona full of personality traits gives the AI material to play your character for you. Our guide to writing a persona has a template.
Agree on the kind of story
Decide the genre and tone, and anything you want kept out. Tabletop players do this before a campaign with a practice called lines and veils: lines are topics that won’t appear in the story at all, and veils are things that can happen off-screen, with the scene cutting away. The TTRPG Safety Toolkit collects this and similar tools. Put the same information in your setup or persona. An instruction doesn’t guarantee the AI will follow it, so if a reply goes somewhere you didn’t want, regenerate it and restate the rule out of character.
Start in the middle of a scene
Begin at a moment when something is already happening, with a place, one character doing something, and a question or problem your character has to answer. Character.AI’s guide for creators calls a character’s greeting “a style anchor, not just an opener,” because the AI copies its length and style for the rest of the chat. Write the first message the way you want the whole story to read. Our guide to writing an opening scene covers this step by step.
A starter prompt for ChatGPT, Claude, Gemini, or Grok
In a general assistant, you write the setup as your first message or in the project instructions. This prompt is a starting point written for this guide. Fill in the brackets and delete lines you don’t need:
Let's write an interactive story together. You are the narrator and you play every character except mine.
My character: [name, and one line on who they are]
Setting: [time, place, and the situation at the start]
Genre and tone: [for example, a slow mystery, grounded, with some dry humor]
Keep out of the story: [topics to leave out entirely]
How to play:
- Write only for the narrator and your characters. Never write my character's actions, words, or thoughts.
- End each reply at a moment where my character can act or answer.
- Keep replies to two or three paragraphs.
- Your characters have their own goals and can refuse, argue, or lie. Not every plan of mine should succeed.
- If I write something in (parentheses), I'm speaking to you out of character.
Start with: [the opening situation]
Each rule answers a problem that comes up often. The first keeps the AI from playing your character, which our guide to stopping an AI from speaking for you explains. The second gives you a reason to act at the end of every reply. The length line sets the pace; see making replies longer or shorter. The rule about goals pushes back against the AI’s habit of agreeing with the player, covered in our guide to AI characters that agree with everything.
In Gemini, the same text works as the instructions for a Gem. Google’s advice for Gem instructions starts with “Tell your Gem what role to play and how to respond.” In ChatGPT and Claude, a project’s instructions apply to every new chat in the project, so you can start a new chapter without pasting the setup again.
How to write your turns
Your turns are half the story, and they set the pattern for the AI’s half.
Say what your character does and says, specifically. AI Dungeon’s help center notes that “The AI typically responds best to specific details you enter, so always try to include exactly what you want.” It gives the example of typing ”> You go in.” and leaving the AI too much freedom about what happens next. “I push the door open with my shoulder and hold the lantern up to see who is breathing in the dark” tells the AI what your character is doing and what to answer.
End on something the other characters have to respond to: a question, an action aimed at them, or a choice. This example is an illustration:
I set the sealed letter on the table between us. “You’ve been following me since Hollow Ford. Either tell me who sent you, or take it and see what happens.”
Bring in events yourself. If the scene stalls, have something happen: a knock at the door, a stranger with news, a storm that closes the road. Our guide to steering an AI story has more ways to move a plot from inside the story.
Write the way you want the AI to write, since it copies your length and style. Common habits in character apps are quotation marks for dialogue and asterisks or italics for actions. Janitor AI’s help center says quotes and readable spacing help “the bot keep track of what’s going on,” and that consistency matters more than perfect formatting.
Play only your own character. Deciding how other characters react or writing that your attack lands takes the other side’s turn away; roleplayers call it godmodding. Our glossary of AI roleplay terms explains this and other terms you will see.
Fix bad replies early
Every reply you keep becomes part of the text the AI copies, so a wrong name, a repeated phrase, or a reply that plays your character tends to come back. Apps give you a few tools for fixing a reply before it settles in.
Regenerate a reply you don’t like. Character.AI’s help center says that “Every time your Character responds, you can swipe to see alternative versions of that response.” AI Dungeon calls this Retry, and SillyTavern calls it a swipe.
Edit a reply that is mostly right. AI Dungeon’s help center points out that “The AI never knows when you’ve edited something,” so an edited reply works as an example of what you want. Fix wrong names and facts this way before they repeat. SillyTavern’s documentation also suggests editing your own message: “If you wish you’d said something different, you can edit your message and then swipe the AI’s response to get a new one.”
Don’t rely on ratings to change the current chat. Thumbs up and down feed into future model updates, and Character.AI says plainly that “Your Character won’t suddenly improve because you gave a few thumbs up.”
When you need to say something to the AI as the writer, put it in parentheses or mark it as out of character, then go back to the story. Our guide to what OOC means covers how to write notes the AI follows.
Problems you’ll run into, and where to fix them
Most players meet the same handful of problems once a story runs for a while. Each has its own guide:
- The character forgets names, promises, or what happened earlier: why AI characters forget and how to write a chat memory summary.
- The AI writes your character’s actions or lines: how to stop an AI character from speaking for you.
- Replies repeat the same phrases or shrink to a line: why AI replies get repetitive or short.
- Replies are too long or too short: how to make AI replies longer or shorter.
- Every character agrees with you and every plan works: how to stop an AI character from agreeing with everything.
- The character stops sounding like itself: how to write an AI character that stays in character.
- Several characters blur together in one scene: how to run an AI group chat.
- Settings such as tokens, context size, and temperature: AI roleplay settings explained.
Story ideas to start with
These 18 premises cover seven genres. Each borrows its situation from a classic novel or story and ends with an opening moment you can start in. Add the setting in a sentence, show one character doing something, and end on the hook.
Fantasy
- The ship’s new navigator insists on sailing to an island no chart shows, and the crew is close to mutiny (after Homer’s Odyssey). Opening: the island appears at dawn, exactly where she said it would be.
- You have learned the true name of a dangerous creature, and the name gives power over it (after Ursula K. Le Guin’s A Wizard of Earthsea). Opening: a stranger at the inn offers to buy the name, and somehow knows you have it.
- A desert city controls the only spring for a hundred miles, and the families who guard it rule everything (after Frank Herbert’s Dune). Opening: this morning, the spring ran red.
Our guide to lorebooks covers keeping a world’s details straight over a long story.
Mystery
- An avalanche cuts off a mountain hotel with eight guests and one body (after Agatha Christie’s Murder on the Orient Express). Opening: the victim’s watch stopped an hour before anyone last saw him alive.
- A painting disappears from a guarded estate with no sign of a break-in (after Arthur Conan Doyle’s “Silver Blaze”). Opening: the guard dog slept through the whole night, and it never sleeps through anything.
- A family heirloom vanishes during a birthday party, and every guest tells a different story about the evening (after Wilkie Collins’s The Moonstone). Opening: the jewel’s owner refuses to call the police.
A mystery needs a solution written down before play and fair clues; see how to play a murder mystery with AI.
Science fiction
- Your experiment worked, and the being you made wants to know why it exists (after Mary Shelley’s Frankenstein). Opening: it learned to speak overnight, and its first word was your name.
- A stranger arrives claiming to come from eighty years in the future (after H. G. Wells’s The Time Machine). Opening: she knows your name, and she is afraid of you.
- You wake up as the reluctant guest of a submarine captain who is fighting a private war (after Jules Verne’s Twenty Thousand Leagues Under the Seas). Opening: he asks you to choose his next target.
Horror
- You are reading a dead relative’s journal, and it describes events that are still happening (after Bram Stoker’s Dracula, which is told through diaries and letters). Opening: tonight’s entry hasn’t been written yet.
- You have moved into an old house, and every night you hear a steady beat under the floorboards (after Edgar Allan Poe’s “The Tell-Tale Heart”). Opening: your housemate stops on the stairs and asks whether you hear it too.
- Some things can come in only if someone invites them (after the vampire’s rule in Dracula). Opening: you find out that someone in the house already said yes.
A zombie survival story needs rules for the dead and supplies that run out; see how to run a zombie apocalypse roleplay with AI.
Adventure
- A dying sailor leaves you a map to buried treasure, and half the crew you hire already knows about it (after Robert Louis Stevenson’s Treasure Island). Opening: the ship’s charming cook takes a great interest in your sea chest.
- You are locked in an island fortress for a crime you didn’t commit (after Alexandre Dumas’s The Count of Monte Cristo). Opening: the stones of your cell wall start to move, and an old man who has been digging his way out climbs through.
Historical and court intrigue
- A gift of diamonds must be brought back from across the sea before a royal ball, or the queen’s secret will come out (after Alexandre Dumas’s The Three Musketeers). Opening: the cardinal’s spies are already on the road.
- At a country ball, a letter is delivered to the wrong person, and its contents could ruin three families (after the social world of Jane Austen’s novels). Opening: you are the one holding it.
Slice of life
- Four sisters get through a hard winter while their father is away (after Louisa May Alcott’s Little Women). Opening: the wealthy neighbor’s lonely grandson has been watching the house from his window.
- You arrive in a small town where everyone has known everyone else since birth (after L. M. Montgomery’s Anne of Green Gables). Opening: on your first day, you make an enemy of the most popular student.
Common questions
How do I start a roleplay in Character.AI?
Open a character, or create your own, and the chat begins with the character’s greeting. Set a persona first if you want the character to know who you are playing. Reply in character with something the character has to answer, and swipe for another version of any reply that goes the wrong way. Character.AI says the greeting sets the style for the chat, so if you make the character yourself, write the greeting the way you want the story to read.
How do I roleplay with ChatGPT, Claude, or Gemini?
Start with a setup message that says who the AI plays, who you are, the setting and tone, and the rules of play, like the starter prompt above. Then write your first turn. To reuse the setup, put it in a ChatGPT or Claude project’s instructions or a Gemini Gem. Keep a short summary of the story to paste into new chats when a conversation gets long; our guide to chat memory summaries has templates.
How do I roleplay on Janitor AI?
Pick a character, choose or create a persona, and start the chat. The built-in model works without any setup. Janitor AI’s help center notes that its model mirrors your writing, so write your turns at the length and in the style you want back. Its chat memory field keeps important facts available in long chats.
Should I write in first person or third person?
Either works, as long as you stay with one, because the AI follows the pattern of the chat. Match the character’s greeting where you can: if the greeting is in third person, writing your own turns in third person keeps the whole story in one voice. Janitor AI’s help center says third person often helps keep the AI from speaking for you. Our guide to opening scenes covers the choice in more detail.
What does OOC mean in AI roleplay?
OOC means out of character: a note to the AI as the writer rather than a line in the story, usually in parentheses. See what OOC means in AI roleplay.
Lunelle AI is an interactive fiction app for iOS and Android where you can start from a ready-made character or adventure, or describe your own to the creator in a chat. Multi-character scenes are one of its three focus areas: several characters can share a scene and answer in the same reply. See what Lunelle AI is.
Related guides
- How to write a great opening scene for AI roleplay
- How to write an AI character that stays in character
- How to write a persona for AI roleplay (template)
- How to steer an AI story without breaking immersion
- AI roleplay terms explained
- How to play a text adventure with AI (prompt included)
- How to play a choose-your-own-adventure story with AI
- All guides
Sources
- Shanahan, McDonell, and Reynolds, Role play with large language models, Nature 623, November 2023
- Ask and Sihvonen, Roleplay with chatbots on character.ai: A new direction for online gaming?, DiGRA 2025
- Fundal and Bizzoni, Directional Alignment and Narrative Agency in Human–LLM Co-Writing, NLP4DH 2026
- Janitor AI Help Center, Writing Style & Talking to the Bot, August 11, 2026, and What is JLLM?, July 31, 2025
- Character.AI Help Center, Greeting and Voice and Refining and Testing your Character, June 17, 2026
- AI Dungeon Help, How do I play AI Dungeon?
- SillyTavern documentation, Chatting
- OpenAI Help Center, Custom GPT retirement and migration FAQ
- Google, Tips for creating custom Gems
- Kienna Shaw and Lauren Bryant-Monk, TTRPG Safety Toolkit