Add Messenger Widget to Your Site
The Messenger Widget adds a floating chat button to any page, enabling visitors to open and close your AI chatbot at will. Itās the simplest way to bring LiveChatAI into your site without a full-page layout.
Prerequisites
- A LiveChatAI workspace with an active chatbot
- Access to modify your siteās HTML (youāll need to paste a script)
Installation Steps
1. Open Embed & Integrate ā Add as Messenger
In your LiveChatAI dashboard, click Embed & Integrate in the top menu, then expand Add as Messenger.

2. Copy the embed script
3. Paste into your site
- Ideally, insert the script into the <head> section of every page where you want the widget
- If you cannot edit <head>, you may place it just before the closing </body> tag.
4. Save and publish
Deploy your changes. The floating chat icon should appear once the page loads.
5. Verify in Preview
Return to Embed & Integrate and click Test on live site to confirm the widget opens your chatbot.
Platform-Specific Guides
- Custom Website: Paste the snippet into your HTML template.
- WordPress: Use the āHeader and Footerā plugin or your themeās header.php.
- WooCommerce: Add the snippet via a child theme or a code-snippet plugin.
Best Practices
- One snippet per site: Avoid duplicate installations.
- Load asynchronously: The async defer attributes ensure your page performance isnāt impacted.
- Exclude on restricted pages: Donāt display the widget on login or payment pages if not needed.
- Test on staging: Verify behavior before pushing to production.
FAQ
Do I need to regenerate the script for a new chatbot?
Yes. Each chatbot has a unique data-id. Copy the new snippet after creating or cloning a chatbot.
Can I customize the widgetās appearance?
Visit Embed & Integrate ā Customize Messenger Widget to adjust colors, position, and welcome text.
What if the widget doesnāt appear?
- Confirm the script is on every pageās HTML.
- Check browser console for errors.
- Ensure your site isnāt blocking third-party scripts.
For further assistance, email [email protected] with a link to your page and any error messages.