Context
Every time the agent responds, it assembles three kinds of context in real time and reasons over them together. Getting the right context in front of the model, and only the right context, is what makes the agentic interface fast, accurate, and genuinely useful.
The three contexts
Section titled “The three contexts”| Context | What it is | Where it comes from |
|---|---|---|
| Usage context (real-time) | Who the user is and what they’re doing right now: identity, subscription, and custom attributes, plus the live page they’re looking at. | identify() for the user and subscription; Shared State (Tandem) and Share current tab for the page. |
| Knowledge context | The facts the agent can draw on to answer. | Knowledge Base |
| Action context | What the agent can do: the actions available to run. | Actions |
Assembled in real time
Section titled “Assembled in real time”The agent doesn’t load everything up front. For each turn it selects only the context relevant to the request and assembles it on the fly. That real-time assembly is what maximizes:
- Latency — only the context that matters is sent to the model, so responses come back fast.
- Quality — replies reflect who the user is and what they’re doing on the page right now.
- Accuracy — answers are grounded in your knowledge and act through your actions, instead of guessing.
Wire up each context
Section titled “Wire up each context” Usage context Identify users and subscriptions with attributes, and share live page state (Shared State / Share current tab).
Knowledge context Give the agent the content it answers from.
Action context Define the actions the agent can run in your product.