Skip to main content

Examples Cookbook

Real-world workflow patterns built with @novu/framework.

Multi-Step Onboarding

Send a welcome email immediately, wait a week, then nudge with an in-app reminder if the user opted in.

Skip Email if In-App Was Read

Send an in-app notification, wait 6 hours, then send an email — but skip the email if the in-app was read.

Daily Digest with React Email

Aggregate all triggers within 24 hours into a single email.

Cron-Based Digest

Send a single morning digest at 9am UTC every day.

Custom Digest Key (Per-Project)

Aggregate events by subscriberId + projectId instead of just subscriberId.

Two-Stage Digest with LLM Categorization

A workflow can trigger another workflow via step.custom. Use this to chain digests when you need two windows.

Skip Delay for Premium Users

Premium users get the email immediately; free users wait 24h.

Branch on Custom Step Result

Fetch a task from the database, then conditionally email a reminder.

Slack Provider Override (Block Kit)

Use the chat step but customize the Slack message with Block Kit.

SendGrid CC + Provider Passthrough

Critical Workflow (Subscribers Cannot Disable)

In-App Only by Default

In-app is on; subscribers can opt into other channels via Preferences UI.

Locale-Aware Workflow with i18next

See translations.md for the full i18next setup.