fair-rose
fair-rose4w ago

Custom function Doesn't return response n8n + Vapi

Hello I am trying to make a custom Function and return availability to VAPI but I keep getting this error: I also included my respond webhook as well. any ideas ?
No description
No description
3 Replies
Vapi
Vapi4w ago
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards,
Vapi
Customer Support Team
Vapi Support Bot
Thanks for sharing the details! Based on the error and your description, a common cause is returning a JSON object (not a string) in the result field of your webhook response. Could you confirm:
Are you returning the result as a single-line string (not an object or array) in your results array, like this?
{
"results": [
{
"toolCallId": "call_casKyF5DieBITQ3MAMHH",
"result": "Your availability details as a single-line string"
}
]
}
{
"results": [
{
"toolCallId": "call_casKyF5DieBITQ3MAMHH",
"result": "Your availability details as a single-line string"
}
]
}
If not, updating your response to match this format should resolve the "No result returned" error.
See troubleshooting guide Source: - Custom tools troubleshooting
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
Vapi
Vapi4w ago
Hi Чебурашка, How can I assist you today with your Vapi setup or integration? If you have any issues or questions, feel free to share the details. I’m here to help.

Did you find this page helpful?