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
- In the dashboard, go to API Keys (in the sidebar under your account).
- Click Create New Key.
- Give it a name (e.g., "Website Widget").
- Select the Knowledge Base this key will have access to.
- 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
| Option | Values | Default |
|---|---|---|
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.