π Autoplay in one breath
Autoplay streams what users are doing in your product into your agents as clean, LLM-ready context β so copilots can help before someone asks, and stay quiet when they shouldnβt interrupt. We run the connector pipeline (extract, normalise, optional summarise); you wire callbacks and RAG.β‘ What Autoplay handles for you
- Real-time events at scale β browser activity becomes normalised, typed payloads your model can read
- Context tooling β buffers, summarisers, and models so volume does not blow your context window
- Golden paths β record ideal journeys with the Autoplay Chrome extension or dashboard
- Workflow completion β per-user mastery, in-progress, and gaps across sessions so suggestions stay relevant
π How it fits in a RAG system
autoplay-sdk consumes your connector over SSE (or push webhook) and hands you typed Python objects; you embed, upsert, and retrieve like any other RAG source.
π¦ Two event types
actions
A batch of UI interactions extracted from a user session β page views, clicks, inputs.
Best for granular, per-session embeddings.
summary
An LLM-generated prose summary of a session, replacing the raw action list.
Best for compact context windows in RAG pipelines.
π·οΈ Typed models
All callbacks receive typed dataclass instances β no raw dict parsing in your code.| Class | Event type | .to_text() output |
|---|---|---|
ActionsPayload | actions | Numbered list of actions, embedding-ready |
SummaryPayload | summary | Prose summary string directly |
SlimAction | β | "{description} β {canonical_url}" |
π Two clients
| Client | Use when |
|---|---|
ConnectorClient | Your pipeline is synchronous (no async/await) |
AsyncConnectorClient | Your pipeline uses asyncio β LangChain, LlamaIndex, FastAPI |
π‘ Two delivery modes
| Mode | How it works | SDK class |
|---|---|---|
| SSE | Your service connects to the connector stream | AsyncConnectorClient / ConnectorClient |
| Push webhook | Connector POSTs to your endpoint | WebhookReceiver |
ActionsPayload / SummaryPayload objects.
ποΈ Two buffer options
| Buffer | Storage | Use when |
|---|---|---|
EventBuffer | In-memory | Development, single process |
RedisEventBuffer | Redis ZSET (sliding window) | Production, multiple pods |