INTEGRATIONS

One knowledge base,
everywhere your team works

Connect Slack, Discord, Teams, GitHub, Notion, SharePoint, Shopify, and more. Every channel uses the same RAG pipeline and citation links. Expose your knowledge to any AI tool via the MCP server. Update your docs once — all surfaces reflect it instantly.

Chat Bots

Answer questions wherever your users live

Slack Bot

Answer in channels and DMs with citation links

Discord Bot

Works in servers, threads, and forum posts

Microsoft Teams Bot

Enterprise-grade Teams app with SSO

Code & Repositories

Index documentation and code comments from your repos

GitHub

Index README, docs/, and markdown files. Auto-syncs on push.

GitLab

Same as GitHub, works with self-hosted GitLab instances.

Knowledge Bases

Connect your team's existing internal knowledge

Notion

Index pages, databases, and wikis from your workspace

Confluence

Cloud and Data Center. Index spaces and page trees.

Google Drive

Index Docs, Sheets with text content, and Drive folders

SharePoint

Index SharePoint sites, document libraries, and pages. Supports Microsoft 365 and on-premises deployments.

E-commerce & CRM

Bring live product and customer data into AI answers

Shopify

Index products, collections, and store pages for product Q&A in your widget or helpdesk. Syncs on a schedule and on product updates.

Salesforce

Index knowledge articles and resolved cases. AI copilot drafts replies in Salesforce Service Cloud Case view.

Embed & API

Drop BeforeQuery into your own product

Web Widget

One script tag hosted at widget.beforequery.com. Full CSS override. reCAPTCHA bot protection included.

React Component

npm install @beforequery/react. <BeforeQueryChat /> drop-in or useBeforeQuery headless hook for custom UI.

JavaScript SDK

@beforequery/sdk is framework-agnostic. Works with Vue, Svelte, React Native, vanilla JS, and Node.js.

Search & Chat API

REST endpoints with SSE streaming. Suggested questions and related articles in every response.

MCP Server

Per-project MCP server at POST https://api.beforequery.com/mcp/projects/:projectId with X-Client-Key. Any MCP-aware IDE or AI app — Cursor, Windsurf, Claude Desktop — can query your docs as structured tools.

@beforequery/agents SDK

Open-source TypeScript SDK for building agent graphs. runAgent, defineAgent, mcpClient, and a2aClient. MIT licensed, works in Node.js and edge runtimes.

Collections & Versioning

Fine-grained access control and multi-version support

Collections

Group sources into named collections. Scope client keys to one or more collections for precise access control.

Versioned Docs

Tag sources as v1, v2, or latest. Users always get answers from the correct version of your documentation.

Per-key Permissions

Public keys (bq_pk_...) for client-side widgets. Client ID + Secret for server-side and backend integrations.

EMBED IN MINUTES

Add AI chat to your docs with one snippet

Drop the BeforeQuery widget script into your docs site. Customize colors, position, and placeholder text. The widget inherits your font automatically. No React required — works with any HTML page.

  • Keyboard shortcut to open (configurable)
  • Dark and light mode support
  • Mobile-responsive out of the box
  • Accessibility compliant (WCAG AA)
  • Conversation history across page navigations
ADD TO YOUR DOCS HTML
<script
  src="https://widget.beforequery.com/beforequery-widget.js"
  data-project-id="YOUR_PROJECT_ID"
  data-client-key="bq_pk_..."
  data-theme="dark"
  data-placeholder="Ask anything..."
  async
></script>
OR WITH REACT (@beforequery/react)
import { BeforeQueryChat } from '@beforequery/react';

export default function Layout({ children }) {
  return (
    <>
      {children}
      <BeforeQueryChat
        projectId="YOUR_PROJECT_ID"
        clientKey="bq_pk_..."
        theme="dark"
      />
    </>
  );
}

// Headless hook for fully custom UI:
// import { useBeforeQuery } from '@beforequery/react';

Frequently Asked Questions

Common questions about BeforeQuery integrations

From the BeforeQuery dashboard, go to Integrations > Slack and click Install. You will be redirected to authorize the app in your Slack workspace. The bot activates in all channels it is invited to. Users can trigger it with /askai or by @mentioning the bot.
Yes. The bot responds in-thread by default to avoid cluttering channels. You can configure it to also post in the main channel.
Connect a repository and specify which paths to index (e.g., docs/, README.md, ADRs). BeforeQuery installs a webhook that triggers an incremental re-index on every push to the configured branch. Self-hosted GitLab instances are fully supported.
<BeforeQueryChat /> from @beforequery/react is a drop-in component with a pre-built UI that matches your theme. useBeforeQuery is a headless hook that gives you full control over the chat UI while BeforeQuery handles all retrieval, streaming, and citation logic.
Yes. The hosted widget at widget.beforequery.com includes reCAPTCHA protection that runs invisibly for legitimate users. This prevents automated scripts from consuming your question quota. reCAPTCHA can be disabled for authenticated internal surfaces.
Yes. The widget loads from widget.beforequery.com. Add widget.beforequery.com to your script-src and connect-src directives. The widget does not require unsafe-inline.
Absolutely. The Search and Chat APIs are independent REST endpoints with WebSocket streaming support. Build a fully custom UI, integrate server-side, or power a React Native or Node.js app using @beforequery/sdk.

Connect your first integration

Free plan includes the widget and API. Bots and third-party connectors on Pro and Enterprise.

Get Started Free