slack.sendMessage posts a top-level message to a channel or direct conversation. Provide text, Block Kit blocks, legacy attachments, or a combination.
Example
automations/post-slack-update.automation.ts
Inputs
Output
ReturnsconversationId, the stable message timestamp, and message with Slack’s text, content, author, thread, reaction, and file metadata. Keep both identifiers for updates, deletion, reactions, or replies.
The bot needs access to the destination. Supplying text alongside blocks gives notifications and assistive technology a useful fallback.