Skip to main content

For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/signals/agentic-contexts.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/signals/llms.txt.

Define agentic contexts in Signals

An agentic context is a live, rolling record of a user's recent activity that you can hand to an agent to ground it in what the user is doing right now. You choose which events to capture and which of their details to keep, attach a written prompt for the agent, and read the result as JSON or as a plain-language narrative.

An agentic context tracks a single user's activity within their current session, scoped to the domain_sessionid attribute key. Following a user across sessions is on the roadmap, but not available yet. For context across sessions, or about a logged-in user, use an attribute group keyed on user_id or domain_userid.

Before you begin​

Events must reach Signals: see Send events to Signals. You define agentic contexts in Console or with the Python SDK, then retrieve them with the Python SDK, the Node.js SDK, or the Signals MCP server.

Define an agentic context​

There are two methods for defining agentic contexts in Signals:

  • Snowplow Console UI
  • Signals Python SDK

To create an agentic context using the UI, go to Signals > Agentic contexts in Snowplow Console and follow the instructions.

The first step is to specify:

  • A unique name
  • An optional description
  • Optional prompt instructions
  • The email address of the primary owner or maintainer

Create agentic context form with name, description, and owner fields

Select events​

Choose which events to capture in the agentic context, and which details to keep from each one. This lets you shape the context around a purpose, so your system or an agent reads only what's relevant to its job. You can select up to 20 events, and for each event project up to 50 properties. Properties can come from the atomic event, the event schema, or entities attached to the event.

Event selection interface for choosing which events and properties to capture

Limits​

An agentic context is a rolling window of recent activity, not a full history. It keeps the most recent events, up to the limits you set:

  • A maximum number of events (up to 100)
  • A maximum age (up to 1 hour)

Older activity rolls off once either limit is reached.

Prompt​

Each agentic context carries a free-text prompt: instructions handed to the agent alongside the captured activity. Use it to tell the agent what job it's doing and what to do with this specific data, for example its role, what it should conclude from the activity, or what action to take next. The prompt has no effect on which events are captured. It only shapes how the agent interprets and acts on them. Edit this text and re-publish to refine that interpretation without changing the underlying data or how the agentic context is consumed.

Publish an agentic context​

Every change you make starts as a draft. Your currently published agentic context stays live while you edit, with no danger of half-finished changes going live. Publishing takes effect within a few seconds. If you change your mind, discard the draft and the live version is unaffected.

No versions to manage

Unlike other Signals resources, agentic contexts aren't versioned. There's one published agentic context per name, and it's always the one in effect. Publishing a draft replaces what was live.

To send the configuration to your Signals infrastructure, click Publish.

Delete an agentic context​

You can't delete an agentic context while it's published. Unpublish it first, then delete it. This prevents accidentally breaking any live system depending on an agentic context.

To unpublish or delete an agentic context, click the ⋮ button on the top right of the details page and select the available option.

For worked examples of what an application does with an agentic context, see customer-aware AI agents on the Signals site.

Was this page helpful?