Slack
Last updated
Last updated
To set up your assistant integration in Slack, you'll need the following:
A Slack account with access to the Workspace where you will install the assistant.
Space to add new applications to your Workspace.
Access the a la Slack developer console.
Click on 'Create New App' and select the 'From Scratch' option.
Enter a name for your application and choose a workspace.Enter a name for your application and choose a workspace.
Click 'Create App'.
Access the App Home menu section to add the permissions list.
Click 'Review Scopes to Add'.
In the Scopes module click 'Add an OAuth Scope' under Bot Token Scopes.
Select at least the following permissions: - chat:write - im:history - im:read - im:write
Next, we go back to the App Home section and in the Show Tabs module we will activate the 'Messages Tab' option along with the 'Allow users to send Slash commands and messages from the messages tab' permission.
Access the Event Subscriptions menu section and enable the use of events.
In the same section, in the Subscribe to bot events section, click on 'Add Bot User Event' and add the message.im event to enable the reception of messages.
Only 1 message can be sent per second.
Copy the URL that you will find in the integration options and paste it into 'Request URL' in the Enable Events section.
Go to the Interactivity & Shortcuts menu section and insert the same URL that you copied in step 2.
Access the Install App menu section, click on 'Install to Workspace' and copy the token generated in 'Bot User OAuth Token'.
Finally, insert the necessary data for the integration into the platform: - Bot User OAuth Token: The token generated through the Install App section. - Signing Secret: Token that verifies the origin of the requests, it is found in the Basic Information section of the menu.
Done! Run tests to verify the functionality of your assistant in your Slack account.