function tool call
# support
m
Trying to use a function tool to retrieve some records from Airtable, i’m using make.com to retrieve the data from Airtable and sending the response back to Vapi, Vali receives the response json but doesn’t continue with the conversion in workflow!! Can you help with this. Is this even possible?
v
Yes, this is possible! The most common issue is that Vapi expects your make.com webhook to return the result in a specific JSON format. Make sure your response looks like this:
Copy code
json
{
  "results": [
    {
      "toolCallId": "YOUR_TOOL_CALL_ID",
      "result": "YOUR_RESULT_HERE"
    }
  ]
}
Replace
YOUR_TOOL_CALL_ID
with the ID from the incoming request, and put your Airtable data in
YOUR_RESULT_HERE
. If the format is correct, Vapi should continue the workflow as expected. Source: - [Custom Tools Vapi Documentation](https://docs.vapi.ai/tools/custom-tools)
m
This is what i am sending through the webhook response in make:
Copy code
{
  "results": [
    {
      "toolCallId": "{{1.toolCallId}}",
      "result": "Patient {{2.first_name}} has an appointment on {{formatDate(2.appointment_date; \"MMMM D, YYYY\")}}. Note: {{2.appointment_msg}}"
    }
  ]
}
@User
p
Could you share a log of the workflow that shows the tool being called and the toolCallResult as well as a call id?
this is the response in that tool call log.
p
Thanks for sending those logs. We are currently reviewing them and finding a solution for you
m
Hi there, any update on this?
p
Hey Mr-Millionaire - Alireza, Thanks for reaching out! We're currently swamped with a bunch of tickets and it's taking us longer than usual to get back to everyone. I know waiting isn't fun, but we want to make sure we give your issue the attention it deserves rather than rushing through it. We'll circle back with you soon to get this sorted out.
Hey Mr-Millionaire - Alireza, I wanted to let you know that we're managing a high volume of support requests at the moment, so our response time might be a bit slower than usual. I truly appreciate your understanding and will get back to you as soon as possible!  Thanks again for your patience!
Hey Mr-Millionaire - Alireza, I sincerely apologize for the delay in our responses this week. We experimented with some process adjustments that didn’t work as intended, and unfortunately, this caused some disruptions. That’s entirely my responsibility. Just a quick note—our team is unavailable on weekends. However, if something urgent or critical comes up, feel free to reach out to me directly, and I’ll assist you. The support issues will be resolved in the coming weeks, and starting Monday, you can expect more consistent and improved support. Thank you so much for your patience and for continuing to stick with us!
It appears you are using a Twilio phone number, and if that is the case you may have to upgrade your account for that phone number on their platform.
m
Hi Kyle, I’m not sure why my phone number is the issue the custom function tool not receiving data from my CRM.
p
Hi there, could you please provide a call id where you have the custom function set up? From there, we can diagnose what the root cause of the issue is