Skip to main content
A webhook is a private web address that another app can send data to. Think of it as a letterbox for your workflow: when a website form, a payment app or your own code posts a message to the address, the workflow runs and can use everything in that message. In Connie, this is the Custom Webhook trigger. Where: open a workflow → Build → trigger card → Event → Webhooks tab → Custom Webhook · https://connie.ai/<workspace-id>/workflows/<workflow-id>

Set up a webhook trigger

1

Add the Custom Webhook trigger

Create a workflow with New → New workflow → Event, then choose Custom Webhook on the Webhooks tab. (In an existing workflow: trigger card ⋯ → Change.)
2

Copy the Webhook URL

The trigger panel shows your Webhook URL with a copy button. It looks like https://connie.ai/api/webhooks/ followed by a long ID. Each Custom Webhook trigger has its own URL.
3

Send a test request

Open the trigger’s Test panel and click Run Test (“Send a POST request to the webhook URL to capture test payloads.”). Then send a request from your app, or copy the Example request shown in the panel with Copy command and run it.
4

Pick the test event

The captured request appears in the list. Click Use as test event for Run Once. Its fields now appear under Custom Webhook in the variable picker.
5

Build the steps, then set it live

Add your steps, then Run → Set live. Until the workflow is live, requests are saved as test events but don’t start runs.

Send data to the webhook

  • Method: POST.
  • Body: valid JSON. Send the header Content-Type: application/json. A body that isn’t valid JSON (form-encoded, XML, empty) is refused with 400 {"error":"Invalid JSON body"}.
  • Plain values only: a body that holds a variable such as {{name}}, an expression such as {= 1 + 1 =}, or a function such as lower(...), in any key or value, is refused with 400 (see Use the payload in your steps).
  • Address: always use the https:// URL exactly as copied.
  • Authentication: none by default. The URL itself is the key. If Require secret is on, send the secret in the x-webhook-secret header (see Security).
Each request starts one run, and each run adds a row to the Runs tab.

Use the payload in your steps

Every key in the JSON you send becomes a variable under the Custom Webhook group. With the example above: Insert them from the picker rather than typing them. Fields only appear in the picker after you’ve captured a test event, so capture one with the same shape your app will really send. In a step, each key is read exactly as your app sends it, from the top of the JSON: {{Custom Webhook.email}}, not {{Custom Webhook.body.email}}. When Connie builds a webhook workflow in chat, the field names its steps read stay unconfirmed until a test event arrives. Once you’ve sent one, ask Connie to check the fields: its check compares every step with the captured test event and names any field the event doesn’t have, or a field read from a list without saying which item ({{Custom Webhook.items.sku}} stays empty). The payload only fills in the variables you insert. It can’t change a step’s settings, such as where an Api Call sends, who an email goes to, or Require approval, even when a key in it has the same name as a step. Send plain values. Variables belong in your steps, not in the payload: a request whose payload holds a variable (such as {{Custom Webhook.email}} or {{connie.env.API_KEY}}), an expression ({= … =}) or a function (such as lower(...) or now()) is refused with 400 {"error": "Webhook body can't contain variables"}. Nothing runs and it isn’t saved as a test event. The response’s field names the key to fix, for example "data.name". Text that only reads like a function is refused too, such as "call me if (urgent)". Example: a website “Book a demo” form posts name, email and company. The workflow uses Search records in a list or object to look up {{Custom Webhook.email}}, Create or update a record in a list to add the lead to your Inbound list, and Send Slack Message to tell your team.

Responses

If Custom Response is on, your custom response replaces the 200 bodies for a started run and a draft workflow. The DUPLICATE_EVENT response and error responses are never replaced. A GET request to the URL returns a short description of how to call it; it doesn’t start a run.

Send your own response

Turn on Custom Response (“Return a custom JSON body to the webhook caller”). The default is {"status":"ok"}. You can echo values from the incoming request, for example {{body.email}} (“Use {{body.field}} to echo payload values”). If the text isn’t JSON, it’s returned as plain text, which is useful for apps (such as Slack) that verify a webhook by expecting a value echoed back. If any value in your custom response can’t be filled from the request, the default response is sent instead.

Duplicate requests

Many apps retry a webhook if they don’t hear back quickly. To stop the same event running twice, have the sending app include one of these headers with a unique value per event: Idempotency-Key, X-Idempotency-Key, X-Webhook-Id, X-Delivery-Id or X-Event-Id. X-Message-Id and X-Request-Id aren’t used for this, so two different events that share one of them each start their own run. A repeat with the same value doesn’t run, and gets 200 with "code": "DUPLICATE_EVENT". It’s answered with 200, not an error, so the sending app stops retrying. Without one of those headers, an identical request is refused with 409 and "code": "RUN_IN_PROGRESS" while the previous identical run is still running. After that run finishes, it runs again.

