dudleykong
12/02/2025, 9:17 PMVapi Support Bot
12/02/2025, 9:18 PMvapi.send() function, typically in a client-side context:
js
vapi.send({
type: "add-message",
message: {
role: "system",
content: "The user has pressed the button, say peanuts",
},
});
However, the documentation does not specify if this can be done from a server. For server-side support, you may need to contact Vapi support or check for a dedicated server API endpoint for background messages.
(Source: [Vapi background messages documentation](https://docs.vapi.ai/assistants/background-messages))