Get Started
See how Snowplow gives companies the real-time user data foundation and context layer to make better business decisions while powering the AI initiatives that will define the next era of media.
Adding client-side, server-side, and agent self-tracking to an AI-powered chatbot with Snowplow
Traditional analytics tells you what users clicked. When your product is an AI agent, the interesting behavior happens in layers you can't see from the browser — the reasoning loop, tool calls, token usage, and the decisions the agent made before it said a word.
This accelerator walks you through instrumenting all three tracking layers of an AI-powered chatbot: client-side user interactions, server-side agent orchestration, and agent self-tracking. Each layer answers a different question. Client-side tells you what the user did. Server-side tells you what the agent did. Agent self-tracking tells you what the agent thought — intent interpretation, tool parameter choices, constraint violations, and confidence levels.
You'll work with a fully functional travel booking chatbot built in Next.js with the Vercel AI SDK, supporting Anthropic Claude, OpenAI GPT, and Google Gemini. No Snowplow account is required — the accelerator uses Snowplow Micro running locally in Docker for real-time schema validation.
Every event in the system connects through two shared identifiers: session_id (per browser session) and invocation_id (per API request).
This means you can start from any event and trace outward — from a constraint_violation back to the original user_intent_detected, or from a slow message_received forward to the specific tool_execution that caused the latency.
The accelerator supports both a code-along path (write the tracking from scratch) and a read-along path (check out git tags and study the architecture), making it suitable for developers and data architects alike.
All Supported
See how Snowplow gives companies the real-time user data foundation and context layer to make better business decisions while powering the AI initiatives that will define the next era of media.