Create a Novu account
Create a Novu account or sign in to access the Novu dashboard.Add the notification Inbox to your app
Import Novu’s built-in<Inbox /> component into your layout file and place it in the navbar:app/layout.tsx
applicationIdentifier: On the Novu dashboard, click API Keys, and copy your unique Application Identifier.subscriberId: This represents a user in your system, usually the user ID from your database. For testing, you can use the auto-generated subscriberId from your Novu dashboard. You can locate it under the Subscribers tab on the Novu dashboard.
If you pass a
subscriberId that does not exist yet, Novu will automatically create a new subscriber with that ID.Run your application
Start your development server:Trigger your first notification
In this step, you’ll create a simple workflow to send your first notification via the Inbox component. Follow these steps to set up and trigger a workflow from your Novu dashboard.- Go to your Novu dashboard.
- Click Workflows.
- Click Create Workflow and then enter a name (e.g., “Welcome Notification”).
- Click Create Workflow to save it.
- Click the Add Step icon in the workflow editor and then select In-App as the step type.
- In the In-App template editor, enter:
- Subject: “Welcome to Novu”
- Body: “Hello, world!”
- Once you’ve added the subject and body, close the editor.
- Click Trigger.
- Click Test Workflow.
View the notification in your app
Go back to your Next.js app, then click the bell icon.You should see the notification you just sent from Novu! 🎉Next steps
Styling
Customize the look and feel of your Inbox to match your application’s design.
Inbox and preferences UI components
Explore our full-stack UI components libraries for building in-app notifications.
Build Workflow
Design and manage advanced notification workflows.
Multi Tenancy
Manage multiple tenants within an organization.