๐Ÿ‡ฌ๐Ÿ‡ง EN
๐Ÿ‡ฎ๐Ÿ‡น IT

โ†ฉ๏ธ Webhook Response

Returns a custom HTTP response to the caller that initiated the workflow via a Webhook Trigger. Use this node when you want to send a meaningful response back to the webhook sender instead of the default empty 202 response. The workflow continues executing after the response is sent.

Category: Notifications & Messaging  ยท  Type identifier: webhook_response

Overview

When a workflow is triggered by a Webhook Trigger, Flusso normally returns a default 202 Accepted response immediately as the run is queued. The Webhook Response node lets you override this: it sends a custom response body, status code, and headers back to the caller at the point in the workflow where you place the node.

This is useful when the webhook sender expects a meaningful reply โ€” for example, a payment provider expecting a 200 OK to acknowledge receipt, or an external system expecting a JSON object containing a processed result. Because the workflow continues executing after the response is dispatched, you can acknowledge the caller quickly and then carry on with slower asynchronous processing steps.

One response per workflow. Only one Webhook Response node should be placed per workflow. If you place it inside a branch, only the branch that executes will return a response.

Configuration

FieldStatusDescription
Status Code Required HTTP status code to return, e.g. 200, 201, 400. Default: 200.
Body Optional The response body. Can be a JSON object, plain text, or {{ variable }} reference. Defaults to empty.
Content Type Optional The Content-Type header. Default: application/json.
Headers Optional Additional response headers as key-value pairs.

Output Data

After the response is dispatched, the following fields are available on the step output:

FieldTypeDescription
sentbooleanTrue once the response has been dispatched.
statusnumberThe status code that was sent.
{{ step_key.output.sent }} {{ step_key.output.status }}

Example Usage

  1. Add a Webhook Trigger node as the workflow trigger. A payment provider will POST event data to this URL.
  2. Add a Logic Gate node (step key: validate) that verifies the request signature from {{ trigger.output.headers.x-signature }}.
  3. On the true branch, add a Webhook Response node. Set Status Code to 200 and Body to:
    { "received": true }
    The payment provider receives an immediate acknowledgement.
  4. Add further steps after the Webhook Response node to process the payment asynchronously โ€” update the database, send a confirmation email, trigger downstream workflows โ€” without keeping the payment provider waiting.

Tips & Notes

Related Nodes