How To Connect to VAPI Assistant During a Phone Ca...
# support
r
I have my phone number inside twilio, I have set a webhook for inbound call 'when a call comes in' and set a ngrok webhook (node.js backend code) which is triggering and in my code the endpoint is picking up the call greeting user with voice after that I want to connect to my Vapi assistant which is configured in my dashboard and it will have the conversion after that, but my problem is how to connect to vapi assistant and through which endpoint ? Can anyone provide sample code for it ?
k
Set your Node.js webhook as the assistant’s Server URL in vapi, and vapi will send all call and conversation events to it for you to handle and respond to, no extra “connect” endpoint is needed..
r
Actually my phone number is in twilio and in twilio I have set the webhook for icomming call, initially I want twilio to handle the call and keypad digit pressing function which is working fine in my node.js code, but how do I connect to vapi and start the assistant question and answer after these steps ?
c
Keep Twilio handling the call and keypad input in your Node.js webhook, then forward the call to Vapi and set your webhook as Vapi’s Server URL so it can send events to start the assistant conversation. If issue persist share call_id
2 Views