inbound assistant get number and do some logic
# support
a
at my inbound call how to get the client number and check if this number on my file uploade to vapi , also my assistant tell the script based is on the file uploaded to vapi or not
v
Based on the information I found, you can potentially access the client number during an inbound call using the
transferCall
function with
{{customer.number}}
or through the call object that Vapi returns when a call starts. However, I don't have complete information on how to check if a number exists in an uploaded file or how to determine if an assistant's script is based on a file. Could you clarify what type of file you've uploaded to Vapi (CSV, database, etc.) and how you're currently handling inbound calls in your implementation? Sources: - [Discord discussion on transferCall function](https://discord.com/channels/1211482211119796234/1341078918945439775) - [Discord discussion on call objects](https://discord.com/channels/1211482211119796234/1340465193934917772)
a
any ideas how get caller number befor my assistant answer at n8n ??
k
You can access it through the call.customer.number field in Vapi metadata, then check it against your uploaded file CSV using API, and adjust the assistant’s script dynamically based on the client’s data for personalized interactions.
Set up a webhook in Vapi to capture the call metadata, then use the n8n Webhook node to extract and process the phone number, allowing for conditional logic based on the caller’s identity..
a
Thanks a lot
About the webhook in vapi (is inside workflow in vapi)?
or u mean do a function and call it webhook n8n
k
Kindly go through guide https://docs.vapi.ai/server-url
a
thanks bro im sorry for many question im still beginner
k
I understand, please feel free to ask if you're experiencing any difficulty thanks
a
thaanks i appreciate it
k
Marking this ticket as Solved ✅