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.
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
<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>
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
Connect your first integration
Free plan includes the widget and API. Bots and third-party connectors on Pro and Enterprise.
Get Started Free