Skip to main content

The Tool channel delivers a payload from a workflow to an operational system. Use it to page on-call, open an incident, or POST JSON to an endpoint you control.

It is a channel step, like email or SMS. Novu sends through a Tool integration in the Integration Store. It is not a replacement for step.custom, which runs arbitrary code in your bridge and returns structured results to later steps.

Note

Connect a Tool provider before triggering. PagerDuty, Opsgenie, and Grafana route per subscriber via channel endpoints. Tool webhook can use a shared URL (static) or per-subscriber URLs (dynamic).

When to use step.tool#

Use step.tool whenUse step.custom when
You want Novu to deliver to PagerDuty, Opsgenie, Grafana, or a webhookYou need to fetch or transform data in your bridge
Delivery should use a configured integration and Activity feedThe result must be reused in later steps
You need provider-specific fields (severity, tags, extra JSON keys)You are calling an API that has no Tool provider

A common pattern is to fetch in step.custom, then page with step.tool using that result.

Providers#

ProviderWhat body becomesSetup
PagerDutyIncident payload.summaryPer-subscriber Events API v2 routing key
OpsgenieAlert message (truncated at 130 characters)Per-subscriber API key
GrafanaAlert group title (truncated at 1024 characters)Per-subscriber webhook URL
Tool webhookRequest JSON contentStatic URL on the integration, or dynamic subscriber endpoints

If a subscriber has no channel endpoint for an endpoint-routed provider (or no dynamic webhook URLs), Novu marks the Tool step skipped for that subscriber. Other subscribers on the same trigger are unaffected.

Define a tool step#

The resolver must return a body string. That string is the default content sent to the provider.

Workflow with payload#

Trigger the workflow as usual. Delivery uses the subscriber’s Tool endpoints for that environment.

Provider overrides#

Use the providers option to pass fields the shared body schema does not cover. Keys are Tool provider IDs: pagerduty, opsgenie, grafana, and tool-webhook.

Only the override for the provider that sends is applied. You can define several; unused ones are ignored. Each key applies to every integration of that provider. A Tool step authored in the dashboard can store a separate override for one integration.

PagerDuty defaults severity to critical and source to novu when you omit those fields. See incident payload defaults.

You can also use _passthrough to merge extra body, headers, or query into the underlying provider request. See provider overrides.

Step controls#

Expose copy that non-developers can edit in the dashboard without changing code.

After you sync the workflow, the dashboard renders a body field for this step. Payload data still comes from novu.trigger. Learn more about controls.

Skip the step#

Skip delivery from previous-step results, payload flags, or subscriber data.

skip runs at send time, not during dashboard preview. See skip.

Channel preferences#

Disable Tool for a workflow (or leave it subscriber-controlled) with preferences.channels.tool:

Output#

The resolver returns { body: string }. The step does not return a result, so you cannot branch later steps on whether the provider accepted the request.

See the Tool step reference.