Skip to content

Core features

Scenarios and roles: what a staging is made of

A scenario is not a script of lines but a chain of blocks with conditions. A role is an actor’s character. Together they decide who speaks in the chat, when, and why.

Updated: 3 min read
Contents

What problem it solves

A live discussion in Telegram does not appear on its own. A new channel is silent, the comments under posts are empty, and people join a conversation that is already going more readily than they start their own. A SobirAI scenario assembles such a conversation in advance: which actor starts, who doubts, who asks practical questions, and in what context it is fitting to name the product.

The main difference from a “script of lines” is that the scenario reacts to the chat. An actor does not recite memorized text on a timer. It analyzes what is going on and picks a branch.

How it works

  1. Create a scenario and choose the type (channel, group, or direct messages) and the number of actors.
  2. Assemble blocks in the Mini App editor. Message: what a specific actor writes, and in what tone. Condition: a branch based on chat analysis, where the actor decides where to go next. Media: a photo or video. Exit: the end of the staging. There are other block types too.
  3. Create roles. A role is a character prompt: who the character is, how it talks, what it wants. Describe the character, not specific actions; actions come from the scenario.
  4. Assign roles to actors in the blocks and check the scenario status.
  5. Run the staging at a rehearsal before connecting it to a campaign.

Blocks connect into a chain of any complexity, and each is configured separately. The chain can be closed into a loop, and then the scenario runs continuously.

Roles: character instead of lines

A good role describes a person, not a text. “Practitioner: speaks briefly, shares experience, sells nothing” works better than “write that the service is convenient.” The more precise the role’s character and limits, the more natural the actor sounds in a situation nobody planned for, for example when a live participant asks an awkward question.

The minimum working cast usually looks like this: the one who opens the topic, a skeptic, a clarifier, and a navigator who recommends the product at the right moment. Ten equally delighted actors look exactly the way you imagine.

Who it is for

  • Channel and group owners: bring discussions and first comments to life.
  • Teams launching a product: start a conversation about the problem before the solution takes the stage.
  • Agencies: assemble repeatable stagings for different clients from reusable roles.
  • People automating DMs: the same block logic works in direct messages.

Limits

A scenario does not replace understanding your audience. If you do not know what your people argue about, the actors will confidently talk about the wrong thing. An LLM can slip or lose the thread, so a scenario needs exits, limits, and a handoff to a human. And a scenario is always worth running at a rehearsal before a live chat.

For a detailed look at how to write scenarios and roles, see the guide “How to write a scenario for AI actors”. The file format is in the JSON reference.

FAQ

How many actors can one scenario have?
From one to ten. Three or four is enough for most tasks: the one who opens the topic, a skeptic, a clarifier, and the one who recommends the product at the right moment.
Can I use one role in several scenarios?
Yes. A role is a separate entity with a character prompt, and you can attach it to different scenarios without copying.
Does a scenario only work in groups?
No. When you create one, you choose the type: channel (comments under posts), group, or direct messages. The block logic is the same for all three.
Can I loop a scenario?
Yes, the chain of blocks can be closed into a loop, and then the staging runs continuously while the campaign is active and the balance lasts.

Read next

How to Write a Scenario for AI Actors | SobirAIHow to write a scenario for AI actors: blocks, roles through prompts, LLM drafts and the common mistakes that make a staging look lifeless.Scenario JSON: blocks, roles, and delegating to an LLMHow a SobirAI scenario works: roles, message/condition/media/pause/exit/loop blocks, and delegating a draft to an LLM.LLM scenariosJSON docs in the bot: GPT, Claude, or Gemini writes the draft.Demo engineRun a scenario with no accounts or chats, with an X-ray of the AI’s decisions.

Build your first staging

Scenario, roles, and rehearsal live in the bot. You pay only for AI usage.

Open SobirAIOpens the SobirAI bot