Client to server events
Send contextual information from the client to enhance conversational applications in real-time.
Send contextual information from the client to enhance conversational applications in real-time.
Client-to-server events are messages that your application proactively sends to the server to provide additional context during conversations. These events enable you to enhance the conversation with relevant information without interrupting the conversational flow.
For information on events the server sends to the client, see the Client events documentation.
Your application can send contextual information to the server to improve conversation quality and relevance at any point during the conversation. This does not have to be in response to a client event received from the server. This is particularly useful for sharing UI state, user actions, or other environmental data that may not be directly communicated through voice.
While our SDKs provide helper methods for sending these events, understanding the underlying protocol is valuable for custom implementations and advanced use cases.
Contextual updates allow your application to send non-interrupting background information to the conversation.
Key characteristics:
User messages allow you to send text directly to the conversation as if the user had spoken it. This is useful for text-based interactions or when you want to inject specific text into the conversation flow.
Key characteristics:
User activity events serve as indicators to prevent interrupts from the agent.
Key characteristics:
Contextual updates
User messages
User activity
Timing considerations
For detailed implementation examples, check our SDK documentation.