Setting Up Slack Integration
Setting up UniLink Slack integration involves 5 steps.
- Create a slack app in the developer portal.
- Add necessary permissions for the slack app.
- Configure UniLink with the
client ID
andclient Secret
obtained from the slack app. - Open UniLink UI, navigate to integrations, Slack and click connect.
- Voila! You should be receiving new conversations in the #customer-conversations channel in Slack.
Register a Slack app
To use Slack Integration, you have to create a Slack app in the developer portal. You can find more details about creating Slack apps at the Slack developer portal.
Once you register your Slack App, you will have to obtain the Client Id
and Client Secret
. These values will be available in the app settings and will be required while setting up UniLink environment variables.
Configure the Slack app
- Create a Slack app and add it to your development workspace.
- Obtain the
Client Id
andClient Secret
for the app and configure it in your UniLink environment variables. - Head over to the
OAuth & permissions
section underfeatures
tab. - In the redirect URLs, Add your UniLink installation base URL.
- In the scopes section configure the given scopes for bot token scopes.
commands,chat:write,channels:read,channels:manage,channels:join,groups:write,im:write,mpim:write,users:read,users:read.email,chat:write.customize,channels:history,groups:history,mpim:history,im:history
- In the user access token section subscribe to:
files:read
,files:write
,remote_files:share
- Head over to the
events subscriptions
section underfeatures
tab. - Enable events and configure the given request url
{UniLink installation url}/api/v1/integrations/webhooks
- Subscribe to the following bot events
message.channels
,message.groups
,message.im
,message.mpim
. - Connect Slack integration on UniLink app and get productive.
Configure the environment variables in UniLink
Obtain the Client Id
and Client Secret
for the app and configure it in your UniLink environment variables.These values will be available under Settings
> Basic Information
.
SLACK_CLIENT_ID=
SLACK_CLIENT_SECRET=
Restart the UniLink server.
Note: Slack will only show up in the integrations section once you have configured these values and restarted the server.
Connect UniLink with your Slack workspace
Follow this guide to complete the Slack integration.
Testing your setup
- Create a new conversation.
- Ensure that you are receiving the UniLink messages in the
#customer-conversations
channel. This channel will be created automatically by UniLink but users won't be automatically added. Use thebrowse all channels
orcmd+k
/ctrl+k
shortcut to search and join this channel. - Add a message to that thread and ensure that it is coming back on to UniLink.
- Add
note:
orprivate:
in front of the Slack message to see if it is coming out as private notes. - If your Slack member's email matches their email on UniLink, the messages will be associated with their UniLink user account.