inbound call verification
# support
j
Hi all! I'm looking for a way to verify inbound phone calls, by calling an API with the callers phone number & the AI Assistant phone number as details. This has to happen before the AI Assistant is allowed to pick up the phone. Is there a specific 'tool' I should use? Or a workflow that I need to create? Cheers
c
Use a custom tool like,
verify_caller
to call your API with the caller and assistant numbers, or use the assistant-selector webhook to block or route calls before they're answered..
j
I've been able to setup the webhooks and I receive them,. But, how can I now ensure that the assistant won't answer the phone until we've ensured the verification? Currently the assistant picks up immediately and starts speaking.
c
Use the assistant-request webhook and respond with "should_answer": false" until your verification logic approves the call..
j
This is configured using the API? And not via the UI?
Alright, I think I found it. I assigned an Assistant to the phone number directly. But now I added the Phone number with a server, so therefor Vapi will request the Assistant ID via my server, which I could then leverage to do the validation & send the correct Assistant ID. 🙂
k
checking if this is resolved/solved for you?
j
I think you can mark it as solved for now, thanks guys!
Everything works fine now, it can 100% be marked as solved!
k
Glad it fixed
3 Views