Skip to main content

Sync Data using Webhook

The last page covered sending data into a call with API Trigger and initial_context. Now the opposite side: how IntraCord sends what it learned back out to your system once the call ends.

That extracted data lives in gathered_context. So the full picture is: initial_context is what your backend sends into the call, gathered_context is what IntraCord extracts from it. A Webhook node is how you get gathered_context back out.

Step 1: Add the node

Click Add node, scroll down, and you'll find the Webhook node. Add it and open it up.

Step 2: Set the endpoint

First thing you'll see is the endpoint URL. Paste your backend's webhook URL here. Still testing? Use a free URL from webhook.site, copy your unique URL there and paste it into IntraCord.

Set the method to POST. If your backend needs auth, add a bearer token or API key right here too.

Step 3: Build the payload template

This is the important part, it decides exactly what JSON IntraCord sends. Include both kinds of context: initial_context fields like debtor name, client name, and debt amount, and gathered_context fields like amount to pay, payment method, and sentiment. You can also include the final call outcome with {{gathered_context.call_disposition}} — how the call ended, e.g. user_hangup or voicemail_detected.

{
"debtor_name": "{{initial_context.debtor_name}}",
"client_name": "{{initial_context.client_name}}",
"debt_amount": "{{initial_context.debt_amount}}",
"amount_user_will_pay": "{{gathered_context.amount_user_will_pay}}",
"payment_method": "{{gathered_context.payment_method}}",
"sentiment": "{{gathered_context.sentiment}}",
"call_disposition": "{{gathered_context.call_disposition}}"
}

For every variable you can reference here, see the Webhook Payloads developer reference.

Step 4: Save and publish

Save the webhook node, then publish the agent.

Step 5: Test it

Run a test call. When it ends, go back to your webhook receiver. You'll see one request with both initial_context, the data you sent into the call, and gathered_context, what IntraCord extracted from the conversation, sitting in the same JSON payload.

That's the complete loop: your backend sends initial_context into IntraCord, IntraCord runs the call and extracts gathered_context, and the webhook node sends the final structured data back to your backend. For production, swap the webhook.site URL for your real backend URL.

Next Steps