Prefetch webhook
# support
s
Hello, I am facing a problem putting a prefetch webhook in my assistant. If possible, can you please guide me?
u
I can guide you
What is the problem you are facing?
s
So i need to put an webhook which will fetch customer data when the call started
And based on the variables in the data, call flow will be decided
Either it is for a new customer or existing or a holiday like that
u
Then you have to create a tool for that. After creating the tool, there will be a section for you to add the webhook URL. Are you using make for this? Can you Dm?
k
Create a custom tool with a server URL (your webhook), and in your assistant prompt, call this tool early to fetch data then ensure your webhook responds with the correct JSON including the toolCallId and result.. https://docs.vapi.ai/server-url
2 Views