← 返回列表
全部 Skill›工具 Tools›novu-design-workflow

novu-design-workflow

作者 @novuhq · 语言 en
Design notification workflows the Novu way — choose channels, set severity, decide when a workflow is critical, configure digests, and route based on subscriber state. Applies to BOTH dashboard-authored and code-first (`@novu/framework`) workflows. Use when planning a new workflow, deciding which channels to include, picking severity, configuring digest behavior, or matching a use case (order confirmation, payment failed, account suspended, comment, trial expiring, password reset, webhook fan-out, fetch-then-notify) to a proven template.
工具 Tools生产力工具通用访问网络待翻译
存储库
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
40,425
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Design Workflow

Design rules for any Novu workflow — independent of whether you author it in the Dashboard (no-code) or in code with @novu/framework. The decisions here (channels, severity, critical, digest, conditions) are the same on both surfaces; only the syntax differs.

Authoring in code? Pair this skill with framework-integration/ for workflow(...), step.*, controlSchema, and Bridge Endpoint setup.
Authoring in the Dashboard or via the Novu MCP? After designing here, fill in step content (subject, body, editorType, headers, conditions) using dashboard-workflows/.

When to use this skill

Use it whenever you need to decide what a workflow should look like:

  • "Design an order-confirmation workflow"
  • "Which channels should I send for a payment failure?"
  • "Make this notification critical"
  • "Should this be digested?"
  • "Add a fallback for offline subscribers"
  • "What's the right template for X?"

Do not use it for: triggering an existing workflow (trigger-notification/), authoring code wrappers (framework-integration/), or rendering severity in the UI (inbox-integration/).

Severity & Critical

Two independent dials. Most workflows set neither.

| Dial | Values | Default | Effect |

| ---------- | ------------------------------- | ------------ | ------------------------------------------------------------------------------- |

| severity | LOW / MEDIUM / HIGH | unset | Visual prioritization in the Inbox (color, glow); informs digest skip rules. |

| critical | true / false | false | Bypass subscriber preferences, skip digest, no delays, all available channels. |

Rules of thumb:

  • Leave severity unset for most workflows. Only set it when visual prioritization is needed.
  • HIGH = "deal with this today" (payment failed, trial expiring tomorrow).
  • critical: true = "deliver regardless of preferences" (account suspended, security alert, password reset).
  • critical: true ⇒ digest is automatically skipped and channels deliver immediately.

See references/severity-and-critical.md for the full behavior matrix and the readOnly vs critical distinction.

Channel Selection

If the user specified channels

Use only those channels. Do not add fallbacks. Do not add extras. If the requested channel isn't configured in the organization, add it anyway because the user explicitly asked for it.

"Send a push notification when the order ships" → one push step. Nothing else.

If the user did NOT specify channels

Pick from channels configured in the organization, in this priority order, up to 3 channels:

In-App  >  Email  >  Chat  >  Push  >  SMS

| Channel | Use it for | Skip it when |

| ------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |

| In-App | Default for in-product content. Always include if the user is in your product. | The recipient can't see it (password reset, OTP, pre-signup) |

| Email | Receipts, documentation, async communication. Default fallback after In-App. | Pure conversational pings inside the product |

| Chat | If configured AND severity >= MEDIUM. Slack/Teams for ops & internal flows. | Marketing or low-severity nudges |

| Push | Fallback when subscriber is offline but needs immediate awareness. | Subscriber is online (use In-App instead) |

| SMS | Last resort. Only when no other channel works (true emergencies, OTP, regulatory). | Anything that fits in Email or Push |

See references/channel-selection.md for the full decision tree.

Digest Defaults

When you add a digest step, default to:

  • type: "regular"
  • look-back window: 5 minutes
  • digest time: 1 hour
  • key: subscriberId (and +threadId for conversational flows)

Skip the digest when:

  • severity: HIGH, or
  • critical: true

See references/digest-defaults.md for digest key composition and conversational examples.

User-State Logic

Adapt routing based on whether the subscriber is online:

| State | Behavior |

| -------- | ------------------------------------------------------------------------------------------------------- |

| Online | Send In-App immediately. Skip Push. Delay Email/Chat based on severity. |

| Offline | Use Push or Chat to get attention. |

Default delays:

  • B2B apps → next work hour
  • **
评论
Nnovuhq
novuhq
novuhq/novu
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@novuhq
所属大类工具 Tools / 生产力工具
国内可用性通用
最近源活动—
风险提示访问网络
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。