Browser SDK

Conversions

Record business events such as orders or sign-ups and tie them to agent sessions.

Tool calls tell you what agents tried. Conversions tell you whether it worked. Call track() when something you care about happens:

AgentStats.track('order_completed', { value: 42.5, currency: 'USD' })

The event is sent with the current agent session, so you can see it alongside the tool calls that led up to it.

Props

props is any JSON object. The same size limits and redactKeys as tool arguments apply. See Privacy & data captured.

Webhooks

Every track() call also fires the custom_event webhook, if you've subscribed to it. Use that to push agent conversions into Slack, a CRM or Zapier.