Talel
09/17/2024, 5:22 PMVapi
09/17/2024, 5:24 PM.send() method, which allows you to send intermediate messages to the assistant. These messages can be used to trigger automations or provide additional context to the assistant during an ongoing call.
Here's how you can send a server message to your assistant:
javascript
vapi.send({
type: "add-message",
message: {
role: "system",
content: "Your custom message or command here",
},
});
This method does not require a toolcallId since it's not initiating a new tool call but rather sending data to an existing session. It's a way to push information to the assistant in real-time. If you have specific automations or actions you want to trigger, just replace the content with the appropriate command or data you wish to send.
Would you like to send a specific message right now? If so, please provide me with the details, and I'll assist you with that.Vapi
09/17/2024, 5:24 PMShubham Bajaj
09/18/2024, 2:17 PMTalel
09/18/2024, 5:27 PMShubham Bajaj
09/19/2024, 8:26 PMTalel
09/21/2024, 12:39 AMShubham Bajaj
09/22/2024, 8:29 AMKishore Kumar
09/22/2024, 5:02 PMShubham Bajaj
09/23/2024, 5:43 PMKishore Kumar
09/23/2024, 5:49 PMShubham Bajaj
09/23/2024, 5:58 PM