Plain text
Rich card
Return acard for structured messages (text, images, link buttons, and more). Existing body-only steps stay valid.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure Novu chat providers to send workflow notifications to Slack, Discord, Microsoft Teams, and WhatsApp using the Framework SDK.
await step.chat('chat', async () => {
return {
body: 'A new post has been created',
};
});
card for structured messages (text, images, link buttons, and more). Existing body-only steps stay valid.
import { Actions, Card, CardText, Divider } from '@novu/framework';
await step.chat('chat', async () => {
return {
card: Card({
title: 'Deploy finished',
children: [
CardText('All checks passed.'),
Divider(),
Actions([
{
type: 'link-button',
id: 'view',
label: 'View deploy',
url: 'https://example.com/deploys/123',
style: 'primary',
},
]),
],
}),
};
});
Was this page helpful?