Slack
How to deploy your bot to Slack teams
Slack bots are DM-only
Currently, Meya Slack bots only respond to DM messages. We will be adding responses in channels soon.
How to connect your Meya bot to Slack
A note about installs prior to Dec. 22, 2016
If you've set up a Meya + Slack bot prior to Dec. 22, 2016, you will need to follow steps 3 and 7-10 below before January 11, 2017 to maintain service.
We are transitioning from the Slack RTM to the newer Slack Event API in order to make your bot more robust.
A) on Slack:
- Create a Slack app
- Note the "Client Id" and "Client Secret"
B) on Meya:
- Paste the "Client Id"
- Paste the "Client Secret"
- Click "Save"
C) on Slack:
- OAuth & Permissions > Paste your "Redirect URI(s)". Click "Save URLs"
- Bot Users > Click "Add a Bot User", enter the Default username
- Bot Users > Turn "Always Show My Bot as Online" to "On" position
- Bot Users > Click "Add Bot User"
- Interactive Components > Click "Enable Interactive Components"
- Interactive Components > Paste your "Request URL". Click "Enable Interactive Components"
- Event Subscriptions > Turn the "Enable Events" toggle to "On"
- Event Subscriptions > Paste your "Request URL". Note the "Verified ✔️"
- Event Subscriptions > Click "Add Bot User Event". Add the
message.im
event. - Event Subscriptions > Click "Save Changes"
User Profile Data
No user profile data for installs prior to Dec. 22, 2016
If you installed your bot on a Slack team prior to Dec. 22, 2016, the
user
object will not be pre-populated due to a missing Slack team permissionusers.profile:read
. Reinstalling the bot on the team will add this permission.
Field Name | Description |
---|---|
first_name | First name of user |
last_name | Last name of user |
avatar_url | Profile picture at 512 x 512 resolution. Slack provides default image if none set. |
email | Email Address |
phone | Phone number |
skype | Skype id |
title | Title within their team |
Updated over 6 years ago