Webhook Callback
POST the final result to a caller-provided callback URL.
About this Node
Delivers an outbound HTTPS POST notification carrying workflow data (`entire_state`, `specific_key`, or `custom_template`) to an external webhook endpoint with Secrets Vault header authentication. Unlike terminal output nodes, Webhook Callback is non-terminal (`IsTerminal = false`) and exposes an optional output port (`1`) so downstream nodes can inspect `{response_state_key}` and `{response_state_key}_status`.
Ports & Branches
inPort 0Inbound execution flowoutPort 1Optional downstream continuation after callback deliveryHow this Node Reads Data
| Input | Access | Field | Example | Description |
|---|---|---|---|---|
| Callback URL Template | {{Template}} | url |
https://hooks.example.com/events/{{tenant_slug}} |
Interpolates `{{key}}` placeholders into the destination HTTPS webhook URL. |
| Payload Source / Key | State Key | payload_key |
summary |
When `payload_source` is `specific_key`, sends the value stored under `payload_key`. |
| Custom Payload Template | {{Template}} | payload_template |
{"text": "Workflow finished for {{order_id}}: {{summary}}"} |
When `payload_source` is `custom_template`, interpolates `{{key}}` placeholders into the outbound body. |
State Keys Written (Outputs)
| Key Pattern | Type | Role | Description |
|---|---|---|---|
{response_state_key} |
string |
Primary | Raw HTTP response text returned by the webhook destination (default key `webhook_response`). |
{response_state_key}_status |
integer |
Secondary | HTTP status code returned by the webhook destination (e.g., `200`, `202`). |
Tips & Best Practices
- Only HTTPS URLs are permitted, and private/internal network targets are blocked automatically.
- Defaults to 1 attempt (no auto-retry) to prevent duplicate outbound deliveries; override under Resilience & Retries if your endpoint is idempotent.
- For full HTTP verb control (`GET`/`PUT`/`PATCH`), query params, or `FileRef` downloads, use HTTP Request (`action_http`).
Commonly Paired With
Settings Parameters (8)
Configuration schema synchronized with the workflow catalog
| Field | Type | Default | Allowed Options | Description |
|---|---|---|---|---|
url |
string |
"" |
— | The URL to POST the request to (supports {key} context interpolation) |
content_type |
string |
application/json |
application/json, application/x-www-form-urlencoded, text/plain | HTTP Content-Type header |
payload_source |
string |
entire_state |
entire_state, specific_key, custom_template | Where to source the POST request body |
payload_key |
string |
"" |
— | State key to source payload from (if payload_source is specific_key) |
payload_template |
string |
"" |
— | Custom payload template (if payload_source is custom_template) |
auth_header |
string |
Authorization |
— | The header name for the authorization key |
auth_prefix |
string |
Bearer |
— | Prefix prepended to the key in the header (e.g. 'Bearer ') |
response_state_key |
string |
webhook_response |
— | State key to store the response body (optional) |
Slack / Chat Notification via Custom JSON Template
Post a concise alert message to a team channel using `custom_template` and continue downstream to log completion.
Node Configuration
{
"Id": "output_webhook_1",
"Type": "output_webhook",
"Config": {
"url": "https://hooks.example.com/services/alerts",
"content_type": "application/json",
"payload_source": "custom_template",
"payload_template": "{\u0022text\u0022: \u0022Ticket {{ticket_id}} routed to {{queue}}\u0022}",
"auth_header": "Authorization",
"auth_prefix": "Bearer ",
"response_state_key": "notify_response"
}
}Sample Input State
{
"ticket_id": "TKT-404",
"queue": "billing"
}Expected Output State
{
"notify_response": "ok",
"notify_response_status": 200
}Tip: Webhook Callback is non-terminal: you can chain an `output_return` or `dataset_write` node after port `1`.
Forward Entire Workflow State to Partner System
Send all clean workflow state keys (`entire_state`) as JSON with a custom `X-Webhook-Token` header.
Node Configuration
{
"Id": "output_webhook_1",
"Type": "output_webhook",
"Config": {
"url": "https://partner.example.com/callbacks/order-complete",
"content_type": "application/json",
"payload_source": "entire_state",
"auth_header": "X-Webhook-Token",
"auth_prefix": "",
"response_state_key": "partner_ack"
}
}Sample Input State
{
"order_id": "ORD-88",
"status": "fulfilled"
}Expected Output State
{
"partner_ack": "{\"received\":true}",
"partner_ack_status": 202
}