⚡ Add this skill
One command
Agent onboarding
Fetch this skill when a customer already uses Crisp Hugo and wants its AI support agent to consume Autoplay live user activity.View the skill →
get_live_user_activity), and a verified identity so Hugo asks for the right user.
🎬 End-to-end walkthrough
🔌 Add the Autoplay MCP server
In your Crisp dashboard, go to AI Agent (left sidebar) → Integrations & MCP (under Automate). Scroll to the External MCP servers section and click Add MCP server. In the modal that appears:- MCP Server URL:
https://mcp.autoplay.ai/mcp - Click Authentication to expand it → set Authentication Method to Bearer Token → enter your
mcp_keyin the Bearer Token field.
⚙️ Configure the server — click Manage
Click Manage on the server. The Manage page has two places where you write descriptions — one at the server level and one at the tool level. Both matter.1 — Server Description (Connection details)
In the Connection details section, fill in:- Name:
App live activity - Description: This is the top-level prompt — Hugo reads it to decide when this MCP server is relevant at all. Keep it short and focused on the scenario:
2 — Tool Description (MCP tools selector)
Scroll down to MCP tools selector and checkget_live_user_activity to enable it. The tool card shows a description field — this is the detailed prompt that tells Hugo exactly when and how to call this specific tool (equivalent to the Fin tab prompt in Intercom).
Click the edit icon (✏️) on the get_live_user_activity card and set the description to:
🎛️ Configure the parameters
Under Parameters on the tool card, each input has two options: Let Hugo decide or Use an attribute. product_id → set to Let Hugo decide Hugo reads your product id from the description above (theThe product_id is always: ... line) and passes automatically.
user_id → set to Use an attribute → select the attribute that holds your app’s stable user id
The dropdown shows contact attributes available in the conversation (e.g. User email). Choose the one that matches the id your activity source identifies the user with. See Identity below for how to make the right attribute available.
limit → leave as Let Hugo decide.
🔐 Identity — make the user id available as an attribute
Hugo can only pass the rightuser_id if the Crisp session carries it. Set it from your frontend via the Crisp JS SDK after the user logs in, using session:data:
session:data with a user_id key, that key appears in Hugo’s Use an attribute dropdown. Select it for the user_id parameter.
The value you push must exactly equal the id your activity source uses:
- PostHog
- Amplitude
- Other activity source
How the pieces fit: your frontend identifies the user in your activity source (PostHog or Amplitude) → Autoplay stores activity under that id → your frontend also pushes
session:data with that same id → Hugo reads the attribute and fetches activity for it → the buckets match.✅ Test the full loop
- Log in to your app as a test user — fires your activity source’s identify call and sets
session:datawithuser_id. - Click around — visit a couple of pages, click a button, submit a form.
- Open the Crisp chat widget as that same logged-in user.
- Ask Hugo: “What have I been doing in the app recently?”
- Hugo calls
get_live_user_activityand answers with what you actually just did.
- 401 / auth error → the Bearer token is missing or incorrect, revisit Add the Autoplay MCP server above.
- Empty activity returned → identity is working but that user has no recent activity yet. Browse around in your app first, then re-test.
- Wrong user’s activity → the
user_idinsession:datadoesn’t match the id your activity source uses. Check both are identical.
“No recent activity” = identity mismatch. Confirm the same value in all three:
- the stable id your activity source identifies the user with (PostHog:
posthog.identify(id), Amplitude:amplitude.setUserId(id)), - the
user_idkey in$crisp.push(["set", "session:data", ...]), - the attribute selected for the
user_idparameter in Hugo’s tool config.
Next: Step 2 — Define proactive triggers