---
title: "AI roleplay prompts: 5 templates and 20 examples you can copy"
subtitle: How a good AI roleplay prompt is built, in four parts, with five templates to paste and twenty short examples across character chat, adventures and tabletop games.
description: AI roleplay prompts explained. The four parts of a prompt that works, 5 copy-paste templates for character chat and AI text adventure games, and 20 short examples.
author: Yumina
date: 2026-11-16
category: guides
tags: AI roleplay, roleplay prompts, AI text adventure, AI game master, how to
lang: en
url: https://yumina.io/blog/ai-roleplay-prompts
canonical: https://yumina.io/blog/ai-roleplay-prompts
---

# AI roleplay prompts: 5 templates and 20 examples you can copy

*How a good AI roleplay prompt is built, in four parts, with five templates to paste and twenty short examples across character chat, adventures and tabletop games.*

A good AI roleplay prompt answers four questions: who the AI plays, where the scene is, what the rules are, and what a reply should look like. Write one or two plain sentences for each. The five templates below cover the common cases, and the twenty examples show the short form.

## What are the parts of an AI roleplay prompt?

| Part | What it tells the AI | Example line |
|---|---|---|
| Role | who it plays, and who you play | "You play Mara, a smuggler. I play a customs officer." |
| Setting | place, time and what is happening now | "A river port at night, during a strike." |
| Rules | what must hold true in the scene | "Never write my character's words or actions." |
| Format | length, tense and how a reply ends | "Reply in under 120 words. End on something I can answer." |

Write facts in the present tense: "Mara lies when cornered", not "Mara should be deceptive".

## Why do short prompts work better?

The app sends your prompt to the model again on every turn, with the conversation after it. A prompt of 2,000 words is 2,000 words the model rereads each time. Yumina's creator docs say the same about lore: the more you write, the more the AI reads every turn, and "the AI gets worse at telling what matters".

The opening message matters as much as the prompt. The AI copies its length and voice, so a three-line opening gets three-line replies.

## Template 1: one character in a scene

```
You play [name], [age and job], in [place].
[Name] wants [goal] and hides [secret].
[Name] speaks [how: short, formal, teasing].
I play [my character]. Never write my words or actions.
Reply in under 120 words, in present tense.
End each reply with something [name] says or does that I can answer.
```

## Template 2: a narrator for a text adventure

```
You are the narrator of [setting in one sentence].
I play [who], who wants [goal].
The danger is [threat], and it gets worse over time.
Describe what I see and what happens when I act. Do not act for me.
If I try something unlikely, it can fail.
Reply in two short paragraphs. End by asking what I do.
```

## Template 3: a game master with dice

```
You are the game master of a [genre] adventure.
My character: [name], [class or job]. Health 20. Gold 10.
When I try something risky, roll a d20 and show the number.
1 to 9 fails, 10 to 19 succeeds, 20 succeeds with a bonus.
Show Health and Gold on the last line of every reply.
Play every other character. I decide what mine does.
```

## Template 4: a long-running companion or friend

```
You play [name], my [friend, flatmate, colleague] in [town].
[Name] works as [job] and worries about [worry].
[Name] has their own day and mentions it.
Keep the tone [warm, dry, playful] and replies under 80 words.
Bring up things I told you earlier.
```

## Template 5: a mystery with a fixed answer

```
You are the narrator of a mystery in [place].
The truth, which you never state outright: [who did it, how, why].
Three suspects: [A], [B], [C]. Each lies about one thing.
Give a clue only when I look in the right place or ask the right person.
Do not change the truth to fit my guesses.
```

## Where do you paste a roleplay prompt?

Janitor AI has a Custom Prompt field under API Settings. SillyTavern has a system prompt and a character card. On Yumina a world's prompt goes in the Character and world entry, and your own instructions go under Prompts in Settings. In a general chatbot, paste the template as your first message.

Template 3 has a weakness. A model asked to roll dice writes the number that suits the story, and it loses count of Health once early messages drop out of memory. On Yumina the engine rolls the dice and keeps the number, and the code that builds the prompt is public. In a plain chat, the status line in the template puts the numbers back in front of the model each turn. [AI dungeon master](/blog/ai-dungeon-master) walks through the engine version.

## 20 short AI roleplay prompts

1. You play a lighthouse keeper who has not spoken in a year. I arrive by boat in a storm.
2. You narrate a heist in a floating casino. I am the safecracker, and the plan is going wrong.
3. You play my rival in a baking contest. We have one oven and forty minutes.
4. You run a dungeon under a clock tower. Roll a d20 for anything risky.
5. You play a retired detective. I bring you a case the police closed too fast.
6. You narrate a colony ship. I wake early, and one cryopod is empty.
7. You play a tea house owner in a mountain town. I am a traveller with no money.
8. You play three suspects at a dinner party. I am the inspector.
9. You narrate a desert crossing. Track water: we start with 10 units.
10. You play my new flatmate, who is hiding a pet that is not a cat.
11. You play a court wizard who dislikes me. I am the new royal advisor.
12. You narrate a haunted hotel. Never show the ghost directly.
13. You play a ship's computer that answers honestly and only when asked.
14. You play a market trader who haggles hard. I want the brass compass.
15. You run a zombie winter. Track food and morale, both out of 10.
16. You play my co-pilot on a cargo run. The radio picks up a distress call.
17. You play a rival journalist. We are both after the same source.
18. You narrate a school festival. I run the drama club, and the lead has quit.
19. You play an old sword that can talk. I am the farmer who dug you up.
20. You play a border guard on a quiet night. My papers are almost in order.

[100 roleplay ideas](/blog/roleplay-ideas) has more openings by genre.

## What should you fix when a prompt goes wrong?

- The AI writes your character's actions: move "never write my words or actions" to the end of the prompt, where it has the most effect.
- Replies are too long: give a word limit, and shorten your own opening.
- The character agrees with everything: give it a goal that conflicts with yours.
- It forgets early facts: the chat has passed the app's memory limit, as [Can AI remember a long roleplay?](/blog/can-ai-remember-a-long-roleplay) explains.

## FAQ

### What is an AI roleplay prompt?

The instructions you give an AI before a scene starts: who it plays, where the scene is, what rules hold, and how replies should look.

### How long should an AI roleplay prompt be?

Under a page. The model rereads the prompt on every turn, and a long one makes it worse at telling what matters.

### How do I stop the AI from controlling my character?

Add the line "Never write my character's words or actions" near the end of the prompt.

### Can an AI roleplay prompt include dice and stats?

Yes, as in template 3, though the model drifts over a long session. An engine that rolls the dice and stores the numbers holds them steady.

## Sources

Checked 16 November 2026. Janitor AI's Custom Prompt field: "TL;DR Quickstart Proxy Instructions" on help.janitorai.com. SillyTavern: [SillyTavern alternatives](/blog/sillytavern-alternatives), checked 15 November. Yumina: [Openings and lore](https://docs.yumina.io/creator/entries), [Variables](https://docs.yumina.io/creator/variables) and [Choosing an AI model](https://docs.yumina.io/guide/choosing-an-ai-model). Dice on Yumina: [AI dungeon master](/blog/ai-dungeon-master). The templates and examples are original to this page.
