Skip to main content

Automation Webhook

The Automation Webhook turns any system that can send an HTTP request into a trigger for a NudgeBee workflow. CI pipelines, deployment tools, internal scripts, ticketing systems and provider alerting can all start an automation this way, and the request body is available to every task in the run.

In saved workflow JSON this integration type appears as workflow_webhook.

info

This is different from the provider webhooks on this page. Datadog, Dynatrace and the rest parse a known alert format and create an enriched event or incident. An Automation Webhook parses nothing — it runs a workflow and hands it the raw payload.


How It Works​

External system (CI, script, alerting tool)
│
▼
HTTP POST to the generated webhook URL
│
▼
NudgeBee matches the URL to a workflow_webhook integration
│
├── Evaluates the trigger's filter expression (if set)
└── Starts the linked workflow, exposing the body to tasks as Inputs.webhook_json (parsed) and Inputs.webhook_payload (raw)

Step 1: Create the Integration​

Create the integration first; the workflow's Webhook trigger then picks it.

From the integrations page — Navigate to Admin > Integrations > Webhooks, select Automation Webhook, then click Add Workflow Webhook Account.

The Automation Webhook tile in the Webhooks tab of the integrations catalog

  • Name of Workflow Webhook * (Required)
    • The integration name, picked in the automation's Webhook trigger. Use letters, numbers, dots, hyphens and underscores — the automation's trigger panel rejects other characters.
    • Name it after the source system, e.g. github_ci_webhook or jira-service-desk-wb.
  • Select Account(s) * (Required)
    • One or more NudgeBee accounts this webhook serves. Selecting several lets a single endpoint fan out across clusters.

In the workflow editor — Add a Webhook trigger and pick the integration in its Webhook Integration field.

The Automation Webhook form, which takes only a name and an account

Step 2: Copy the Webhook URL​

The URL is generated once the integration is linked to a workflow, and is shown in that workflow's Webhook trigger configuration (it ends in /api/webhooks/workflow?token=…) — click the copy icon beside it. There is no URL to copy on the integrations page itself, because the endpoint is bound to the workflow, not to the integration alone.

Step 3: Configure the Sender​

Point your external system at the copied URL with an HTTP POST and a JSON body. Any JSON shape is accepted; NudgeBee does not require a schema. The token in the URL authenticates the request; no extra header is needed.

Step 4: Filter Which Requests Run the Workflow​

A webhook that fires on every request usually runs too often. Set a Filter Expression on the trigger — a template expression evaluated against the request body, which runs the workflow only when it renders to exactly true (any letter case; 1 does not match). In the filter, the parsed body is available as webhook_payload, and the expression is limited to 500 characters.

ExpressionBehavior
{{ webhook_payload.action == "opened" }}Only when the payload's action is opened
{{ webhook_payload.repository.name == "my-repo" }}Only for a specific repository
{{ webhook_payload.status == "failure" }}Only for failed CI runs

See workflow triggers for the full trigger reference.


Using the Payload in Tasks​

In task parameters, the parsed JSON body is Inputs.webhook_json and the raw body is the string Inputs.webhook_payload. Read fields from the parsed body — for example {{ Inputs.webhook_json.repository.full_name }} in a notification task, or as an input to a ticket task. See templating for expression syntax.


Verify the Integration​

  1. Save the workflow with its Webhook trigger linked, so the URL is generated.

  2. Send a test request from your machine or the sending system:

    curl -X POST '<generated-webhook-url>' \
    -H 'Content-Type: application/json' \
    -d '{"action":"opened","repository":{"name":"my-repo"}}'
  3. Open the workflow's run history. A run should appear within a few seconds.

  4. Open the run and confirm the tasks that read Inputs.webhook_json received the fields you sent.

tip

Test with the filter expression removed first. If the run appears without a filter and not with one, the expression is the problem, not the endpoint.


Troubleshooting​

SymptomLikely CauseFix
No webhook URL is shownThe integration is not linked to a workflow yetSave the workflow with the integration selected in its Webhook trigger; the URL appears afterwards.
Request accepted, workflow never runsThe filter expression did not render exactly true (1 doesn't count)Remove the filter and retry. Then check the expression against the payload you actually send — a missing key renders empty, not true.
The trigger panel rejects the integration nameName contains a space or another disallowed characterUse only letters, numbers, dots, hyphens and underscores.
Tasks see empty Inputs.webhook_json fieldsThe request had no JSON body, or the wrong content typeSend Content-Type: application/json with a JSON object body.
Workflow runs twice per eventTwo integrations, or two workflows, are bound to the same senderCheck for a second integration (for example an older wf-... one) bound to the same sender, and disable the one you do not want.
Requests never arriveThe NudgeBee URL is not reachable from the senderConfirm the endpoint is reachable from the sending system's network.