Create a Workflow and Trigger It
A 3-step recipe with Novu. We can help you get access.
Recipe · 3 steps
Create a Workflow and Trigger It
with Novu
Create an in-app workflow, then trigger it to a subscriber and verify.
- Create a new active workflow with a single in-app step. Novu returns 201 with the created workflow including its workflowId.
- Trigger the newly created workflow to the subscriber using the returned workflow identifier.
- List notification events filtered to the workflow's trigger identifier and subscriber to confirm the event was produced.
What you'll need to have ready
- workflowId: The unique slug identifier to assign to the new workflow.
- name: Display name of the workflow.
- description: Optional description of the workflow.
- stepName: Name for the single in-app step in the workflow.
- subscriberId: Subscriber id to trigger the new workflow to.
- payload: Custom payload object used to render the workflow.
For your developer
Arazzo workflow novu:create-workflow-and-trigger, 3 operations: WorkflowController_create → EventsController_trigger → NotificationsController_listNotifications. Specs on APIs.io.