Table of Contents
Once your chatbot is created, you can embed it on any website by adding a small script.
No backend access or complex setup is required.
The embed code (copy & paste) #
You’ll find this in Test & Embed inside your chatbot settings.
<script defer
src="https://app.allosai.com/vendor/chatbot/js/external-chatbot.js"
data-chatbot-uuid="YOUR-CHATBOT-ID"
data-iframe-width="420"
data-iframe-height="745"
data-language="en">
</script>You can adjust:
- Width (e.g. 420)
- Height (e.g. 745)
- Language (e.g. en, de)
Where to place the script #
In general, paste the script before the closing </body> tag of your website.
Below are platform-specific examples.
Shopify #
Option 1: Theme file (recommended) #
- Go to Shopify Admin → Online Store → Themes
- Click … → Edit code
- Open theme.liquid
- Paste the embed code before </body>
- Save
The chatbot will now appear on all pages.
Option 2: Custom HTML section #
If your theme supports custom HTML blocks:
- Add a Custom Liquid / Custom HTML section
- Paste the embed code
- Save
WordPress #
Option 1: Using a plugin (easiest) #
Use a plugin like:
- Insert Headers and Footers
- WPCode
- Header Footer Code Manager
Steps:
- Install the plugin
- Paste the embed code into the Footer section
- Save
Option 2: Theme file #
- Go to Appearance → Theme File Editor
- Open footer.php
- Paste the script before </body>
- Save
Option 3: Page builder (Elementor, etc.) #
- Add an HTML widget
- Paste the embed code
- Save and publish
Webflow #
- Go to Project Settings → Custom Code
- Paste the embed code into Footer Code
- Save and publish
Wix #
- Go to Settings → Advanced → Custom Code
- Add a new code snippet
- Set placement to Body – End
- Paste the embed code
- Save and publish
Squarespace #
- Log in to Squarespace
- Go to Settings
- Open Advanced
- Click Code Injection
- Paste the AllosAI embed code into the Footer section (not Header).
- Click Save.
Custom HTML / Static sites #
If your site uses plain HTML:
- Open your main .html file
- Paste the embed code before </body>
- Save and upload
Works with:
- Static landing pages
- React / Vue / Next.js (via layout or custom document)
- Custom CMS setups
After embedding: quick checklist #
- Reload your website
- The chat trigger should appear
- Click it and send a test message
- Confirm language, size, and position feel right
If you don’t see the chatbot:
- Clear cache
- Check for script blockers
- Make sure the chatbot is active
In short #
- One script works everywhere
- Paste it once, chatbot runs automatically
- No rebuilds or backend changes required
Once embedded, your External AI Chatbot is live and ready to engage visitors, answer questions, and capture leads 24/7.
