focusflarenetwork
Let's get you to a point where we can troubleshoot the ITFlow side. Here's what you need to do:
Step 1: Fix Your Broken JSON Syntax
In these three nodes, you have invalid JSON that will fail immediately:
Create Client
Create Contact
Create Ticket
json
$$
{
"api_key": "YOUR_API_KEY_HERE",
"client_id": "{{ $('Create Client').item.json.data[0].insert_id }}",
$$
You need to add:
The actual API key value (same one from your "Lookup Contact" node)
A comma after the closing quote
Do this for all three nodes.
Step 2: Test Your Webhook
In n8n, open the "Retell AI Lead" webhook node
Click to listen for a test event
Make a test call through your Retell AI bot
Look at what data n8n receives - you need to see if fields like name, email, issue, summary are actually in the payload
Step 3: Match Your Parser to Real Data
Your "Sort Data" code is looking for:
$$
const analysis = call.call_analysis?.custom_analysis_data ?? {};
$$
You need to verify that path matches what Retell AI actually sends. If the data isn't at that path, your parser returns empty values and ITFlow will reject the API calls.
Step 4: Test ITFlow API Integration
Once steps 1-3 are done, run a test call. If ITFlow still rejects it:
I can help you connect n8n to ITFlow's API, but for Retell AI configuration or general n8n troubleshooting, you'll need their support channels.
Once you've fixed the JSON syntax and confirmed what data Retell AI is sending, post back with any ITFlow-specific errors and I'll help sort them out best I can.