In-App Channel
Add real-time in-app notifications to your Enbbox workflows. Define in-app notification content, action buttons, and avatar in TypeScript.
In-App Step
await step.inApp("new-comment", async () => ({
subject: "New comment on your post",
body: `${payload.authorName} commented: "${payload.comment}"`,
avatar: payload.authorAvatar,
redirect: {
url: `/posts/${payload.postId}`,
},
primaryAction: {
label: "View Comment",
redirect: { url: `/posts/${payload.postId}#comment-${payload.commentId}` },
},
secondaryAction: {
label: "Mark as Read",
},
}));In-App Options
| Option | Type | Description |
|---|---|---|
subject | string | Notification title |
body | string | Notification body text |
avatar | string | Avatar image URL |
redirect | object | Click-through URL |
primaryAction | object | Primary CTA button |
secondaryAction | object | Secondary CTA button |
Display
In-app notifications appear in the <Inbox /> component. See Inbox Overview for integration details.
Email Channel
Send email notifications using the Enbbox Framework. Configure email templates, HTML content, and subject lines in TypeScript workflow definitions.
Push Channel
Send push notifications via Firebase Cloud Messaging and APNs using the Enbbox Framework. Define push content in TypeScript with payload customization.