D. Widget Integration
Install Privas AI on Drupal
Embed the AI representative on a Drupal
By aninditoUpdated 4 Mar 2026
Drupal allows you to embed external scripts or components.
You can add the Privas AI representative by inserting the Privas embed script.
This guide explains how to install the Privas AI widget on a Drupal website.
Part 1 — Enable Block Content Module
Before adding the chatbot embed code, make sure the Block Content module is enabled.
Why this matters
Block Content allows you to create reusable content blocks.
This affects your content structure only.
It does not modify your theme, layout, or existing pages.
Step 1 — Enable Block Content
- Log in to your Drupal Admin Dashboard.
- In the left menu, click Extend.
- Under the List tab, search for Block Content.
- Check the box next to it.
- Click Install in the top-right corner.

Step 2 — Create a Block Type
- In the left menu, click Structure.
- Select Block Types.

- Click Add Block Type in the top-right corner.

- Fill in:
- Label — For example: “AI Assistant”
- Description — Short explanation (e.g., “Privas AI Chatbot Block”)
- Enable Create New Revision if you want version history
- Click Save.

Block Content is now ready.
Part 2 — Add the Privas AI Embed Code
Now we will create the block and paste the embed code.
Step 1 — Open Block Layout
- In the left menu, click Structure.
- Select Block Layout.

Step 2 — Choose Placement Area
- Scroll to the section where you want the assistant to appear
(For example: Footer Bottom). - Click Place Block.

Step 3 — Create a Custom Block
- In the Place Block window, click Add Content Block.

- Enter a short description for the block.


Step 4 — Switch to HTML Mode
- In the Body editor, click the Three Dots icon.
- Select Source.

Step 5 — Paste the Privas AI Embed Code
- Paste your Privas AI Embed Code into the Body field.
- Click Save and Configure.

Step 6 — Finalize Placement
- On the Configure Block page, review placement settings.
- Click Save Block.

What This Installation Does — and Does Not Do
This installation:
✔ Displays your assistant in the selected region
✔ Loads automatically for visitors
✔ Works independently from Drupal modules
It does NOT:
✘ Modify your theme structure
✘ Change navigation menus
✘ Affect user roles or permissions
✘ Alter SEO settings
The widget simply connects your Drupal site to your configured Privas AI domain.
Optional — Install Site-Wide via Template (Advanced)
If you prefer to load the assistant globally:
- Go to Appearance → Theme Settings.
- Edit your active theme template.
- Paste the embed code before the closing
</body>tag. - Save changes.
This affects all pages.
It does not modify content.
If the Widget Does Not Appear
- Clear site cache
- Make sure the block is visible to all users
- Confirm the embed code was pasted in Source mode
- Verify JavaScript is not being filtered by text format settings
Next Step
Continue to Test the Representative.
Before sharing publicly, confirm that your assistant represents your business clearly and accurately.