Connect Bot to Slack

How can I connect the bot with slack? Where do I specify slack_token and slack_channel values?

Thank You

in the configuration ->channels section, you can find the icons for all available channels. On clicking Slack you will be navigated to a page where the slack token can be provided along with steps-step guide

I created a bot in slack but its not responding. Can anyone help, what might be the reasons?. The documentation in YM is a bit old, slack has made changes in its page https://api.slack.com/.

In the updated page I have mentioned OAuth Tokens.

I got the error shown below. Tried changing permission and scope. How can I solve this?

Sharing steps for slack integration

  • Go to slack application
  • Go to Event Subscriptions from the left-hand menu, and turn the toggle switch on to enable events Paste https://app.yellowmessenger.com/integrations/slack/receive/botId in Request URL field
  • Scroll down to Subscribe to Bot Events on the same page Click the Add Bot User Event button to add
    message_im, message_groups, message_channels, message_mpim events
  • Go to Interactive Components from the left-hand menu, and turn the toggle switch on to enable events
    Paste https://app.yellowmessenger.com/integrations/slack/interaction/botId in Request URL
  • Go to OAuth and Permissions, scroll down Add these scope chat:write, incoming-webhooks events, these are needed to get the bot response.
  • Also add other scopes according to your use case requirements
  • Add the app to your desired workspace. Should be approved by workspace admin.
  • Add the token to connect YM bot to the slack app.

Hi, I created a bot in slack but its not responding. I have followed above steps and In the updated page I have mentioned oauth Token also but when I am trying to connect I getting below error.

1 Like

Hey @swapnil Under the OAuth & Permissions page of your slack app TestBot, you should see a category for Scopes too. Under that, please add a basic OAuth Scope like [channels:join] and the other scopes mentioned above by Sujay. Please try this and let us know if there’s still any issue in installing the bot. Thanks!

Hi, I have Subscribe two event (message.channels, message.im ) and added scope (channels:history, channels:join, channels:read , chat:write , im:history) but still bot is not responding , bot is not reaching to YM. How to resolved this ?

1 Like

@swapnil, did you follow all these steps too?
Slack Integration

1 Like