await step.chat('chat', async () => { return { body: 'A new post has been created', };});
Steps
Chat Channel Step
Copy
Ask AI
await step.chat('chat', async () => { return { body: 'A new post has been created', };});
The chat step allows you to send a message to a chat channel. This is useful when you need to send a message to a chat channel, such as Slack, Discord, or Microsoft Teams.
In order to send a chat message, you need to set the specific chat provider credentials for the subscriber.
You can learn more about how to achieve this for each provider in the Provider Documentation.