Overview
Instructions
Overview
Instructions
Overview
Building a notification system shouldn't be hard. With Novu, our goal is to simplify notifications and provide developers with the tools to create meaningful communication between the system and its users. Add a real-time notification center to your app deployed on Vercel, or send multi-channel notifications with a single API call.
Instructions
Create your account
npx novu dev
Define a workflow in Next
// /pages/api/novu.tsimport { serve } from '@novu/framework/next';import { workflow } from '@novu/framework';
const testWorkflow = workflow('sample-workflow', async ({ step }) => { await step.email('email-step', async () => { return { subject: 'Hello', body: 'World' } })});
export const { GET, POST, OPTIONS } = serve({ workflows: [testWorkflow] });
This integration will add two variables:
NOVU_CLIENT_APP_ID
Used for showing the Inbox componentNOVU_SECRET_KEY
Used to trigger events