Skip to main content
This page provides a detailed breakdown of the conversation events and their payloads. For the usage examples refer to the following examples:

Server Events

Events emitted by the agent system in response to client input or internal agent logic. Typically the conversation begins with a setup when the agent fetches the conversation context and initializes. The conversation’s ‘start’ and ‘end’ indicate the live session’s bounds - when the user was actively connected through phone or chat. In case of an async chat the bounds are determined automatically. User’s and agent’s messages are recorded as they are processed by the agent. Agent’s speech is streamed as partial updates, terminated with a final message. User’s messages are captured as a single event.

conversation.setup

Sent before a conversation starts. This can be used as webhook to preload data relevant to the conversation.

conversation.started

Sent once the conversation has started.

conversation.ended

Sent when the conversation has ended.

conversation.context.updated

Indicates the context has been updated on the agent side.

conversation.custom_fields.updated

Sent when conversation custom fields are modified.

agent.message.delta

Streaming partial message content as it’s being generated.

agent.message.completed

Sent when the agent finishes sending a message. Indicates that the generation has completed. Contains the full text of the message.

agent.tool_call.created

Sent when the agent triggers a tool call.

agent.tool_call.returned

Sent when the tool call returns a result.

agent.notice.sent

EXPERIMENTAL: Agent has sent a system-level notice (e.g. “This call may be recorded”).

user.message.received

Acknowledgment that the user message was received.

server.error

Emitted when a server-side error occurs during event handling.

user.dtmf.received

EXPERIMENTAL: Sent when DTMF tones are received from the customer.

agent.dtmf.sent

EXPERIMENTAL: Sent when DTMF tones are sent to the customer.

agent.customer.loaded

EXPERIMENTAL: Sent when customer information is loaded/identified. We should strengthen assumptions so that we always have an ID here.

Client Events

Events sent by the clients over API to initiate or interact with a conversation. Can only be sent to a conversation that has not ended yet. Example use-cases:
  • conversation.end to terminate the conversation early
  • conversation.context.update to notify the agent of an internal event that is relevant to the conversation, e.g. “user verification completed”
  • user.message.send to notify the agent of a user message sent through other means, e.g. a separate chat system, slack, etc

user.message.send

Send a message from the user to the agent.

conversation.context.update

Update the conversation context mid-session.

conversation.start

Start the conversation.

conversation.end

End the conversation.