Security

By default, anyone who has the URL can start your workflow. The panel reminds you: “Anyone with this URL can trigger this flow. Keep it private.” Don’t put the URL in public web pages or client-side code, and share it only with the systems that need it.

Require secret

To accept only requests from your own app, turn on Require secret in the trigger panel (“Only run when the request sends this secret in the x-webhook-secret header”). Connie creates a secret and shows it under Secret. Copy it, save the trigger, and have the sending app send it in the x-webhook-secret header:
A request without the right secret gets 401 {"error":"Invalid or missing webhook secret"}. It doesn’t start a run and isn’t saved as a test event. The Example request in the panel includes the header once the secret is on.
  • New secret creates a different secret. After you save it, the old one stops working, so update the sending app.
  • Turning Require secret off deletes the secret. Turning it on again creates a new one.
  • Connie doesn’t check signatures (HMAC), and signature headers from the sending app are ignored.
  • Whoever has the URL can only send data. The payload fills the variables in your steps, but it can’t change a step’s settings or read your saved secrets, and a payload that holds a variable is refused (see Use the payload in your steps).
  • Add a Router or Filter Records by condition step early in the workflow to ignore requests that don’t look right (for example, missing a field only your app sends).
  • Duplicating a workflow gives the copy a new webhook URL, with Require secret off. The original keeps its URL and its secret.

Good to know

  • Requests are saved as test events, even in draft and once live. A request is saved only when its fields differ from every test event already saved, and only the 10 most recent are kept. With Require secret on, only requests with the right secret are saved. A request refused for a variable in its payload isn’t saved.
  • Running hours in Workflow settings apply to webhook runs. Outside those hours, requests wait (or are dropped if Queue triggers outside of window is off).
  • Each webhook URL accepts up to 200 requests a minute. More than that gets 429 until the minute has passed, and those requests aren’t saved or run, so have the sending app wait for Retry-After and send them again. Each workflow’s URL has its own limit. A request refused for a wrong secret doesn’t count.
  • Credits are checked before every webhook run. Each run is charged for the paid steps it uses. See Credits.
  • The webhook is the only way to start a workflow from outside Connie, apart from MCP. See Developers.

Troubleshooting

Why: The workflow is in draft, so the request was stored as a test event only. Fix: Run → Set live.
Why: The body isn’t JSON (for example, it’s form-encoded or XML). Fix: Send a JSON body with the header Content-Type: application/json.
Why: A key or value in the payload holds a variable (such as {{name}}), an expression ({= … =}) or a function (such as lower(...)). The response’s field says which one. Plain text that reads like a function, such as if (urgent), counts too. Fix: Have the sending app send the plain value instead. To use the value in a step, insert it there from the variable picker, for example {{Custom Webhook.name}}.
Why: Require secret is on, and the request didn’t send the right secret in the x-webhook-secret header. The secret may have been replaced with New secret. Fix: Copy the Secret again from the trigger panel and send it in the x-webhook-secret header, or turn Require secret off.
Why: The webhook URL got more than 200 requests in the last minute. The extra requests didn’t run and weren’t saved. Fix: Have the sending app wait for the number of seconds in the Retry-After header, then send them again. To send more, spread the requests out, or send several records in one request and go through them with a For each step.
Why: The URL is mistyped, or the Custom Webhook trigger it belonged to has been removed. A duplicated workflow has its own, different URL. Fix: Copy the Webhook URL again from the trigger panel and update the sending app.
Why: The workspace is out of credits, or its balance is below the price of this workflow’s paid steps, so the run didn’t start. Fix: Add credits. See Top-ups.
Why: Either the workflow is in draft (the response says Webhook is inactive, or your custom response hides that), or the request reused a delivery ID that was already received (the response shows "code": "DUPLICATE_EVENT"). Fix: Set the workflow live. For duplicates, make sure each event has its own idempotency value.
Why: The same request body, sent without a delivery ID header, is still running in this workflow. Nothing new ran. Fix: Send it again after that run finishes. To run each request on its own, even when the bodies are identical, send a unique Idempotency-Key header with each one.
Why: The sending app reused the same idempotency or delivery ID, or the events arrived outside running hours with queueing off. Fix: Use a unique ID per event. Check Running hours in Workflow settings.
Why: Without an idempotency header, identical requests are treated as separate events once the first run has finished. Fix: Have the sending app include an Idempotency-Key header.
Why: A value in the custom response couldn’t be filled from this request. Fix: Only echo keys that are present in every request.
Why: No test event has been captured yet. Fix: Open the trigger → Test → Run Test, send a request, then choose Use as test event for Run Once.
Why: The URL was entered with http://. Fix: Use the https:// URL exactly as copied.