Concepts
Steps
A step is an anchor, a title, one sentence, a clip and a completion rule.
Each step teaches one action. Keep it to a single thing the user does.
| Field | Notes |
|---|---|
id | Lowercase, unique in the guide. Used in analytics and with playstep.complete(). |
anchor | The anchor to spotlight. Optional: without one the card shows on its own, at the bottom or in the middle of the screen. |
title | Up to about 40 characters. Verb first: Tap New, Pick a client. |
body | One or two short sentences, up to 280 characters. Say what to do and why. |
clip | Optional. A short clip of the step; see clips. |
complete_on | How the step completes: on a tap, a page, an event, Next or your code; see completion rules. |
skip_if_on | Optional. A path pattern: the step is left out when it would show on a matching page (more). |
placement | auto (default), top, bottom, left or right of the anchor. |
Text in several languages
title and body take one string per locale. The SDK picks the user's locale, then the guide's default locale, then any available text:
{ "title": { "en": "Pick a client", "pt-BR": "Escolha um cliente" } }
Missing anchors
If a step's anchor is not on the screen after 3 seconds, the card shows on its own, without a spotlight, so the user can still follow the clip and text. The SDK reports anchor_missing once, and the dashboard flags the anchor as stale. If the anchor appears later, the spotlight moves to it.
When the user backs out
If a step's anchor was on the screen and your app takes it away before the user uses it (they cancel the dialog it sits in, say), the guide steps back to the nearest earlier step whose anchor is on the screen: usually the button that opens that dialog. Opening it again carries the guide on from there. It never steps back past a page step or a step with no anchor, and if no earlier anchor is on the screen, the step waits as it would for a missing anchor.
A tap on the anchor counts as using it. So when the anchor is a submit button that closes its dialog, the guide keeps waiting for the step's event, even if your app sends it a moment after the dialog has gone. In the web and Flutter SDKs released after 0.5.1.