Workflows
Workflows are at the core of responding to events in your system with notifications. Novu Framework enables you to declare type-safe, validated, and version-controlled Novu Workflows with code.
Introduction
The most basic Workflow to send a notification in response to an event looks like:
Just-in-time data fetching
You can add any custom logic into your steps that you need. Maybe you’d like to fetch some information about your new sign-up from somewhere else during the Workflow execution. You can achieve it with the following changes:
We call this just-in-time notification data fetching. It allows you pull in data from the relevant sources during the Workflow execution, removing the need to store all of your subscriber data in Novu.
Multi-step workflow
Now, what if you wanted to send another update to the same new user in 1 week? But, you don’t want to send the follow-up if the User opted out. We can add more steps to the Workflow to achieve this.
With this simple Workflow, we:
- Sent a new signup email
- Waited 1 week
- Sent an in-app follow-up notification
You should now have a grasp of the flexibility that Novu Framework offers.
Continue your reading in Steps to find out the other channels and actions you can use with Novu Framework.
Workflow Interface
Was this page helpful?