1. AI Agent Installation & Integration
AI Agent Customer Support Docs
  • Default module
    • Product
      • Changelog
      • Agent Widget JavaScript SDK
      • Chat Widget Custom CSS Classes
    • AI Agents
      • Create AI Agent
      • Edit AI Agent
      • Delete Agent
    • Leads
      • Lead Settings
      • Lead Report
    • AI Agent Installation & Integration
      • Overview
      • Custom Website
      • WordPress
      • Link WhatsApp with AI Agent
      • Setup New WhatsApp Account
      • Google Tag Manager
      • Shopify
      • Squarespace
      • Wix
      • Webflow
      • Bubble
      • PrestaShop
      • GoDaddy
      • Function Tool Call
    • Billing & Pricing
    • Partner
      • Partner Management
    • Roadmap
      • Upcoming Features
    • Intelligence Settings
      • Intelligence Settings
    • Advance Settings
      • Overview
      • Header & Labels
      • Widget Tabs
      • Lead Capture Form
      • Quick Questions
      • Custom CSS and JS
      • Branding & Tracking
      • Behaviour Settings
      • Consent & Overlay
    • Partner Dashboard
      • How to Create White-Label
      • License Management
    • Message Credits
      • Message Credits
  1. AI Agent Installation & Integration

PrestaShop

Use this guide to install the AI Agent widget on PrestaShop.
Copy the Embed Code from your portal as described in Installation Overview.
Two embed methods are supported:
1.
Script-based loader (recommended): Adds an AI Agent bubble. The chat opens in an iframe popover when the visitor clicks the bubble.
2.
Iframe-based embed: Loads the AI Agent directly as an iframe appended to the page body (best for a dedicated page).

Best placement#

Script-based loader: Add it in the active theme template that outputs the closing </body> so it loads across the storefront.
Iframe-based embed: Add it only on a specific page where you want a direct embedded chat experience.
Important:
The embed code appends to document.body, so placing it near </body> is safest.

Script-based loader (AI Agent Bubble)#

1.
Backup your theme files.
2.
Locate the active theme file responsible for closing the page layout (the file that prints </body>).
3.
Paste the Script-based loader code just above </body>.
4.
Save the file.
5.
Clear PrestaShop cache (if enabled).
6.
Open the storefront and test.
Tip:
If your theme provides a built-in custom script area or a module for global scripts, use that instead of editing theme files directly.

Iframe-based embed (Direct AI Agent Chat)#

This method appends the iframe to the page body and is best used on a dedicated page.
1.
Open the page where you want the embedded AI Agent (for example a CMS page).
2.
Switch to HTML/source mode (if your editor supports it).
3.
Paste the Iframe-based embed code.
4.
Save and test on the storefront.
Notes:
To control size, adjust iframe.style.width and iframe.style.height in the code (example: 600px, 80vh, 100vh).
Even if pasted inside a CMS page editor, the iframe is appended to the page body (because the code uses document.body.appendChild(...)).

Verify installation#

1.
Open the storefront in an incognito/private window.
2.
Confirm the bubble or embedded AI Agent loads.
3.
Send a test message and confirm replies.

Troubleshooting#

Widget not visible#

Confirm you edited the active theme used by the storefront.
Clear PrestaShop cache and hard refresh (Ctrl+Shift+R / Cmd+Shift+R).
Check if a performance module is combining/minifying scripts in a way that breaks execution.

Widget visible but not responding#

Check browser console for blocked requests.
Confirm the code is copied exactly from the portal and uses the correct values.

Duplicate widget#

Ensure the code is added only once in the theme.
Check if any modules are also injecting the same embed code.
Modified at 2026-02-19 07:26:15
Previous
Bubble
Next
GoDaddy
Built with