Add Chat to Your Shopify Store: Install the Widget and Sell Before Checkout
How to add chat to Shopify by editing theme.liquid or with a theme block, which questions stall a purchase and how to answer them with AI and live agents.
In this article
When you add chat to your Shopify store, the goal is not "customer support". It is answering the one question stopping a shopper from clicking Add to cart: does this run small, will it arrive by Friday, can I return it if the color is off. Those questions get asked on the product and cart pages, and if nobody answers them there, they get asked to a competitor.
This article is about the chat inside the storefront: installing the widget without an App Store app, where it should and should not appear, the six questions that stall a purchase, and how an AI agent answers them from your catalog while your team handles the rest. Connecting Shopify order data to your platform is covered separately in how to connect Shopify with your customer service platform.
Install without an app: two ways to add the script
The chat widget is a single line:
<script src="https://omnifox.io/widget/loader.js" data-widget-key="YOUR_KEY" async></script>
Copy it from Channels, your website chat channel, Install, then choose one of these routes.
Route A: paste into theme.liquid
- In Shopify admin go to Online Store, then Themes.
- On your live theme (or a duplicate you will publish after testing) open the actions menu and choose Edit code.
- Under Layout, open
theme.liquid. - Find the closing
</body>tag and paste the script on the line above it. - Save. Open the storefront in an incognito window and look for the chat button.
Shopify's help pages on themes are at help.shopify.com if a menu name has changed.
Route B: a Custom Liquid block (Online Store 2.0 themes)
If you would rather not open the code editor, Online Store 2.0 themes (Dawn and most current themes) let you add a Custom Liquid block from the theme editor. Add it to the footer section so it renders on every page, paste the script, and save. Same result as Route A, but a merchant with no code access can do it, and the next person will find it in the editor.
Either way, the platform detects the domain and shows when the widget was last seen, so you can confirm the install from the panel.
Where the chat should appear, and where it can't
| Page | Show the chat? | Why |
|---|---|---|
| Home and collections | Yes, quiet | Button visible, no bubble; visitors are browsing, not stuck |
| Product page | Yes, proactive | Where sizing, shipping and stock questions happen |
| Cart | Yes, proactive | Last chance to remove doubt before checkout |
| Checkout | No on most plans | Scripts from theme.liquid do not run there unless you are on Shopify Plus with checkout extensibility |
| Order status page | Usually not needed | Shoppers want tracking; email or SMS handles it |
| Policy pages (shipping, returns) | Yes, proactive | Someone reading the returns policy is one message away from buying |
On a standard Shopify plan the chat ends when the visitor enters checkout, which is fine if you finished the job on the cart page. It is also why continuity matters: if the visitor left an email or phone number, your team follows up by email, SMS or WhatsApp from the same contact record if they abandon.
The six questions that stall a purchase
Most pre-purchase questions fall into six buckets, each with an answer the AI agent can give from your content.
- Shipping cost. "Do you ship to the UK?" Answer from your shipping policy page in the knowledge base.
- Sizing and fit. "Does this run small?" The size chart plus your own notes ("between sizes, go up").
- Returns. "Can I return it if it doesn't fit?" The window and who pays return shipping, in plain language.
- Delivery time. "Will it arrive before Saturday?" Processing time plus carrier estimate by region; be honest about cutoffs.
- Payment options. "Do you take Apple Pay or Shop Pay installments?" A short list from your checkout settings.
- Stock and restock. "When will the medium be back?" Catalog data for stock now; a policy line for restock timing.
Write each answer once, in the voice you use on the site, and put it in the knowledge base. Then let the widget's triggers ask before the shopper does.
Proactive messages by page (ready to adapt)
Set these up as triggers with a URL condition plus time-on-page or scroll, frequency "once per session".
Product page, after 25 seconds: Not sure about the size? This one fits true to size, and exchanges are free within 30 days. Ask me if you're between sizes.
Cart page, after 10 seconds: Free US shipping kicks in at $75, and orders placed before 2 pm ET ship today. Anything I can check before you head to checkout?
Shipping policy page, on scroll past 50%: Looking for a delivery date? Tell me your zip code or postcode and I'll give you an estimate.
Keep bubbles to one at a time, with the agent avatar and name visible; bubbles that stack or pulse endlessly get the widget closed for good. For more examples, see 12 proactive chat messages by page.
AI first, with the catalog as knowledge base
This works without adding headcount because an AI agent can answer the six questions on its own. In Omnifox you pick an agent (retail templates exist), load the knowledge base with policy pages, size guides and the catalog, and set the response strategy to "always" or "only the first message". The agent replies in the shopper's language, can create an order or quote through its tools, and hands off to your team when someone asks for a human or asks about an existing order it cannot see.
A typical exchange on a UK store selling outdoor jackets:
Shopper: I'm normally a UK 12 but I have broad shoulders, would the Ridge jacket in 12 be tight?
AI agent: The Ridge is cut slightly roomy through the shoulders, so a 12 should work. If you'd rather be safe, order both 12 and 14 and return the one that doesn't fit; exchanges and returns are free within 30 days in the UK. Both sizes are in stock in Forest Green and Slate right now.
Shopper: Great. If I order now will it arrive before Thursday? I'm in Leeds.
AI agent: Yes. Orders placed before 3 pm ship the same day by tracked 48-hour service, so an order today should be with you by Wednesday.
Nobody on the team touched that conversation, and the shopper never left the product page. Before going live, run the agent in the simulator with the awkward questions (a discontinued color, a destination you don't serve) and fix the knowledge base until the answers are right.
After-hours and the shared inbox
Retail traffic peaks in the evening, and a US store with UK customers gets questions at 3 am Central. Set business hours, keep the AI agent active outside them, and enable the after-hours form so anything the AI cannot resolve creates a conversation with a name and email. In the morning your team sees it in the same shared inbox as Instagram DMs, Messenger and email, with the product page, referrer and UTM parameters on the contact. Follow-ups go out by email or SMS, or by WhatsApp for customers who already use it.
Frequently asked questions
Can I add chat to Shopify without installing an app?
Yes. Paste the one-line widget script into theme.liquid right before </body>, or add it as a Custom Liquid block in the footer of an Online Store 2.0 theme. No App Store app is needed.
Does the chat widget show on the Shopify checkout page?
Not on standard plans. Shopify restricts scripts on checkout, so the widget appears on product, collection, cart and policy pages but stops at checkout unless you are on Shopify Plus with checkout extensibility.
Can the AI agent answer questions about a specific order?
Only if your order data is connected via API, webhooks or n8n; otherwise it answers from the knowledge base and tools. Until then, configure the agent to hand order questions to your team.
Will the widget slow down my store?
It is one asynchronous script that does not block rendering. Keep it to that single line and do not stack a second chat app on top.
Sell before checkout
Adding chat to your Shopify store is a five-minute install and an afternoon of writing good answers to six questions. Omnifox's website chat is included in every plan, the AI agent answers from your catalog and policies, and your team picks up the rest in one inbox. Start a 7-day free trial and put the first proactive message on your busiest product page tonight.
Ready to try it in your business?
Bring WhatsApp, Instagram, Messenger, email and calls into one inbox, and let AI handle the first reply. Set it up today.
7 days free. No credit card required.
Read more
-
Shared Inbox vs Help Desk Tickets vs Email Aliases
-

AI for Multilingual Customer Service: Sell Without Borders
-

WhatsApp API Error Codes Explained: 131031, 131047, 130429 and What to Do
-

How to Build a Sales Pipeline Inside WhatsApp, Step by Step
-

The Best Help Desk Software in 2026
-

RCS Business Messaging: The Definitive Guide for Businesses
-

Facebook Messenger Message Templates That Convert
-

Omnichannel vs Multichannel: The Difference That Actually Matters
Comments (0)
No comments yet. Be the first to share your thoughts.
Leave a comment
Your email is never published. Comments are moderated before appearing.