How to set up a Slack bot connected to Onyx
Create a new Slack App
Use the YAML manifest
Generate an App Token
connections:write
scope to the app-level token and click Generate.
Save this token for later.Install the Slack App
Setup Onyx for the Slack Bot
Configure the Slack Bot's Behavior
Tag the bot with your question
Use a slash command
Send a message in a channel with the bot added
Direct message the bot
DANSWER_BOT_NUM_RETRIES
5 (int)
MAX_THREAD_CONTEXT_PERCENTAGE
512 * 2 / 3072 ≈ 0.333 (float)
DANSWER_BOT_NUM_DOCS_TO_DISPLAY
5 (int)
DANSWER_BOT_DISABLE_DOCS_ONLY_ANSWER
false (bool)
DANSWER_REACT_EMOJI
eyes (str)
DANSWER_FOLLOWUP_EMOJI
sos (str)
DANSWER_BOT_FEEDBACK_VISIBILITY
private
(only the clicking user),
anonymous
(public but anonymous), public
(public with username).Default: private (str)
NOTIFY_SLACKBOT_NO_ANSWER
false (bool)
DANSWER_BOT_DISPLAY_ERROR_MSGS
false (bool)
DANSWER_BOT_RESPOND_EVERY_CHANNEL
false (bool)
DANSWER_BOT_MAX_QPM
0
or leave unset for uncapped.Default: uncapped (int)
DANSWER_BOT_MAX_WAIT_TIME
180 (seconds; 3 minutes)
DANSWER_BOT_FEEDBACK_REMINDER
0
to disable.Default: 0 (disabled; 0 minutes)
DANSWER_BOT_REPHRASE_MESSAGE
false (bool)
DANSWER_BOT_RESPONSE_LIMIT_PER_TIME_PERIOD
0
to disable the limit.Default: 5000 (int)
DANSWER_BOT_RESPONSE_LIMIT_TIME_PERIOD_SECONDS
86400 (seconds; 24 hours)