D. Widget Integration
Install the Website Widget
Add the Privas AI chat widget to your website using a single script.
By aninditoUpdated 3 Mar 2026
This guide explains how to display the Privas AI representative on your website.
After completing this step, visitors will be able to chat with your representative directly from your site.
Before you begin
Confirm that you have already:
- created your domain
- configured the AI identity
- defined behaviour
- added knowledge sources
- tested using a private share link
Installing the widget before completing setup may cause the assistant to appear but respond incorrectly.
Step 1 — Copy your widget script

- Open your domain in the Domain Center
- Locate the Install Widget section
- Copy the generated script
The script uniquely connects your website to your specific domain.
Each domain has its own embed code.
Step 2 — Add the script to your website
Paste the script just before the closing </body> tag of your website.
Example:
<body>
...
<!-- Privas AI Widget -->
<script src="https://privas.ai/embed.min.js" data-domain="your-domain-xxx"></script>
</body>
Important:
- Place it on every page where you want the assistant available.
- Do not modify the
data-domainvalue. - Only install one script per domain.
Step 3 — Save and refresh
- Save your website changes
- Clear cache if necessary
- Refresh the page
Within a few seconds, the chat icon should appear in the corner of the page.
If the widget does not appear
Check the following:
- The script is placed before
</body> - The correct
data-domainvalue is used - Website cache is cleared
- Ad blockers are disabled during testing
- No JavaScript errors appear in the browser console
If the script loads correctly, the widget will appear automatically.
First interaction
Open the chat window and ask a simple question.
If the representative responds clearly and consistently with your website content, the installation is successful.
What happens now
Your AI representative is now publicly accessible on your website.
Visitors can interact with it at any time.
You may continue refining:
- knowledge sources
- behaviour instructions
- visual appearance
Changes update automatically without reinstalling the script.