MaxKnox
05/30/2024, 6:14 PMVapi Support
05/30/2024, 6:14 PMVapi Support
05/30/2024, 6:14 PMclientMessages and serverMessages are configurations used to specify the types of messages that the assistant can send to the Client SDKs and your Server URL, respectively.
- **clientMessages**: These are the messages that are sent to the Client SDKs. The default message types include transcripts, hang up commands, tool calls, speech updates, metadata, and conversation updates. This allows the client side of an application (like a user's browser or mobile app) to receive real-time updates about the state of the conversation, speech inputs, and other relevant data [(1)]() .
- **serverMessages**: These messages are sent to your specified Server URL. The default includes end-of-call reports, status updates, hang up commands, and tool calls. This setup is essential for enabling server-side handling of call logic, storage of call data, or other backend functionalities. The server messages allow for deeper integration of Vapi into backend systems, providing a bridge between the assistant's activities and your server's logic .
These configurations ensure that your application can effectively manage and respond to different aspects of voice interactions, either through client-side updates or server-side processing.Vapi Support
05/30/2024, 6:15 PM