conscious-sapphire•16mo ago
clientMessages vs serverMessages
What is the difference between clientMessages and serverMessages
3 Replies
Hi @MaxKnox, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* Get Assistant
* Create Assistant
* List Calls
* List Assistants
-----------------------------
Answer
In Vapi,
clientMessages
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.Glad I could be helpful. Feel free to create a new thread with any new questions you may have.