This guide shows you how to create a task management app with OTP verification, real-time in-app notifications, email notifications, and user preferences using SuprSend’s React SDK.Documentation Index
Fetch the complete documentation index at: https://docs.suprsend.com/llms.txt
Use this file to discover all available pages before exploring further.

Task Board
Kanban board build in react with drop-in Inbox and Preference Centre.
Try it out | GitHub code repository
Try it out | GitHub code repository
Part 1: Setting Up the Foundation
Project Initialization
Create a new React app:Environment Configuration
Get your API keys from the SuprSend Dashboard and add them to.env:
The API key should be kept secure. In production, use a backend API to trigger workflows. See API key management for best practices.
Initialize SuprSend Provider
Wrap your app withSuprSendProvider. See the React SDK setup guide for complete initialization:
Part 2: Add Login flow with OTP email verification
With SuprSend, you can implement secure OTP verification entirely from the frontend—no backend required.The Flow
- Generate a 6-digit OTP in your React app
- Trigger a SuprSend workflow to send the OTP via email
- User enters the OTP to complete verification
- SuprSend automatically creates or updates the user profile
Setting Up the OTP Workflow
In the SuprSend dashboard, create:-
Email Template with slug
otp_verification- Subject:
Your OTP Verification Code - Body: HTML template with
{{otp}}variable - See email template guide for details
- Subject:
-
Workflow with slug
otp_verification- Category:
Transactional(important for deliverability) - Trigger: API Trigger
- Delivery Node: Email channel
- Learn about notification categories
- Category:
Implementing the OTP Flow
Send OTP when user submits their email:Part 3: Add Popover Inbox and Toast Notifications
SuprSend’s React SDK gives you a production-ready inbox component in a single line of code.The Inbox Component
Add theInbox component to your header:
Toast Notifications
Show toast notifications when new notifications arrive:Part 4: Setting up Notifications in SuprSend on task actions
Instead of making separate API calls for email and in-app notifications, define a workflow once and SuprSend handles delivery across all channels automatically.Creating Workflows on SuprSend dashboard
Create two workflows in the SuprSend dashboard: 1. Task Created Workflow- Slug:
task_created - Category:
Transactional(or create custom categorytask-updatesto handle preferences) - Delivery Nodes: Both Email and Inbox channels
- Template Variables:
{{task_title}},{{task_id}},{{task_priority}},{{task_description}}
- Slug:
task_status_changed - Category:
Transactional(or create custom categorytask-updatesto handle preferences) - Delivery Nodes: Email and Inbox
- Template Variables:
{{task_title}},{{old_status}},{{new_status}},{{task_id}},{{task_description}}
Setting up workflow triggers in backend code
When a task is created or status changes, trigger the workflow:Part 5: Add NotificationPreference Centre
SuprSend provides a complete preference system out of the box. Preferences are automatically evaluated when you trigger workflows—no manual checks required.Part 6: Building the Kanban Board
The Kanban board is a standard React component with drag-and-drop functionality. Integrate workflow triggers:Part 7: Production Deployment
Pre-Deployment Checklist
- ✅ All API keys are in environment variables
- ✅ Workflows are committed (not in draft mode)
- ✅ Templates are published
- ✅ Error handling is in place
- ✅ User preferences are set correctly
Deploying to Vercel
- Build the app:
npm run build - Deploy via CLI:
vercel --prod - Set environment variables in Vercel dashboard
- Configure routing with
vercel.json:
Post-Deployment Verification
- Test OTP email delivery
- Verify inbox notifications appear
- Check email notifications are received
- Test preference changes persist
- Monitor SuprSend dashboard for delivery logs
What’s Next?
- Explore the React SDK documentation for advanced customization
- Learn about workflow builder for complex notification logic
- Check out preference management for granular user control
- Review the API reference for programmatic workflows
- Use the ready-to-use Prompts for AI-assisted development