Scenario Branch

Narrative branching learning atom. Presents a real-world situation with 2-4 labelled choices. Each choice reveals a consequence with good/neutral/bad outcome styling (green/amber/red). Includes a "try again" reset on non-linked consequences. Ideal for compliance, leadership, and soft-skills training.

Surfaces
apps-script-webwebmeet-stage
Fields
FieldType
scenariostring (required). The situation or challenge presented to the learner.required
contextstring. Background context shown in italics above the scenario.optional
accentstring. Accent colour for choice buttons. Defaultoptional
choicesarray (required). Array of {label, consequence, outcome, next_url?} objects. outcome is "good", "neutral", or "bad".required
Example payload
{
  "type": "scenario_branch",
  "scenario": "Success path",
  "choices": [
    {
      "label": "Path A",
      "next": "node-a"
    },
    {
      "label": "Path B",
      "next": "node-b"
    }
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:scenario_branch",
  "displayName": "Scenario Branch",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/scenario_branch",
  "capabilities": [
    "apps-script-web",
    "web",
    "meet-stage"
  ],
  "description": "Narrative branching learning atom. Presents a real-world situation with 2-4 labelled choices. Each choice reveals a consequence with good/neutral/bad outcome styling (green/amber/red). Includes a \"try again\" reset on non-linked consequences. Ideal for compliance, leadership, and soft-skills training.",
  "representativeQueries": [
    "show a branching scenario \u2014 situation + choices + consequence reveal with good/neutral/bad outcome",
    "narrative branching learning atom. presents a real-world situation with 2-4 labelled choices. each c",
    "render a scenario branch"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →