Quickstart
Learn how to quickly get started with Novu Framework.
Before you can start integrating Novu into your application, you need to create a Novu account and set up a new application in the Novu Dashboard. This guide will walk you through those steps.
Create a Novu account
Create a new account on Novu Cloud or sign in if you already have an account.
Add the Novu SDK into Your Backend
Our SDKs support most major programming languages, making it easy to get started. Is your preferred language missing? Reach out to us!
Configure Environment Variables
To start, set the NOVU_API_KEY
environment variable in your application.
You can find your public and secret API keys in the Developer section of the Novu dashboard. Since this step is for backend integration, be sure to use the secret key.
For security, always define your API key as an environment variable and avoid committing it to source control.
Create a new Workflow
Trigger a workflow
Each workflow is created with a unique identifier that can be used to trigger the workflow, visit the Trigger page to view the trigger instructions.
Each trigger consistents of 3 main parts:
- Workflow Identifier: The unique identifier of the workflow to trigger.
- Subscriber ID: The unique identifier of the subscriber to trigger the workflow for, this can be a user id, email or any unique identifier.
- Payload: The payload to pass to the workflow, this is optional and can be used to pass additional information to the workflow.
In this example, we’re using the Node.js SDK to trigger the workflow. But the same can be done with any of the SDKs.
Add the trigger snippet to your backend and call the trigger function with the Workflow Identifier, Subscriber ID and Payload.
Execute the trigger call from your backend.
If you have the In-app channel step in your workflow, you should see the notification in the Inbox section of the Novu dashboard.
Promote to production
Novu users logically separated environments to control the roll-out of your notifications. When you’re happy with the way your workflows work and look, you just need to promote them to production to start sending notifications to your real users.
Join the community
If you have any questions or run into issues as you build with our product, we hope you’ll let us know! Email us at support@novu.co, or join our Discord community and we’ll be more than happy to assist you.
Now that you triggered your first workflow, learn more about the advanced features and concepts of Novu.
UI Components
Explore our full-stack UI components libraries for building in-app notifications.
Framework SDK
For more advanced use cases, use our SDK to integrate Novu with your backend codebase.
Multi-tenancy
Manage multiple tenants whithin an organization.
Localization
Manage localized versions of your notification templates.
Local Studio
Use our local studio to design and test your notification templates.
Environments
Manage multiple environments based on your application’s deployment stages.
Was this page helpful?