Documentation
DocsAdvanced FeaturesWebhook Response Branching
Webhook Response Branching
Branch your workflow based on the response from a send_webhook node. Inspect the HTTP status code or response body fields.
Response Fields
webhook_response.statusCode— The HTTP status code (e.g.,"200","404").webhook_response.body.*— Dot-notation path into the JSON response body (e.g.,webhook_response.body.lead.score).
Webhook Node with Response Branches
{
id: "n1",
type: "send_webhook",
label: "Enrich lead",
webhookUrl: "https://enrichment.example.com/api/lookup",
webhookBody: "{\"email\": \"{{contact.email}}\"}",
webhookResponseBranches: [
{
condition: { field: "webhook_response.body.status", operator: "equals", value: "found" },
nextNodeId: "n2_enriched"
},
{
condition: { field: "webhook_response.statusCode", operator: "equals", value: "404" },
nextNodeId: "n2_not_found"
}
],
nextNodeId: "n2_fallback"
}