Skip to main content
Hook into the agent’s lifecycle to build custom experiences on top of Crow.

Available Callbacks

React SDK

Pass callbacks via the client.on() method:

Callback Reference

onMessage

Fired when a new message is added to the conversation.

onMessageUpdate

Fired when a message is updated — typically during streaming as the assistant’s response accumulates.

onToolCall

Fired on tool lifecycle events:

onWorkflow

onVerificationStatus

Fired when the user’s identity verification status changes — useful for gating features behind verified users.

onError

Fired on any error during streaming or tool execution.

Use Cases

Analytics — Track which tools are used and how often:
Custom loading states — Show your own UI while tools run:
Error reporting — Pipe errors to your observability stack:

Client Side Tools

Register browser-side tool handlers

Embed Widget

Install the widget