Skip to main content
Learn how to connect live user data from the Autoplay SDK straight into your Landbot agent. This guide walks through wiring a lightweight backend route that pulls a user’s live activity on demand from the Autoplay connector the moment Landbot needs context to answer β€” no background listener, no local event store to manage.

✨ Final result

Landbot support AI agent showing a context-aware response based on real-time user activity

πŸ“‹ Prerequisites

Complete the Quickstart. You should have:
  • Your activity source set up β€” PostHog (or Amplitude) in the browser, with identify (or setUserId) setting a stable user_id for each logged-in user
  • A registered product β€” your product_id, mcp_url, and mcp_key printed by onboard_product in the Quickstart
  • A Landbot account

The building blocks

Follow the steps in order β€” each page stands alone so you can ship incrementally.
  1. Connect real-time events β€” Set up the Landbot workflow, wire a lightweight backend server, and embed the support AI agent in your frontend app.
  2. Define proactive triggers β€” Proactively message users in Landbot based on what they’re doing in your product. (Coming soon)