How to Add an AI Sales Agent to Your Shopify Store in 10 Minutes (No Code)
Here is the short version. You paste your store URL into SparkGPT, the platform reads your products and pages, and you get an AI agent trained on your store. Then you copy one line of code into your Shopify theme, right before the closing body tag. Total time is about 10 minutes, and you do not need a developer. The Free plan lets you build and test the whole thing without a credit card.
The rest of this guide walks through each step, covers the errors that trip people up during installation, and shows you how to check whether the agent is actually producing orders. That last part matters most, because a chat widget that answers questions but never sells is just a cost.
Before You Start: What You Need
Three things, all of which you probably already have:
- Admin access to your Shopify store, so you can edit the theme
- Your store URL, for example yourstore.com or yourstore.myshopify.com
- About 10 minutes
You do not need any knowledge of Liquid templates. The embed is a standard script tag, the same kind of code Shopify merchants already use for analytics pixels. The only key involved is a widget key that SparkGPT generates with one click and places inside the snippet for you. If you would rather not edit your theme at all, install SparkGPT from the Shopify App Store instead: the agent is trained on your store automatically and you switch it on in the theme editor.
Step 1: Create Your Agent From Your Store URL
Go to www.sparkgpt.ai and enter your store URL. SparkGPT crawls your product pages, collections, FAQ, shipping policy, and about page, then builds an agent that knows your catalog and your policies.
Two practical tips at this stage:
- Enter your custom domain if you have one, not the myshopify.com address, so the agent learns the version of the store your customers actually see.
- If some products are hidden or in draft status, publish them first. The crawler can only read what a visitor can see.
The crawl usually finishes in two to three minutes for a store with under 500 products. Larger catalogs take longer, so start the crawl and go make coffee.
Step 2: Test the Agent Before It Touches Your Store
Once the crawl finishes, you get a preview chat window. Ask it the questions your customers ask every day. Good tests include:
- "Do you ship to Canada, and how much does it cost?"
- "What is the difference between your two bestselling products?"
- "Can I return this if it does not fit?"
If an answer is wrong or missing, the fix is almost always a content fix on your store. The agent answers from your pages, so a vague shipping policy on your site produces a vague answer in chat. Tighten the source page, recrawl, and test again. This preview stage is unlimited on the Free plan, so test as long as you want before anything goes live.
Step 3: Embed One Line of Code in Your Theme
When the answers look right, find the Deploy Your Agent card in the agent editor. Under Embed your agent, click the button to generate your widget key, then copy the embed snippet that appears. It looks like this, with your own widget key already filled in:
<script src="https://admin.sparkgpt.ai/widget.js" data-api-key="YOUR_WIDGET_KEY"></script>
In Shopify admin, go to Online Store, then Themes, then click the three dot menu on your current theme and choose Edit code. Open the file called theme.liquid under Layout. Scroll to the bottom and paste the snippet on its own line, directly above the closing body tag. Click Save.
Open your storefront in a new tab. The chat bubble should appear in the bottom right corner within a few seconds. That is the whole installation.
Common Errors and How to Fix Them
Most installs work on the first try. When they do not, it is nearly always one of these five problems.
The widget does not appear at all. First check that you edited the live theme, not a draft or a backup copy. Shopify lists every theme in your library, and the code editor opens whichever one you clicked. Only the theme marked Current affects your storefront. Second, hard refresh the page, because your browser may be serving a cached version. On Windows that is Ctrl plus Shift plus R.
The widget appears in preview but not on the live site. Some page speed apps and cookie consent apps block third party scripts until a visitor accepts cookies. Check your consent tool's settings and add the SparkGPT script to its allowed list, usually under a functional or essential category.
Two chat bubbles show up. You have another chat app still enabled, often Shopify Inbox or a trial you forgot about. Go to Apps in Shopify admin and disable the old one, or remove its app embed under Theme settings, App embeds. Running two chat widgets confuses visitors and both will convert worse.
The agent gives outdated answers after you change products. The agent answers from its last crawl. After a significant catalog or policy change, trigger a recrawl from your SparkGPT dashboard so the agent picks up the new content.
The snippet disappeared after a theme update. Publishing a new theme replaces theme.liquid, and manual code edits do not carry over. Whenever you switch or update themes, paste the snippet into the new theme's theme.liquid. It takes 30 seconds and is the most common reason a working agent silently goes offline weeks later.
How to Verify the Agent Is Actually Making Sales
This is the section most setup guides skip, and it is the difference between a toy and a tool. A chatbot that "engages visitors" is not a business result. An agent that produced $2,300 in orders last month is.
SparkGPT handles attribution with a 24 hour window: when a visitor talks to the agent, that session is tagged, and if the visitor places an order within 24 hours, the order is counted as agent attributed and appears in your ROI dashboard with the order value. A 24 hour window is deliberately conservative. A customer who chats on Monday and buys on Friday is a sale the agent helped make but you are never billed for, because it falls outside the window. The attribution model errs in your favor. On the Growth plan, the dashboard shows every attributed order, so you can audit the list line by line.
To satisfy yourself the numbers are real, cross check them against Shopify:
- Open the ROI dashboard and note three attributed orders, with dates and amounts.
- In Shopify admin, go to Orders and find those same orders by date and value.
- Open each order's timeline. Each order should sit within 24 hours of the conversation the dashboard links it to.
Do this once in your first month. After you have confirmed the attribution logic against your own order data, you can trust the dashboard and stop checking manually. A working example of this loop in production is Tastea, a Shopify tea store that runs SparkGPT as its sales agent and reconciles attributed orders against Shopify order data.
If you want a second, independent signal, create a discount code that only the agent gives out, for example CHAT5 for 5 percent off. Any order using that code came through a conversation, no attribution model required.
What It Costs, and Why the Pricing Model Matters
Most chatbot platforms charge a flat subscription whether or not the bot brings you any business. Verified pricing as of September 2026:
| Platform | Entry paid plan | What you pay when it sells nothing |
|---|---|---|
| SparkGPT Growth | $2.99 per month plus 5% of attributed sales | $2.99, and the 5% is $0 |
| Chatbase | $40 per month for 700 message credits, $150 for 4,000 | Full subscription, credits expire |
| Tidio with Lyro AI | $29 per month base, Lyro from $39 per month for 50 AI conversations | Both subscriptions |
| Shopify Inbox | Free | Nothing, but you answer every chat yourself |
Fair credit where due. Shopify Inbox is genuinely free and well integrated, and it is the right choice if you want to personally answer every chat. Chatbase is the biggest name in the category with a polished product. Tidio is a mature platform with strong live chat tooling.
The structural difference is what happens to your risk. With credit or conversation based pricing, a busy month costs you more even if none of those conversations buy. With SparkGPT's model, the meaningful part of the bill only exists when attributed orders exist. You only pay when SparkGPT makes you a sale. The $2.99 covers unlimited conversations, so a traffic spike raises your potential upside, not your bill. For a small store owner watching fixed costs, that is the difference between a bet and an expense. And since the Free plan covers building and testing one agent, the cost of finding out whether it works for your store is zero. For a deeper side by side, see our SparkGPT vs Chatbase comparison.
Sales Agent vs Support Chatbot: Set It Up to Sell
One configuration note before you finish. Most Shopify chat tools are built to deflect support tickets, so their default behavior is to answer and stop. A sales agent should answer, then move the conversation forward. When a visitor asks about shipping to Canada, the agent should confirm the shipping cost and then ask what they are looking to order, or point to the product the visitor was viewing.
SparkGPT's agents are configured for this selling behavior by default. If you have a specific bestseller or a bundle you want pushed, tell the agent in its instructions. The stores that get the most out of an agent treat it like a new sales hire: give it a goal, review its conversations in week one, and correct it where it is timid.
Frequently Asked Questions
Do I need a Shopify app from the app store?
No, but there is one if you prefer it. The script tag in this guide works on every Shopify plan. SparkGPT is also on the Shopify App Store, where installing trains the agent on your store automatically and you turn it on in the theme editor, with no code to paste.
Will the script slow my store down?
The snippet sits at the very end of your page, after all of your content, so your products, images and text render before the chat widget loads. The widget itself is a single small script, and its settings are fetched from SparkGPT's servers rather than bundled into your theme.
Does this work on Shopify Plus or older themes?
Yes. Any theme with a theme.liquid layout file works, which is every Shopify theme, vintage or Online Store 2.0.
How does SparkGPT know which orders the agent produced?
When a visitor chats with the agent, that session is tagged. An order placed within 24 hours of the conversation is counted as agent attributed and listed in your ROI dashboard, where you can audit every order against your Shopify order data.
What happens when the agent cannot answer?
It says so and collects the customer's question and email for you to follow up, rather than inventing an answer. You will see these gaps in your dashboard, and each one tells you which store page to improve.
Go Live This Afternoon
The full path is: enter your URL at www.sparkgpt.ai, test the agent against your ten most common customer questions, paste one line into theme.liquid, and cross check your first attributed orders in week one. Building and testing your agent is free, with no credit card. Start now and your store has a salesperson working tonight while you sleep.
Build your agent free and see what it sells
Paste your URL and get a working sales agent in about ten minutes. Test it against the questions your customers actually ask. It costs $0, needs no credit card, and never expires. When it goes live, you pay $2.99 a month plus 5% of the sales it is credited with.
Build My Agent Free →No credit card required. Your agent is ready to test in about 10 minutes.