Lunelle ← Back to home
Guides

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:

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

Our guide to lorebooks covers keeping a world’s details straight over a long story.

Mystery

A mystery needs a solution written down before play and fair clues; see how to play a murder mystery with AI.

Science fiction

Horror

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

Historical and court intrigue

Slice of life

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.

Sources