Add a step
add_stepAdds a step to a guided demo: a tooltip ("tip", pointing at spot on a screen), a chapter card, a call to action ("cta", a button link), a lead form ("form"), an intro or an outro. Placed after after (a step id; "start" for first), else at the end (before a final outro). Unset fields get the editor’s defaults; tooltips use the screen of the step they follow unless you pass screenId. fields sets anything else on the step.
Requires: demos:read, demos:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cta | No | Button label (cards and forms). | |
| body | No | ||
| kind | Yes | ||
| spot | No | Tip: what the tooltip points at (percent of the screenshot; get_screen gives element rects). | |
| after | No | Insert after this step id, or "start". | |
| place | No | ||
| title | No | ||
| ctaUrl | No | Button link (https://, mailto: or tel:), cards only. | |
| demoId | Yes | Demo id (from list_demos), e.g. "d_Ab12Cd34Ef56Gh78". | |
| fields | No | Any other step fields. | |
| screenId | No | Screen it shows (required for a tip unless a step before it has one). |