Embeddable Widget

The DocuAssist widget lets you add an AI chatbot powered by your Knowledge Base to any website with a few lines of code.

Requirements

  • A Premium or Team plan subscription.
  • A Knowledge Base with indexed documents.

Step 1: Generate an API Key

  1. In the dashboard, go to API Keys (in the sidebar under your account).
  2. Click Create New Key.
  3. Give it a name (e.g., "Website Widget").
  4. Select the Knowledge Base this key will have access to.
  5. Click Create and copy the key immediately — it is shown only once.

Step 2: Embed the Widget

Add the following snippet to your HTML, just before </body>:

<script>
  window.DocuAssistConfig = {
    apiKey: 'YOUR_API_KEY',
    theme: 'dark', // 'light' or 'dark'
    language: 'en', // or 'sk'
  }
</script>
<script src="https://www.docuassist.sk/widget.js" defer></script>

Replace YOUR_API_KEY with your actual value.

Widget Customization

OptionValuesDefault
theme'dark', 'light''dark'
language'en', 'sk''en'
lang'en', 'sk''en'

Revoking Access

To revoke widget access, go to API Keys → click Delete next to the key. The widget stops working immediately.

Security

  • API keys are stored as SHA-256 hashes — even if your key is exposed, it cannot be used to access your data directly.
  • Each key is scoped to a single Knowledge Base.
  • You can create multiple keys for different websites.
    Embeddable Widget | DocuAssist.sk