Interactions Protocol Overview
The Interactions Protocol allows users to interact dynamically with the Replica live during an active conversation via broadcasting interactions
.
The following interactions are available:
- Echo interactions
- Response interactions
- Interrupt interactions
- Override conversation context interactions
- Sensitivity interactions
In addition to interactions
, users are able to listen to incoming events
from the Replica. Specifically you can listen for:
- Utterance events
- Tool call events
Setting up Interactions Protocol
The interactions protocol uses the data-channel on WebRTC (Daily) in order to transmit and receive events between your server and CVI.
In order to use the interactions protocol, you must have a client that can connect to the data channel. We use Daily as our WebRTC provider, which makes it easy to setup a client.
The Daily app-message
event is used to send and receive events and interactions between your server and CVI.
Here’s an example of using DailyJS to create a call client in Javascript:
Here’s an example of using Daily Python to create a call client in Javascript:
Available Interactions
- Echo Interaction
- Text Respond Interaction
- Interrupt Interaction
- Overwrite Conversational Context Interaction
- Sensitivity Interaction