> ## 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.

# Maven + Autoplay

> Give Maven live activity context and guided tours through the Autoplay MCP server.

Let **Maven** answer with full awareness of what a user just did in your app. Maven **pulls** a user's recent in-app activity on demand — **via the [MCP server](/mcp/server)** — at the moment it's about to answer.

For proactive onboarding, Maven needs one extra piece: **Maven does not send proactive live events to users by itself.** Autoplay watches the live stream in your app, then uses **Autoplay.js + a tour provider** to show the user a guided tour when Maven offers help and the user says yes. This guide uses Appcues as the example tour provider.

<Card title="🔌 Connect Maven to live activity" icon="plug" href="/recipes/maven/step-1-connect-real-time-events">
  Add the Autoplay MCP server to your Maven agent and embed the Maven chat widget with verified identity, so Maven pulls a user's live activity on demand.
</Card>

<Card title="✨ Add proactive onboarding" icon="wand-magic-sparkles" href="/recipes/maven/step-2-define-proactive-triggers">
  Add the proactive Maven prompt, install Autoplay.js, and connect a tour provider such as Appcues so Maven can offer and launch the next guided step.
</Card>

## ✨ What it looks like

<Tabs sync={false}>
  <Tab title="Without real-time context">
    ```text theme={null}
    User: How do I schedule a post?

    Maven: To schedule a post, open the calendar and pick a date and time.

    (Could be on any page. No idea where they are.)
    ```
  </Tab>

  <Tab title="With real-time context">
    ```text theme={null}
    User: How do I schedule a post?

    Maven: You just uploaded a media item and you're on the calendar now —
    drag that item onto a date, then set the time in the post editor that opens.

    (Maven pulled the user's recent activity — its answer matches what they're doing.)
    ```
  </Tab>
</Tabs>

## 📋 Prerequisites

Complete the [Quickstart](/quickstart) so activity is flowing into the connector:

* **Your activity source set up** — PostHog (or Amplitude) capturing events, with `identify` setting a stable `user_id`.
* **A registered product** — your `product_id` and **Unkey token**.
* **A Maven agent** — created in Maven AGI (Agent Designer).
* **A user tour provider** — Appcues is the example in this guide, but the same pattern can work with other tour providers that Autoplay.js can trigger.

Then connect Maven to the MCP server using the recipe above.
