Configure Slack
Connect your Slack workspace to AilaFlow so users can chat with AilaFlow directly in Slack. This setup uses an internal Slack app created for your own workspace; you do not need to publish it to the Slack Marketplace.
Create a Slack app
- Open the Slack app dashboard and sign in.
- Select Create New App.
- Select Blank app, then select Continue. Depending on the Slack screen you see, this option may be called From scratch.
- Enter
Ailaas the app name, select the workspace you want to connect, and create the app.
Configure the app
Use the left sidebar in the Slack app dashboard to configure the app:
- Open OAuth & Permissions. Under Scopes → Bot Token Scopes, add these scopes:
chat:writeim:historyusers:readusers:read.email
- Open App Home. Under Show Tabs, enable Messages Tab, then enable Allow users to send Slash commands and messages from the messages tab.
- Open Socket Mode and enable Socket Mode. If Slack asks you to generate an app-level token, give it a name such as
aila-socket, add theconnections:writescope, and generate the token. Copy the token beginning withxapp-. - Open Event Subscriptions, enable events, and expand Subscribe to bot events. Add the
message.imevent and save the changes. A Request URL is not required when you use Socket Mode. - Open OAuth & Permissions, select Install to Workspace or Reinstall to Workspace, and approve the requested permissions. Copy the Bot User OAuth Token beginning with
xoxb-.
If you did not create the app-level token while enabling Socket Mode, open Basic Information → App-Level Tokens, select Generate Token and Scopes, add connections:write, and generate the token.
Connect Slack to AilaFlow
- Open the Slack configuration in AilaFlow.
- Paste the
xapp-token into App-level token and thexoxb-token into Bot token. - Select Save connection.
- Select Refresh Slack users.
- Map each Slack user to the corresponding AilaFlow user.
Keep both tokens private. Anyone with access to them may be able to connect to your Slack app or act as its bot.