A workflow holds the entire flow of steps (nodes) that are sent to the subscriber. This is where all the different channels are tied together under a single entity.

Structure

A workflow acts as the blueprint for the notifications that will be sent. This is where all the different channels, filters, rules and actions are tied together under a single entity.

Workflow Components

1

Name and Identifier

Every workflow will have a name and trigger identifier. The workflow trigger identifier is used to uniquely identify each workflow. Two workflows can have same name but always have different trigger identifiers.

2

Trigger

The Trigger refers to an event or action that initiates the workflow. It signifies a call to the Novu API with a specified workflow trigger identifier, along with the necessary payload data that the workflow content will utilize.

3

Steps

Within the Novu framework, steps are categorized into various types, each of which is linked with at least one corresponding action:

Channel Steps

  • Email (examples include Sendgrid, Postmark)
  • Inbox (such as feeds, toasts, banners)
  • Push (such as APNS, FCM)
  • SMS (examples include Twilio, Telnyx)
  • Chat (such as Slack, Microsoft Teams, and Discord)

Action Steps

  • Delay (to pause the workflow for a specified duration)
  • Digest (to group multiple notifications into a single message)
  • Custom (to execute custom logic like calling an HTTP API, database query, etc.)

Execution of Workflow Steps

Once a workflow is initiated by its trigger, the steps within the workflow are executed in a specific sequence. This sequential execution ensures that each step is completed before the next one begins, maintaining a controlled and orderly flow of the notification process. Here’s what you need to know about this process:

Each step in the workflow is activated one after the other, in the order they are listed within the workflow. This method ensures that each step is given the necessary attention and that dependencies or prerequisites of later steps are adequately met. Sequential execution provides a predictable and reliable workflow process, ensuring that messages are sent out in an orderly manner and that each step’s output can appropriately influence subsequent steps.


Read more about building workflows here.

Was this page helpful?