Slack Bot Setup
How to set up a Slack bot to automatically answer questions
HymalaiaBot Introduction
Hymalaia will connect to your Slack and listen for messages to answer.
You can easily configure rules for what channels Hymalaia should respond in, what knowledge sets should back each configured channel, and set filters to respond or not respond to different types of messages.
When Hymalaia identifies valid questions, it will respond in the message thread with:
- An LLM generated answer
- Quotes of the most relevant excerpts
- Sources with highlighted keywords
Hymalaia also provides a configuration page so you can create custom settings for each slack channel (or you can just use the default settings for all your channels).
Since we are using Web Sockets, Hymalaia is able to initiate the connection. This means that this is able to work even if you are running Hymalaia inside a firewall protected VPC.
Setting up
Authorization
Note: You must be an admin of the Slack workspace to set up the Slack bot.
- Navigate and sign in to https://api.slack.com/apps.
- Create a new Slack app:
- Click the Create New App button in the top right.
- Select From an app manifest.
- Select the relevant workspace and click Next.
- Select the “YAML” tab, paste the following manifest into the text box, and click Next:
- Click Create.
- Generate an App-level Token under Basic Information → App-level tokens → Generate Token
- Add the
connections:write
scope. - Copy the token.
- Add the
- Navigate to OAuth & Permissions.
- Click Install to Workspace.
- Click Allow.
- Copy the Bot User OAuth Token.
Setting Hymalaia to use it
- Go to the admin page in the top right of the Hymalaia UI.
- In the menu, go to Bots.
- Provide your Slack tokens.
Hymalaia will start responding in Slack channels after a short delay.
There are advanced options available via environment variables. Refer to the configs here: Slack Bot Setup Documentation