Skip to content
Open Screeb

Connect your AI agent to Screeb

Register your AI agent in Screeb and send its conversations with your users, from your web page or your backend, so Screeb can analyze them.

How-to4 min read, updated Oct 8, 2026

Send the conversations of your own AI agent (a chatbot, an assistant or a copilot in your product) to Screeb, so they are analyzed for satisfaction, issues and topics. You register the agent in Screeb, then your code sends an event for every user message and every agent reply.

  • Your role in the workspace lets you create agents (Editor or Admin).
  • A developer can change the code of your agent. To send events from your web page, Screeb must be installed there, see Install Screeb on your website or web app.
  1. In the main navigation, under Optimize, click AI Agents analysis.
  2. Click Add an agent. The Create an AI agent window opens.
  3. Enter a Name, shown in Screeb.
  4. Enter an ID of 30 characters at most, for example support-bot. Your code sends this exact value as agent_id.
  5. Optionally, add a Description of what the agent does.
  6. Click Create AI agent. The agent shows in the list.
The Create an AI agent window, with the Name, ID and Description fields

The ID is set at creation and cannot be changed. Agents belong to a workspace: send the events to the workspace where you created the agent.

Your developer sends four kinds of events. Every event carries the agent_id.

Event When to send it Required
screeb_copilot_user_prompt Each time the user sends a message, with the prompt. Yes
screeb_copilot_response Each time the agent replies, with the response. Yes
screeb_copilot_conversion When the conversation leads to a result: a purchase, a sign-up, a task done. No
screeb_copilot_satisfaction When the user rates the conversation, with the rating and the rating_scale. No

The prompt, response and satisfaction events also carry a conversation_id and a session ID, so Screeb can rebuild the whole conversation. The conversion event is what links a conversation to a business result in the analysis.

Pick where to send them from:

  • From your web page, with the JavaScript tag: $screeb("event.copilot", "screeb_copilot_user_prompt", {...}). See Copilot event tracking in the developer docs.
  • From your backend, with the Screeb API and the copilot event type, authenticated with the Workspace API key found in Screeb API. See the Screeb API reference. Some field names differ from the tag: the session ID is copilot_session_id.

Most agents run on a server, so the backend option is usually the more reliable one: the call lives in the code that already handles the prompt and the reply. It is also the way to go for an agent in a mobile app.

Send the prompt and response events again on every turn of the conversation, with the same conversation_id, session ID and agent_id from start to end. Sending them only once, or changing an ID along the way, is the most common mistake.

Screeb analyzes a conversation once it has had no new message for about 15 minutes. Open the agent from the AI Agents analysis list, then click Conversations in its side menu: the tabs All conversations, Dissatisfied and Rage prompt list the analyzed conversations.

The Conversations page of an agent, with the All conversations, Dissatisfied and Rage prompt tabs and the first tracked conversations

The other pages of the agent then fill up, see Analyze your AI agent conversations.

To check that the events arrive before any analysis, click Settings, then, under AI Agents, click Events: the page lists the agent events Screeb has received.

No conversation shows. Check that the agent_id sent by your code is exactly the agent ID, and that the events go to the workspace where you created the agent. Events for an unknown agent are not analyzed.

Conversations stop after one or two messages. The events are sent only once. Send them on every turn.

One conversation shows as several. The conversation_id or the session ID changes between turns. Create them once, when the conversation starts, and reuse them.

Conversations show late. Analysis starts after about 15 minutes without a new message, and can take a few more minutes.