To enable your bot to perform actions, grant the necessary OAuth permissions.
channels:join – Allows the bot to join public channels.chat:write – Enables the bot to send messages to users and channels.chat:write.public – Allows the bot to send messages to public channels.incoming-webhook – Enables webhooks to send messages to Slack.reactions:read – Allows reading emoji reactions in channels.reactions:write – Enables adding emoji reactions to messages.For more details, refer to Slack’s official OAuth & Permissions documentation.
SLACK_BOT_TOKEN environment variable..To allow the bot to post messages in channels, invite it to the desired channels. Use slack channel integration to invite the bot to the channel.