https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to get data from acustom function to my n8n wo...
# ❓・ai-evy-support
m
@AI Evy how to get data from acustom function to my n8n workflow
a
Thanks for tagging me @mirovalor0103. I'll look through relevant sources and get back to you shortly.
### Answer To get data from a custom function to your n8n workflow with Retell AI: 1. Set up your webhook in n8n - Make sure the webhook response setting is configured as "Using Respond to Webhook" (not "Immediately") [(1) ]() . 2. Verify webhook delivery - Check that your n8n workflow is actually receiving the webhook payload from Retell AI. You can verify this in the n8n execution logs [(2) ]() . 3. Handle different event types - If you're working with multiple webhooks (like
call_start
and custom function calls) , consider splitting into separate workflows or using a Switch node to handle different payloads . 4. Check the tool result - In Retell AI logs, verify that your custom function is returning data properly. The tool result should show the actual response data, not just "workflow has started" [(1) ]() . 5. Ensure proper webhook configuration - For inbound calls specifically, make sure you've added the inbound webhook URL to your agent configuration [(3) ]() . Common issue: If you're only seeing
call_inbound
events but not
call_ended
or
call_analyzed
, verify that your phone number is connected to the current version of your agent .
​ To learn more, see the sources I considered: [[1] I’m integrating Retell AI with n8n using a custom function that checks for existing bookings](https://discord.com/channels/1186424376300679209/1425861757133520956) [[2] Custom n8n Functions Stopped Working](https://discord.com/channels/1186424376300679209/1360106227560087552) [[3] Discord message from @tahjib.leon on 2025-09-18](https://discord.com/channels/1186424376300679209/1186462578310910112/1418332054252159028) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
How to find sample of agent flows in retellai?