Skip to main content
Interaction Events let you control and customize live conversations with a PAL in real time. You can send interaction events to the Conversational Video Interface (CVI) and listen to events the PAL sends back during the call.

Sending Interactions

An interaction is a JSON message that tells the PAL what to do: respond to text, speak supplied text, stop speaking, change its emotion, or update its context. Every interaction has the same shape: message_type, event_type, conversation_id, and properties.

Interaction Types

Two Ways to Send Interactions

You can send an interaction from your client in the call, or from your server. Every interaction is the same JSON payload. What changes is where you send it from.
If you use your own Daily room, the Send App Message API returns an error. Send app messages with your Daily API key instead.

Send Interactions From the Call

This is client-side: your front-end app sends interactions after it has joined the call, using Daily’s sendAppMessage(interaction, '*'). The examples below show some of the interaction types, not all of them. See Interaction Types for the full list.

Text input: conversation.respond

PAL speaks supplied content: conversation.echo

For audio echo, set modality: 'audio', pass base64 audio, include sample_rate, and keep done: false until the final audio chunk.

Stop the PAL: conversation.interrupt

Set the PAL’s emotion: conversation.set_emotion

The PAL keeps the emotion until you send another one. Send emotion: '' to clear it. For a full example of joining the call and sending and listening for events from a browser or app, see Call Client Examples.

Send Interactions From Your Server

To control a conversation from your backend without joining the call, POST the same payload to Send App Message with your API key:
  • The interactions listed under Interaction Types go straight to the PAL, in the order you send them. They are not broadcast into the call, so other participants do not receive them.
  • Any other event_type is relayed into the Daily room, where other participants can see it.
  • Interactions sent before the PAL has joined wait for it, for up to an hour, and are handled once it is ready.
  • A 200 means the interaction was queued, not yet handled. Retry a 502. A 504 may already have been delivered, so check before retrying.
  • LiveKit, Agora, and echo-mode conversations accept only conversation.echo, conversation.interrupt, and conversation.set_emotion.
  • Requests are rate limited per conversation and capped in size. See the 429 and 413 responses in Send App Message for the limits.
Keep your API key on your server. From a browser, use Daily’s sendAppMessage instead.

Observable Events

Observable events are messages the PAL and the conversation send back while the call is running. They tell you who spoke, what was said, when a tool needs to run, and when participants join or leave. Each one has the same shape as an interaction, plus timing fields described in Event Ordering and Turn Tracking.

Observable Event Types

Two Ways to Listen

Most observable events arrive in the call. A few also reach your server through callbacks.

Listen From the Call

This is client-side: your front-end app listens for app-message events after it has joined the call. Each message’s payload is in event.data. Check event_type to tell the events apart:
showMessage and runTool are your own functions. The examples cover two event types. For the rest, see Observable Event Types. For a full join-and-listen example, see Call Client Examples.

Listen With Callbacks

Callbacks are server-side webhooks. Set a callback_url on a PAL to receive them for every conversation created with that PAL, or set one on Create Conversation for a single conversation. Callbacks do not cover every event. They are sent for system and application events, such as the PAL joining, the room shutting down, and the final transcript, plus canvas.interaction. They are not sent for live events like conversation.utterance or conversation.tool_call. For the full list and payloads, see Webhooks and Callbacks. This example handles the final transcript when a conversation ends:
Another example, system.pal_joined, is sent when the PAL is ready for the conversation.

Event Ordering and Turn Tracking

Observable events your client receives during the call, through the Daily app-message event, include the following fields for timing, ordering, and grouping:
  • timestamp (number) - Unix timestamp (seconds since epoch) indicating when the event was created. Use this to build timestamped transcripts or reconstruct the full timeline of a conversation.
  • seq (integer) - A globally monotonic sequence number. Every event gets the next value in the sequence, so a higher seq always means the event was sent later. Use this to reconcile events that may arrive out of order over the data channel.
  • turn_idx (integer, optional) - The conversation turn index. This value increments each time a conversation.respond interaction is received, and groups all events that belong to the same conversational turn. Use it to correlate related events - for example, an utterance, its tool calls, and the PAL speaking state changes that all stem from the same user input. This field is present on conversation-related events (utterances, tool calls, speaking state changes, perception events, etc.) and omitted on events that are not tied to a specific turn.
  • inference_id (string, optional) - A stable identifier for a generated utterance or inference. Use it with conversation.utterance, conversation.utterance.streaming, and tool-call events to reconcile optimistic UI state with the final events Tavus emits.
Callbacks use a different envelope. Their timestamp is an ISO 8601 string, and they don’t include seq or turn_idx. See Webhooks and Callbacks for their payloads.