Documentation Index
Fetch the complete documentation index at: https://developers.autoplay.ai/llms.txt
Use this file to discover all available pages before exploring further.
Autoplay streams structured UI actions from your users’ browser sessions in real time. This tutorial wires that stream to UserGuiding so that when the right moment arrives — a user stuck on a page, a first-time feature visit, a repeated error — your backend detects it and fires the correct UserGuiding flow immediately.
This tutorial builds on How to trigger a User Tour. Complete that guide first — it covers the proxy route, EventSource connection, and payload structure. This page covers only what is specific to UserGuiding.
1. Install UserGuiding
Add the snippet to your app and initialize it with your Container ID from Settings → Installation.2. Identify the user
Call this once the user is authenticated. Use the sameuserId you send to PostHog so Autoplay can match sessions correctly.
3. Create a flow in UserGuiding
- In the UserGuiding dashboard go to Guides → Create Guide and build your tour.
- Set any targeting rules you need (page URL, user segment, etc.).
- Publish the guide.
- Note the Guide ID shown in the URL bar (
/guides/<guide_id>/edit).
4. Trigger the flow
In youronmessage handler from Step 4 of the base guide, add the UserGuiding trigger call:
flow_id in the payload maps to the Guide ID of your UserGuiding guide, visible in the URL when editing the guide in the UserGuiding dashboard.










