Add your AI Chatbot to Shopify
Install the floating fonio Chatbot Widget in your Shopify storefront theme.
This guide adds a floating chat button to Shopify storefront pages that use the default theme layout. It covers the storefront and its theme. Shopify documentation on theme layouts.
Add the widget
- In fonio, open your chat assistant and go to AI Chatbot → Widget. Under Allowed websites, add the domain visitors actually use to open your storefront. For a new widget, click Create installation script. For an existing widget, save any changes to Allowed websites. Under Installation → Display mode, select Floating, then select Copy script to copy the full embed code.
- In Shopify, go to Online Store → Themes. Duplicate your current theme so you can edit and test a copy.
- Open the copy's menu and choose Edit code. Open Layout →
theme.liquid, paste the full snippet just before the closing</body>tag and save. - Preview the copy. If the preview opens on a separate domain, add that exact domain under Allowed websites in fonio for the test. Once the preview works, publish the theme copy. Shopify instructions for editing themes · Shopify theme previews.
Test on your published storefront
Open your live storefront in a private browser window. Check that the chat button appears on your homepage and on a product page, then open it and send a test message.
If the widget doesn't appear
Check that you've published the theme containing the embed and that the domain used by visitors is listed in fonio. If your store uses a custom domain, the store's myshopify.com address alone won't cover it. Install the snippet in the storefront theme. Shopify's Custom Pixels run in an isolated environment and cannot display the chat button. Shopify documentation on pixels.
See more widget troubleshooting or return to the AI Chatbot setup guide.
