App Builder

Notifications

Notifications - Opulent documentation

Notifications

Keep users and teams informed — in-app, email, Slack, and webhook notifications

What it is

Notifications lets you add real-time alerts and messaging to your application — triggered by user actions, system events, or scheduled conditions.


Notification Types

Email Notifications

"Send a welcome email when a new user signs up"
"Email the admin when a new enterprise plan subscription starts"
"Send a payment failure email 24 hours after a failed charge"
"Email weekly usage summaries to all Pro users every Monday at 9 AM"

In-App Notifications

"Add an in-app notification bell to the header. Show notifications for:
team member mentions, task completions, and system alerts."
"Show a toast notification when an import job completes — success or error"

Slack Notifications

"When a new user signs up via enterprise plan, post to #sales with
their company, plan, and MRR contribution"
"Alert #on-call in Slack when error rate exceeds 1% for 5 minutes"

Webhook Notifications

"Fire a POST to https://api.yourcompany.com/events when a subscription
starts, upgrades, downgrades, or cancels. Include the user object and event type."

Trigger Conditions

TriggerExample
User actionSignup, login, payment, form submission
State changeStatus changes from 'pending' to 'active'
ThresholdUsage exceeds plan limit
Time-based3 days before trial ends, weekly summary
System eventError rate spike, deployment success/fail
External eventStripe webhook received, GitHub PR opened

Email Templates

"Design the welcome email with our logo, a personalized greeting,
a 3-step getting-started guide, and a CTA to the dashboard"
"Create a trial-expiring email that shows: days remaining, their current
usage stats, and a prominent upgrade CTA"

Opulent generates the email HTML, registers it as a template, and wires the send trigger automatically.


Common Questions

What email provider is used? Resend by default (reliable, developer-friendly). Can be swapped to SendGrid, Postmark, or any SMTP provider.

Can I customize email templates after they're created? Yes: "Update the welcome email template — change the headline to...".

Can notifications be batched to avoid flooding users? Yes: "Batch all activity notifications and send a daily digest at 8 AM instead of sending each one immediately".

Can users control their notification preferences? Yes: "Add a notification preferences page where users can toggle each notification type on or off".