Silent system message but Server Side
# support
d
Hello guys, one question. Do you know if with Vapi is possible to send silent system message server side? Would be amazing for us to steer the conversation from the backend and not from the frontend.
m
d
@Mason | Building KOI you made my day. I was looking for this since a long time, thank you very much.
m
glad I could help out man!!
good luck
d
@Mason | Building KOI I noticed that is only for phone calls, do you know if can be used for normal calls too?
m
are you saying like for web calls? If so yes
d
yes exactly
but the api accept only a payload with the number: curl 'https://api.vapi.ai/call/phone' -H 'authorization: Bearer YOUR_API_KEY' -H 'content-type: application/json' --data-raw '{ "assistantId": "5b0a4a08-133c-4146-9315-0984f8c6be80", "customer": { "number": "+12345678913" }, "phoneNumberId": "42b4b25d-031e-4786-857f-63b346c9580f" }'
c
Hey Damiano, for web calls you have to use either web-sdk or web-html-snippet. Can you share more context what your trying to build to help you better?
d
No I have found the solution. @User @User I think this is a huge miss from the documentation. Actually when creating any kind of room (web or phone) we can request a control url. The control url can be used to inject messages: system/user in the Live Control documentation from a first look, seems like this control url is retrievable only during Phone Conversations. You have a dedicated section for the background messages: https://docs.vapi.ai/assistants/background-messages And you mention only the "front end" option with the client SDK. You should mention that the background messages are available even from the backend using the control url.
c
Hey Damiano, thanks for letting us know will update the doc for it.
5 Views