Skip to content

Reference

Scenario JSON: blocks, roles, and delegating to an LLM

How a SobirAI scenario works: roles, message/condition/media/pause/exit/loop blocks, and delegating a draft to an LLM.

Updated: 1 min read
Contents

What a scenario contains

A scenario is roles plus a sequence of blocks. A role is a character prompt: biography, manner, attitude to the topic, taboos, and goal. Blocks describe what happens: who speaks, in response to what, after which pause, and when the performance goes quiet.

Six block types

Every performance is assembled from six kinds of blocks.

  • Message: which actor says what, in which character
  • Condition: if X appears in the chat, branch Y fires
  • Media: a photo, file, or card
  • Pause: rhythm between lines so nobody sounds like a robot
  • Exit: silence, branch completion, or handoff to a human
  • Loop: repetition with variations and limits

Delegate the draft to an LLM

The bot delivers the exact format specification in a private chat, kept in sync with the current engine version. Give it to GPT, Claude, or Gemini together with the task and a sample scenario; then edit the returned JSON like a dramaturg: roles must not blur, and every branch needs an exit.

Test before the premiere

Import the scenario, run it in the rehearsal engine, and break it on purpose a couple of times. Check limits, exit branches, and human handoff. A scenario that cannot end will eventually start arguing with the void.

The exact JSON format and validator are available from the bot; that is also where the current LLM specification lives.

Build your first staging

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

Open SobirAIOpens the SobirAI bot