Slack App Setup

Configure a /knowledge slash command. In HTTP mode, set its request URL to the public /slack/events endpoint and enable Interactivity with /slack/interactions. In Socket Mode, enable Socket Mode, create an app-level token with the connection permission required by Slack, and retain Interactivity so block actions and modal submissions are delivered over the socket.

The bot calls conversations.replies, posts via response URLs/Web API, and opens modals. Configure bot scopes sufficient for commands, reading replies in intended public/private channels, posting responses, and opening views. The repository does not contain a Slack manifest, so exact scope names and workspace installation owner are TO_BE_CONFIRMED; apply least privilege and verify against Slack’s current scope requirements.

Store the bot token in SLACK_BOT_TOKEN, signing secret in SLACK_SIGNING_SECRET, and Socket Mode app token in SLACK_APP_TOKEN. Do not enable unsigned HTTP requests. Test /knowledge help, a thread fetch, preview buttons, modal submission, and OAuth callback notification.