Skip to main content

Notification

Category: Processing

The Notification activity sends a webhook to an external endpoint, typically to announce that a transaction reached a milestone (for example, exported or ready for review) and to provide download links.

Settings​

The step's panel has four blocks and its exits, all folded when it opens. Folded, each block says what it holds, in grey where a value is what a new step starts with and in black where someone changed it. The switch in the panel's header turns the step off.

A step added to a workflow by hand starts with every value in the tables below. A new project's Notification step differs in one, shown in black: it has no events, so it sends nothing until you set it up.

Webhook. Where the notification goes. Folded, the block shows only the URL's host, since a webhook URL often carries its token in the path, and says Signed and how many custom headers there are without showing them.

SettingWhat it doesA new step starts with
Webhook URLThe endpoint that receives the request. It must resolve to a public host: private and loopback addresses are refused unless the deployment allows private webhook targets. Until it is set, the step sends nothing, the block and the canvas warn, and the workflow cannot be published while an event is on.None
HTTP methodPOST or PUT.POST
Signing secretIf set, the body is signed with HMAC-SHA256 and the digest is sent as X-DocAI-Signature: sha256=..., so the receiver can check it came from DocAI Fabric. It is typed into a password field.None (unsigned)
Custom headersExtra headers sent with every request, such as an Authorization header the receiver needs. Their values are typed into password fields. Two headers cannot share a name.None

When it runs.

SettingWhat it doesA new step starts with
Reached this stepSends a notification when the transaction reaches this step. Place the step after Export so the download links are ready.On
Transaction failedSends a notification when the transaction fails at any step, before or after this one.On

With both off the step sends nothing, and once it has a URL the block and the canvas warn about it.

Options.

SettingWhat it doesA new step starts with
Event nameThe event value in the payload of a reached notification (for example transaction.exported). Give each Notification step its own when a workflow has several. A failure notification is always transaction.failed.Empty, sent as transaction.step_reached
Address in download linksThe start of the download links in the payload. Set it when the receiver reaches this deployment on another address than its own.Empty, this deployment's address
Fail the step when delivery failsOff, a delivery that fails is logged and the transaction goes on. On, the step fails, and If the step fails in Exits decides what happens next.Off
Send from test runsTest runs on the draft (in the Playground, an evaluation or Memory) call the webhook too. Turn it off when the URL is the system your production work goes to and test results should not reach it: only production transactions then call it, and a test run's Activity Log says the webhook was not sent.On

Timing.

SettingWhat it doesA new step starts with
Timeout (s)Seconds to wait for the receiver to answer, from 1 to 120.15
AttemptsDeliveries tried before giving up, from 1 to 10; 1 means no retry.3
Backoff (s)Seconds before the first retry, from 0 to 60; it doubles each attempt.2

Exits. Success, and If the step fails: what happens when the step fails, which it does on a delivery error only while Fail the step when delivery fails is on.

The panel's JSON view shows every setting but the signing secret and the custom headers, which keep their values when you save there. Change them in the Webhook block.

Notes​

  • With Send from test runs on, trying a draft posts test results to the same URL production will use. When you publish, the dialog lists the Notification steps where it is on, so you can turn it off before production starts.
  • The webhook host must resolve to a public address.
  • See the API webhooks reference for payload details.