Set a step’s choices (branching)
set_choicesTurns a tooltip or card of a guided demo into a fork: 2–4 buttons ("I'm in finance" → step X, "Book a call" → a link, "Skip" → end). A card shows them instead of its single button; a tooltip shows them as buttons (clicking its spot still follows the default path). Each choice goes to a step id, the end of the demo, or a URL; leave goTo out to link it later (viewers then continue on the default path). Pass an empty list to remove the choices. To make a path skip ahead or rejoin, set "next" on its last step with update_step, e.g. { "next": { "type": "step", "stepId": "st_…" } } or { "next": { "type": "end" } }. The result lists the paths and anything to fix (unreachable steps, paths that never end).
Requires: demos:read, demos:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| demoId | Yes | Demo id (from list_demos), e.g. "d_Ab12Cd34Ef56Gh78". | |
| stepId | Yes | The tooltip or card that asks the question. | |
| choices | Yes |