SRSite Rep

Install Site Rep Docs Mode

Docs Mode adds a compact Ask AI launcher, a configurable hotkey, starter questions, and an expandable Used N sources drawer. It still answers only from approved sources and records every visitor answer or lead against a conversation ID.

Use the canonical single-script snippet when the host supports custom JavaScript:

<script src="https://siterep.net/widget.js" defer data-bot-id="YOUR_BOT_ID" data-public-key="YOUR_PUBLIC_WIDGET_KEY" data-api-base="https://siterep.net" data-theme="#1f8f5f" data-mode="docs" data-hotkey="mod+k"></script>

Never put owner dashboard keys, session tokens, payment secrets, source files, or private docs content into the snippet. The public widget key is safe to expose, but the allowed-domain lock must still match the live site.

Mintlify

Status: supported.

Where to paste: Add a custom JavaScript file to the Mintlify docs repo so it runs across docs pages.

Minimal snippet:

const script = document.createElement("script");
script.src = "https://siterep.net/widget.js";
script.defer = true;
script.dataset.botId = "YOUR_BOT_ID";
script.dataset.publicKey = "YOUR_PUBLIC_WIDGET_KEY";
script.dataset.apiBase = "https://siterep.net";
script.dataset.mode = "docs";
script.dataset.hotkey = "mod+k";
document.head.appendChild(script);

Recommended validation:

Troubleshooting:

Docusaurus

Status: supported.

Where to paste: Add a script object to docusaurus.config.js in the site config.

Minimal snippet:

scripts: [
  {
    src: "https://siterep.net/widget.js",
    defer: true,
    "data-bot-id": "YOUR_BOT_ID",
    "data-public-key": "YOUR_PUBLIC_WIDGET_KEY",
    "data-api-base": "https://siterep.net",
    "data-mode": "docs",
    "data-hotkey": "mod+k",
  },
],

Recommended validation:

Troubleshooting:

GitBook

Status: not-directly-installable.

Where to paste: Hosted GitBook does not directly support arbitrary custom HTML, CSS, or JavaScript.

Recommended validation:

Troubleshooting:

Static docs

Status: supported.

Where to paste: Paste the canonical script in the shared layout or footer before the closing body tag.

Minimal snippet:

<script src="https://siterep.net/widget.js" defer data-bot-id="YOUR_BOT_ID" data-public-key="YOUR_PUBLIC_WIDGET_KEY" data-api-base="https://siterep.net" data-theme="#1f8f5f" data-mode="docs" data-hotkey="mod+k"></script>

Recommended validation:

Troubleshooting:

Webflow

Status: supported.

Where to paste: Use Site settings Footer code for site-wide install, or Page settings before body for a docs-only page.

Minimal snippet:

<script src="https://siterep.net/widget.js" defer data-bot-id="YOUR_BOT_ID" data-public-key="YOUR_PUBLIC_WIDGET_KEY" data-api-base="https://siterep.net" data-theme="#1f8f5f" data-mode="docs" data-hotkey="mod+k"></script>

Recommended validation:

Troubleshooting:

Framer

Status: supported.

Where to paste: Use Project Settings, Custom Code, and place the script where Framer loads site-wide body code.

Minimal snippet:

<script src="https://siterep.net/widget.js" defer data-bot-id="YOUR_BOT_ID" data-public-key="YOUR_PUBLIC_WIDGET_KEY" data-api-base="https://siterep.net" data-theme="#1f8f5f" data-mode="docs" data-hotkey="mod+k"></script>

Recommended validation:

Troubleshooting:

Generic sites

Status: supported.

Where to paste: Paste the canonical script before the closing body tag on every page that should show Ask AI.

Minimal snippet:

<script src="https://siterep.net/widget.js" defer data-bot-id="YOUR_BOT_ID" data-public-key="YOUR_PUBLIC_WIDGET_KEY" data-api-base="https://siterep.net" data-theme="#1f8f5f" data-mode="docs" data-hotkey="mod+k"></script>

Recommended validation:

Troubleshooting:

WordPress

Status: supported.

Where to paste: Use the Site Rep WordPress plugin or a trusted header/footer script plugin.

Minimal snippet:

<script src="https://siterep.net/widget.js" defer data-bot-id="YOUR_BOT_ID" data-public-key="YOUR_PUBLIC_WIDGET_KEY" data-api-base="https://siterep.net" data-theme="#1f8f5f" data-mode="docs" data-hotkey="mod+k"></script>

Recommended validation:

Troubleshooting: