Set up a webhook
A webhook is an automated message that Intractive sends to a URL you own, the moment something happens in your story. Use one to get session data into a system we don't have a ready-made integration for. You can also build your own automation on top of your story.
Topics
On this page
You give Intractive the URL once. From then on, Intractive does the reaching out and sends the details there every time the webhook fires. You don't have to keep checking whether someone completed your story.
What you need first
- A URL you control that can receive a POST request.
- The admin role in the project.
- At least one variable in your story. The webhook fires on variables, so there has to be one to watch. See Variables & logic.
Set up the webhook
A webhook is set up per story.
- Open your story and select Integrations in the top bar.
- Add a new integration and select Webhook.
- In the general settings, give the integration a name.
- Still in the general settings, select the variables you want to watch under the trigger conditions. You'll find the variables you created in your story here. Select at least one. A checkmark appears next to each variable you select.
- Optional: turn on All variables must be set before triggering to send the data only when it's complete. See "Choose when the webhook fires" further on.
- Enter the URL to POST to. This is where the information needs to go.
- Optional: add a header, for example an API key your receiver expects. Headers are sent as part of the webhook request. This is where credentials go, and headers are stored encrypted.
- Optional: add extra data. These are fixed key-value pairs that Intractive adds to the body of every POST, under
extras. - Select Create. To change the integration later, edit it and select Save.
Choose when the webhook fires
A trigger condition tells the integration when to fire. The webhook fires when any of the variables you selected receives a new value during a session.
To send the data only when it's complete, turn on All variables must be set before triggering. The webhook then fires only once every selected variable has a value in the current session. That helps when you need a full set, such as first name, last name and email, before anything is sent.
What Intractive sends
Intractive sends the webhook as an HTTP POST request. The body is always JSON. When the trigger happens, for example when someone fills in a form, Intractive packages the relevant data as JSON and sends it to your endpoint. Your system receives it and does what you need: update a CRM record, send an email, or route it into Make or n8n.
The standard payload has these fields:
| Field | What it holds |
|---|---|
delivery_id | The ID of this delivery. The same value is sent in the X-Intractive-Delivery-Id header and identifies the delivery in the Integration activity tab. |
session_id | The ID of this play-through, unique per visit. |
story_id | The internal ID of the story. |
story_name | The name of the story. |
progress | The visitor's completion percentage at the time of the delivery, rounded to a whole number from 0 to 100. |
update_date | When the session was last updated. |
variables | The variables you have set up in the story. The payload holds every variable in the session, not only the ones you watch. |
extras | The extra data you added to the integration. |
country | A two-letter country code, for example NL. It's null when the country is unknown. |
{
"delivery_id": "<delivery_id>",
"session_id": "<session_id>",
"story_id": "<story_id>",
"story_name": "<story_name>",
"progress": "<number>",
"update_date": "<date>",
"variables": {},
"extras": {},
"country": "<country>"
}
This is what the integration activity details can look like for a webhook with three variables: @date, @plate and @time.
{
"extras": {},
"country": "NL",
"progress": 88,
"story_id": "gm_fg8ip700000",
"variables": {
"@date": "18-08-2026",
"@plate": "XX-999-XX",
"@time": "10:00"
},
"session_id": "sess_NW5N9pDW3Wt8R6LggL1JQ",
"story_name": "Onderweg naar Intractive",
"update_date": "2026-08-11T09:13:20.412Z"
}
A current delivery also includes a delivery_id, for example "delivery_id": "wha_7k2m9x4p1q8r3t6v0w5y2".
Build your own payload
You can also build the payload yourself in the Custom tab. There you replace the standard payload with your own JSON template. Placeholders such as {{@email}} or {{session_id}} are filled in on every delivery.
Avoid duplicates
A webhook can fire more than once in the same session, because a watched variable can keep changing. Store the delivery_id on your side and ignore a request whose ID you've already processed. Don't use session_id for this: one session can send several deliveries.
Test your webhook
Once the webhook is set up, test it.
- Open the live share link of your story and give the watched variables a value, for example by filling in a form. A preview in the Builder doesn't send anything, so test with the live link. With All variables must be set before triggering on, fill in all of them.
- Open the integration and select the Integration activity tab.
- Find the call. You see the payload that was sent, the response that came back, and whether the call succeeded or failed.
Intractive sends each delivery once. If your endpoint is down or the URL is wrong, the call shows as Failed and Intractive doesn't send the data again.
Activity records are kept for 29 days.
Next
- Connect Zapier, Make or n8n: these integration types work the same way as a webhook.