Skip to main content
In Novu, a topic is a way to group subscribers under a shared label so that you can broadcast a message to many users with a single workflow trigger. This fan-out mechanism removes the need to manage individual subscriber IDs for each notification, streamlining scenarios like product announcements, feature rollouts, or status updates.

Topics identifiers

Each topic is uniquely identified by a topic key, a permanent, internal reference in your system. You can also assign a name to help describe its purpose, for example, “Task Updates” or “Comment Thread Subscribers”. The topicKey must be unique and cannot be changed after creation; Novu enforces this uniqueness behind the scenes. Example: task:taskId or post:postId. Common use cases for topics:
  • Notifying all members of a specific team or project
  • Messaging users who commented on a post
  • Updating subscribers to a specific product or feature

How topics fit into Novu’s model

Novu’s notification system is built around workflows, which are triggered for one or more recipients. Topics act as a special type of recipient, representing a group of subscribers instead of an individual. When you trigger a workflow using a topic:
  • The to field accepts the topic’s key.
  • Novu looks up topic subscriptions on that topic whose Context matches the trigger (exact match).
  • For each matching subscription, Novu evaluates optional JSON Logic conditions against the trigger payload.
  • A separate workflow event is created for each subscriber whose subscription passes.
Topics let you target large groups with a single API call, removing the need to loop through subscribers or send multiple workflow triggers.
Topics don’t replace individual targeting. You can still trigger workflows for specific subscribers or arrays of subscribers when needed.

Topic subscriptions and Context scoping

Adding a subscriber to a topic creates a topic subscription, the subscriber’s opt-in to receive notifications sent to that topicKey. Subscriptions support:
  • JSON Logic conditions: deliver only when trigger payload fields match (for example, payload.tier is premium). Conditions do not support subscriber profile, Context data, or step results. See Manage topic subscriptions.
  • Context scoping: isolate subscriptions per tenant, app, or region using the same Context metadata you pass on workflow triggers.
Context scoping uses exact-match filtering, the same rules as the Inbox: Both the subscription and the trigger must carry the same Context keys and values. Omitting Context on either side means the default (no Context) scope, not a wildcard that matches all Contexts. A subscriber can hold multiple subscriptions on the same topic (up to 10), each with a different identifier, condition, or Context scope. Use the Topics v2 API, @novu/js, or @novu/react to create and manage them.

Dynamic and decoupled grouping

Once a topic is created, you can assign or remove subscribers at any time. Subscribers don’t need to know they belong to a topic, and it doesn’t affect their personal notification preferences. Topics are dynamic and reflect real-time states. For example, a topic might include:
  • Users who are currently watching a post
  • Team members assigned to a project
This makes topics especially useful for modeling dynamic relationships in your application.

Scalability and limits

Topics are designed for high-volume, high-efficiency use cases:
  • Each topic supports up to 100,000 subscribers.
  • A separate workflow event is created for each subscriber when a workflow is triggered to the topic

Autogenerated topics

Novu supports on-the-fly topic creation. If you attempt to add subscribers to a topic key that doesn’t exist for the selected environment and organization, Novu will automatically create a new topic named Autogenerated-<TOPIC_KEY> and assign the subscribers to it. This auto-generated topic can then be renamed and managed just like any other topic created manually.
Topics can be managed from Novu dashboard or using Topics APIs

Trigger workflow

As mentioned above, a workflow can be triggered to a topic in the same way as it is triggered to subscribers.

To a single topic

To trigger a workflow to a topic, use to field with type Topic and topicKey.

To multiple topics

to field also accepts array of topics. This is useful when you want to trigger a workflow to multiple topics at once.

Exclude actor

When a workflow is triggered to a topic, notification is sent to all subscribers present in the topic. However, you can exclude a specific subscriber from receiving the notification by using the actor field. Here actor is the subscriberId of the subscriber you want to exclude.

Explore the topics APIs

These are commonly used topics APIs. Explore all topics APIs on topics api reference page.

Create a topic API

Update a topic API

Create topic subscription API

List topic subscriptions API

List all topics API

Manage topic subscriptions

Check subscriber subscription API

Frequently asked questions

Below are some of the most frequently asked questions about topics:
No. Topics only define delivery groups. Each subscriber’s individual notification preferences remain intact.
Conceptually, yes. Topics group users to receive shared messages. However, topics are more dynamic and integrated into your application logic.
Yes. Subscribers can be members of any number of topics. This allows overlapping targeting strategies (for example, task-updates, project-X, and admin-notifications).
Topic keys must be unique within each environment. You can reuse the same key (for example, feature-release) in different environments like staging and production.
The workflow is processed, but no notifications are delivered and, hence, this trigger is not counted for billing.
A topic subscription is how a subscriber joins a topic. It stores the subscriber’s opt-in, optional JSON Logic conditions (evaluated against the trigger payload), and optional Context scope. When you trigger to a topic, Novu fan-out runs through matching subscriptions, not a flat list of subscriber IDs. See Manage topic subscriptions.
Yes. Novu uses exact-match Context filtering. A subscription created with { tenant: "acme-corp" } is included only when the workflow trigger passes the same Context. Triggers without Context do not reach Context-scoped subscriptions, and vice versa. See Context-scoped subscriptions.
No. Subscribers filtered out by Context mismatch or JSON Logic conditions do not get a workflow run and are not counted toward usage. Only subscribers whose subscriptions pass create a billable workflow run. See Billing and workflow runs.