How to write a scenario for an AI bot (with templates)
Updated
A scenario is a short note about the situation a story starts in: where and when it takes place, who your character is to the bot, and what is happening right now. Apps send it to the AI with every reply, alongside the character’s definition. Write it in a few plain sentences in the present tense, and describe circumstances the characters can act on. Leave out a planned order of events, because the AI tends to push the story toward it whatever you do. Keep who the character is in the definition and the first scene in the greeting, so the scenario holds only the setup for this story.
Janitor AI, SillyTavern, and Chub have a Scenario field, which comes from the character card format those apps share. Character.AI has no scenario field, so the situation goes into the Definition and the greeting. AI Dungeon and NovelAI use the word for something bigger: a whole story setup that players start an adventure from. This guide gives templates for the field, explains what the AI does with it, and covers each app’s version, as of December 2026. It follows our guides to writing a character definition and writing example dialogue.
A scenario template you can copy
The template starts with the place, then what is happening, who you are, who else is involved, and what goes wrong if nobody acts. Replace each bracket with a sentence or two, and drop any part the story doesn’t need.
Setting: [place and time, and one fact about this world that matters to the story].
Right now: [what is happening as the story starts, in the present tense].
{{user}}: [who the user's character is in this story, and how {{char}} knows them, or that they have just met].
Others: [one or two other people in the scene, each with something they want].
Pressure: [what goes wrong if nobody acts, and when].
Background: [one or two earlier events that still matter, written in the past tense].
Here is the template filled in for Teodor, the ferryman from our character definition guide. His definition already says who he is, what he wants, and what he hides. The scenario sets up the night the story starts:
Setting: Hollow Crossing, a ferry landing on the river between Ardin and Vell, two towns at war. Early spring, the last week before the flood closes the river.
Right now: it's after dark and raining. The ferry is the only way across. A patrol from Ardin is searching every boat for a deserter, and fares have tripled.
{{user}}: a stranger who reached the landing an hour ago and has to cross tonight. {{char}} has never met {{user}}.
Others: Sergeant Vos leads the patrol. She wants to catch a deserter before her captain arrives, because the last two searches found nothing.
Pressure: the patrol will search the boathouse at dawn.
Background: last autumn, Ardin burned Vell's grain barges at this landing. Nobody on the river has forgotten it.
Each line gives the AI something to act on. The night, the rain, and the patrol give Teodor reasons to be careful before you’ve said a word. Sergeant Vos has a goal and a reason to be impatient, so the AI has a reason to bring her into the scene. The pressure line sets a deadline that connects to Teodor’s secret in his definition without repeating it. The background line is marked as the past, so the AI treats the burning as history. The whole scenario comes to about 170 tokens.
If you used our definition template, its “Right now” and {{user}} lines belong here in apps that have a Scenario
field. Keep a short version of the {{user}} line in the definition only if the character should treat you the same
way in any story.
For a narrator or game master bot
Some bots play a world instead of one character: a narrator, a game master, or a text adventure. Janitor AI tags these as Scenario bots. Here the scenario carries more of the load, because no single character’s goals push the story forward. Add the groups that want something and a clock:
Setting: the Salt Road, eleven days across a dry basin between the port of Amal and the mountain town of Kesh. A caravan of nine wagons.
Right now: day three. The caravan master died in the night, and the drivers are arguing about who leads.
{{user}}: the caravan's scout, the only one who has crossed the basin before.
Groups: the Salt Guild wants this caravan to arrive late, so its own wagons sell first. Border riders take a toll from every wagon and search any that refuse.
Clock: water for six days. The next well is at Red Cistern, four days ahead, and nobody knows whether it's dry.
The narrator’s own rules, such as playing every character except yours and describing the world in the second person, go in the definition or the system prompt. The scenario describes the world they narrate.
What the scenario field does
Before each reply, the app builds a block of text for the model from the character’s definition, your persona, any memory or notes, and as many recent messages as fit. The scenario is one of the parts sent every time, however long the chat gets. That is what makes it different from the greeting, which is sent once.
The apps describe the field in almost the same words. The shared character card format defines it as “the current context and circumstances to the conversation” and says it should be “included by default in every prompt.” SillyTavern calls it “the circumstances and context of the dialogue” and lists the Scenario box among the fields that “will always be sent to the AI with every generation request.” Janitor AI’s help center says the field holds “the setting your bot takes place in, the time period, or a very short description of the character’s relationship to the user’s persona,” and counts it among the permanent tokens that “show up every single time the AI processes a message.”
For you, this means the scenario is the one place where the situation stays in front of the model for the whole chat. The greeting sets the first scene, but it’s an ordinary message: SillyTavern notes that the first message is “only sent once at the start of the chat,” and in a long chat it scrolls out of the context like any other message. A fact the story needs at message 200, such as the war between the two towns, belongs in the scenario or the definition.
Scenario, personality, and greeting: what goes where
It’s tempting to repeat the same facts in every field. Janitor AI’s token guide advises against it: “Don’t copy-paste the same info into multiple fields.” Each field has its own job:
| Field | What it holds | When the AI sees it |
|---|---|---|
| Personality or description | Who the character is: behavior, wants, secrets, voice | Every reply |
| Scenario | This story’s situation: place, time, who you are, what is happening, what’s at stake | Every reply |
| Greeting or first message | The first scene, written in the character’s voice | As the first message, until newer messages push it out |
| Lorebook | Places, groups, and side characters that matter now and then | When a keyword comes up |
One way to sort a line is to imagine the character in a different story. If the line would still be true there, such as Teodor’s habit of writing every name in a ledger, it goes in the personality. If it describes this story’s start, such as the patrol at the landing, it goes in the scenario. For more on lorebooks, see what a lorebook is and how to write one.
Write a situation the characters can act on
A common mistake is to write the scenario as a plot: what will happen, in what order, and how it ends. For example:
{{user}} arrives at the landing and asks to cross. Teodor refuses at first, but agrees after {{user}} helps him hide his nephew. Halfway across, the patrol fires on the ferry, Teodor is wounded, and {{user}} has to steer the boat to Vell.
Tabletop game masters have argued against this kind of preparation for years. Justin Alexander, who writes The Alexandrian blog for game masters, put it this way in 2009: “Don’t prep plots, prep situations.” A plot is a sequence of events, he explains, while “a situation, on the other hand, is merely a set of circumstances. The events that happen as a result of that situation will depend on the actions the PCs take.” He calls a planned sequence “a chain of potential points of failure”: every step assumes the players will do one particular thing.
With an AI the problem gets worse, because the model reads the scenario before every reply. AI Dungeon’s help center warns about the same effect in its Plot Essentials field, which is also sent with every reply: information there “will prime the AI to bring up those details again, so only mention things you want the AI to potentially bring up in future outputs.” A scenario that says the patrol will fire on the ferry invites the AI to make it happen, possibly in the second message. When your choices contradict the plan, the AI either drops the plan or steers you back toward it, and both feel wrong in play.
The Teodor scenario in the template describes the same story as a situation. Nothing in it says what you’ll do. It gives the characters goals and a deadline, and the events come from how you play. Alexander’s advice for the other characters is a single question: “What is the bad guy trying to do?” Write that down for each person who matters, and the AI has a reason to move them.
What to put in a scenario
Each part of the template answers one question the AI would otherwise have to guess.
Place and time
Name the place, the period, and one fact about the world that shapes this story: a war, a flood, a curfew. One or two sentences is enough. A full description of the world takes space the chat could use, and Character.AI’s guide for greetings gives advice that fits here too: “Suggest the world. Don’t explain it.”
What is happening right now
Write the moment the story opens, in the present tense, with something already in motion. Michael Shea, who writes the Sly Flourish blog for game masters, says that for a session’s opening scene “the amount of preparation you need to do for your starting scene isn’t much more than writing down a sentence.” A scenario’s “Right now” line is that sentence. A situation where nothing is happening leaves the character waiting for you to supply every event.
Who you are in the story
Say who {{user}} is in this story and how the character knows them. Character.AI’s guide puts it plainly: “The user
needs to know who they are in this conversation.” The AI needs to know too, so it can decide how the character treats
you in the first scene.
Describe your role and leave your reactions out. A line such as {{user}} is nervous and agrees to help decides
something for you, and the AI learns from it that it may decide more. Character.AI’s guide for Scenes gives the same
advice for the characters a scene is written for: describe “the situation and observable actions” and avoid prescribing
motivations, emotions, or inner states. If the AI keeps writing your character’s actions, see
how to stop an AI character from speaking for you.
Other people, and what they want
Name one or two people besides the main character, each with a goal. Sergeant Vos wants a deserter before her captain arrives, so the AI can send her to the landing on its own. Three or more side characters with full descriptions are usually better as lorebook entries, which the app sends only when their names come up.
A pressure or deadline
Give the situation something that gets worse if nobody acts. Blades in the Dark, a tabletop game by John Harper, uses progress clocks for this, drawn “when you need to track ongoing effort against an obstacle or the approach of impending trouble.” In a scenario, a clock is one line with a time in it: the search at dawn, six days of water. It gives every scene a reason to move.
Earlier events
Keep only the past events that still drive the present, and mark them as the past. AI Dungeon’s help center advises writing past events “explicitly in past tense and labeled as the past. Otherwise, the AI may try to bring them back in the present.” Give the event a time and use the past tense: “Last autumn, Ardin burned the barges.”
Secrets
Anything in the scenario is visible to the model, including twists you meant to save. A secret works best in the definition of the character who keeps it, along with how they hide it, as with Teodor’s nephew. Even then the AI may reveal it early. For a story built around hidden facts, see how to play a murder mystery with AI, which covers ways to fix a solution in place before play.
How long a scenario should be
None of the apps we checked sets a separate length limit for the scenario, but it shares a budget with everything else sent on every reply. Janitor AI recommends keeping the personality, scenario, chat memory, and your persona together “under 2500 permanent tokens,” and its token guide says most bots work best under 1,500. Every token of scenario leaves one fewer for the recent messages, which is how the character remembers the chat so far. Our guide to AI roleplay settings explains tokens and context.
Most scenarios need two to six sentences. Teodor’s comes to about 170 tokens and his definition to about 400, so the two together use less than half of Janitor AI’s 1,500-token guideline. If your scenario runs to several paragraphs of places and history, move that material into a lorebook and keep the situation in the scenario.
Keep the scenario up to date
A scenario describes the start of the story, and the model keeps reading it long after the start is over. After a time skip or a big turn, the “Right now” line goes stale. The AI still sees “it’s after dark and raining” and “the patrol will search the boathouse at dawn” on every reply, three days after the patrol has left, and the character may keep acting as if it’s the first night.
When the situation changes, rewrite the scenario if you can edit it for this chat: update the “Right now” and pressure lines, and keep a copy of the original so the bot still works for a new story. If you can’t edit it, write the new situation where the AI will see it on every reply, such as chat memory or an author’s note. Our guide to writing a chat memory summary has templates for this, and how to steer an AI story covers time skips.
Mistakes that make a scenario backfire
- Writing a plot. The AI tries to reach the planned events, early or at the wrong moment. Write goals and a deadline.
- Deciding your character’s feelings or actions. Say who you are, and leave what you do to your turns.
- Repeating the personality. The same facts in two fields cost tokens twice and can drift apart when you edit one.
- Leaving past events unlabeled. The AI may replay them as if they’re happening now.
- Describing what isn’t there. AI Dungeon’s help center notes that the AI tends to ignore negatives. Write what is there, such as “the guards left last week.”
- Contradicting the greeting. If the scenario says night and rain and the greeting opens at a sunny noon, the AI gets two versions of the story. Our guide to writing an opening scene covers greetings.
- Writing a world guide. Long lore in the scenario crowds out the chat. Put it in a lorebook.
Scenarios in each app
Janitor AI
The Scenario box is optional and sits below Personality on the character creation page. Use it for the setting, the time, and the character’s relationship to your persona, as the help center suggests, and keep the character’s own traits in Personality. The scenario counts toward permanent tokens, along with the personality, chat memory, and the user’s persona.
SillyTavern
Scenario is one of the Advanced Definitions in the character editor, which are hidden until you open them. It is sent
with every request. If you use a text completion API with a custom context template, check that the story string still
contains {{scenario}}: the documentation warns that any field missing from the template “will not be sent in the
prompt at all.” In group chats, the Group Chat Scenario Override replaces every member’s scenario with one shared text,
which is the easiest way to update the situation for a whole cast.
Chub
Scenario is an optional field in the Character Definition section, described as “the current circumstances and context of conversation and character.” Chub reads the same character card format as SillyTavern, so a scenario written for one works in the other. During a chat, Character Settings lets you edit the definitions of any character, yours or someone else’s, and “such changes only apply to your specific chats and nowhere else.” That makes it the place to update the scenario after a time skip.
Character.AI
Character.AI has no scenario field. Put a short version of the situation near the top of the Definition, since its guide says “the AI reads top to bottom,” and show the situation in the greeting. The greeting guide asks for the same things a scenario gives: “Drop users into a moment, not a summary,” and “Anchor the relationship.” You can add up to five more greetings, which users browse “for the scenario, mood, or starting point” they want. If your greetings open in different situations, keep the Definition’s situation general so it doesn’t contradict them.
Character.AI also has Scenes, which all users could create from October 2025: short story setups with a setting, a backstory, and a player goal, written either for any character or for one main character. For a scene that any character can play, the guide asks you to describe “the situation and observable actions” and leave the character’s personality to whoever plays it.
AI Dungeon
In AI Dungeon a scenario is a whole story setup. Its help center calls scenarios “templates players can use to start a
new Adventure from.” A scenario holds an opening prompt, Plot Essentials and other plot components that are always
sent, Story Cards that are sent when a keyword comes up, and placeholders such as ${character.name} that ask the
player for details before the story starts. For the opening prompt, the help center advises: “Start broad, go specific,
end with the now.” The scenario’s Description is only for players: “the AI does not see the Description.”
NovelAI
NovelAI’s glossary defines a scenario as “the .scenario file that contains the initial prompt to start a story along with all information inside Memory, Author’s Note and the Lorebook.” The situation can go in Memory, which NovelAI places at the top of the context by default, and in the opening prompt.
ChatGPT, Claude, and Gemini
Put the scenario under its own heading in a project’s instructions in ChatGPT or Claude, or in a Gem in Gemini, below
the character or narrator instructions. Replace {{user}} and {{char}} with the real names. When the situation
changes, edit the “Right now” part or start a new chat with an updated version.
Common questions
What is a scenario in Janitor AI?
It’s an optional field on the character creation page for the setting, the time period, and the character’s relationship to your persona. Janitor AI sends it to the AI with every message as part of the bot’s permanent tokens, so the situation stays in view for the whole chat.
What’s the difference between the scenario and the personality?
The personality describes who the character is, which stays true in any story: behavior, goals, voice, secrets. The scenario describes the situation this story starts in: where, when, who you are, and what is happening. If a line would still be true with the character in a different story, it belongs in the personality.
Do I need a scenario?
No. Janitor AI, SillyTavern, and Chub all treat it as optional. Without one, the greeting carries the situation alone, and once it scrolls out of the context the AI has only the definition to go on. A short scenario helps in any story that runs long, and a character who could meet you anywhere can do without one.
How long should a scenario be?
Two to six sentences is enough for most bots, around 100 to 200 tokens. Keep the scenario and definition together under about 1,500 tokens, the figure Janitor AI’s help center gives for well-made bots.
Can I change the scenario in the middle of a chat?
If the app lets you edit it, yes, and it’s worth doing after a time skip or a big change. In SillyTavern you can edit the scenario in the character editor, which changes it for every chat with that character, or set a group chat scenario override for one group. Chub’s Character Settings change it for your own chats only. Where you can’t edit it, write the new situation into chat memory or an author’s note.
What is a scenario bot?
A bot that runs a situation or a world instead of playing one character, such as a narrator, a game master, or a text adventure. Janitor AI uses a Scenario tag for these. Their scenario usually needs the groups involved and a clock, as in the Salt Road template above.
How do I create a scenario in AI Dungeon?
Start a new scenario from the Play button on desktop or the + button on mobile, write an opening prompt, and add Plot Essentials, Story Cards, and any placeholders. Players who press Play start an adventure with all of it copied over. AI Dungeon’s help page “What are Scenarios?” walks through each field.
In Lunelle AI you build adventures by describing them to the creator in a chat, and long-term memory keeps track of events and choices as the story moves past its opening situation. See long-term memory for long adventures.
Related guides
- How to write a character definition for an AI bot (template)
- How to write example dialogue for an AI character
- How to write a persona for AI roleplay (template)
- How to write a great opening scene for AI roleplay
- What is a lorebook in AI roleplay? How to write one
- How to write a chat memory summary (with templates)
- All guides
Sources
- Janitor AI Help Center, The Basics: The Character Creation Page Overview and Tokens: Your AI’s Memory Budget, November 8, 2026; FAQ: Tags, June 18, 2026
- SillyTavern documentation, Character Design, Context Template, and Group Chats
- Chub documentation, Character Creation and Just Chatting
- Character Card V1 specification and V2 specification, 2023
- Character.AI Help Center, Greeting and Voice, June 17, 2026; Character Definition, June 22, 2026; Scene Creation Quickstart Guide, October 17, 2025
- Character.AI blog, Introducing Scenes, October 16, 2025
- AI Dungeon Help, What are Scenarios?, What is the Initial Prompt of an Adventure?, and What is Plot Essentials?
- NovelAI documentation, Glossary and Story Settings
- Justin Alexander, Don’t Prep Plots, The Alexandrian, March 23, 2009
- Michael E. Shea, Starting Strong, Sly Flourish, July 6, 2015
- John Harper, Progress Clocks, Blades in the Dark SRD
- Token counts in this guide use OpenAI’s o200k_base tokenizer (tiktoken), December 3, 2026