BeforeQuery bots answer questions in Slack, Discord, and Microsoft Teams — mention the bot or use the /askai slash command and it replies with a grounded answer, formatted source links, and confidence.

How it works

Bot credentials are configured per workspace under Workspace → Bot Integrations and linked to a project. Each integration gets a dedicated inbound webhook URL that you paste into Slack or Discord. Both platforms are answered by the non-streaming RAG pipeline with citations rendered as links. Restricted documents are excluded, like all client-facing surfaces.

Slack

1

Create a Slack app

In the Slack API console, create an app with a bot user. Enable the /askai slash command and subscribe to app_mention events. Grab the signing secret and (optionally) the bot token.
2

Register the integration

In the dashboard, open Workspace → Bot Integrations, add a Slack integration, choose the project that should answer, and paste the signing secret and bot token.
3

Point Slack at the webhook

Copy the integration’s webhook URL and set it as the request URL for both the slash command and event subscriptions.BeforeQuery verifies Slack’s v0 HMAC-SHA256 signature with a 5-minute replay window. Answers are delivered asynchronously via response_url.
Usage: @beforequery How does OAuth work? or /askai How does OAuth work?

Discord

1

Create a Discord application

Create an application with a bot, register the /askai command, and copy the public key and application ID.
2

Register the integration

In Workspace → Bot Integrations, add a Discord integration, choose the project, and paste the public key, application ID, and bot token.
3

Set the interactions endpoint

Copy the integration’s webhook URL into Discord’s Interactions Endpoint URL field.Interactions are Ed25519-verified; Discord’s PING gets PONG, and /askai responses use deferred replies while the answer is generated.

Microsoft Teams

Teams bots are supported for enterprise deployments with the same RAG-with-citations experience. Contact your BeforeQuery workspace admin settings or support to enable the Teams app for your tenant.
Bot answers count toward workspace usage metering, and every exchange appears in conversations and analytics alongside widget and API traffic.