Bubblegum Middleware: Optimizing Your Site for AI Search
The way people search online is changing—fast.
In the past, discovery meant typing into Google, clicking through websites, and browsing traditional search results. But today, more shoppers are turning to LLM-powered tools like ChatGPT, Perplexity and Claude to find products, compare options, and get instant recommendations—without ever clicking a search result.
In 2024, LLMs made up roughly 4% of total search traffic.
But by 2027, they’re projected to power 50% or more of online discovery.
This shift is already impacting how people discover brands, especially in eCommerce. Unlike human visitors, AI tools don’t scroll through your homepage or browse collections. They scan your site for clean, structured information that answers questions directly.
That’s where Bubblegum comes in.
Bubblegum translates your entire website into the language of AI—turning product and collection pages into clean, structured Markdown content that’s easy for large language models to understand, parse, and recommend.
But translation alone isn’t enough. Bubblegum also acts as an intelligent traffic router—detecting AI crawlers in real time and sending them directly to that optimized content, while keeping the human shopper experience completely unchanged.
How It Works — In Plain Terms
Invisible Assistant at the Gate
A small helper sits invisibly at the entry point of your site to determine if the visitor is an AI tool or a regular shopper.
AI Sees a Smarter Version
If the visitor is AI, it’s shown a simplified, structured version of your page (like a product summary). It’s easier for AI to use.
Other Visitors See the Same Great Site
All human visitors and search engines get the usual version—no disruption, no changes to their experience.

Setup Overview
Getting started is simple — and your Web or IT team can take care of the technical pieces using a step-by-step guide we provide.
Here’s what the process looks like:
Setup Cloudflare
We set up a connection through Cloudflare so that AI tools can be detected when they visit your site. This does not require taking your site offline or rebuilding anything.
Activate the Middleware
We use a lightweight helper tool that quietly shows AI a simplified version of your pages (like a clean product overview), while human visitors continue seeing your normal site.
Verify Everything’s Working
We’ll help test to make sure AI traffic is being routed properly.
For your Web or DNS team: Please share this technical guide with them to handle setup: 👉 How to Install Bubblegum: Developer Guide
Bottom Line:
No changes to your product pages or checkout flow.
No extra strain on your site speed.
Completely behind-the-scenes, for both shoppers and your team.
Why We Use Cloudflare
Cloudflare is a trusted global platform that helps websites run faster and stay secure. If you’re on Shopify, you’re already using Cloudflare — it’s the system Shopify uses to protect your storefront from threats and keep it loading quickly.

So where does Bubblegum fit in?
Bubblegum doesn’t replace or interfere with anything Cloudflare is already doing. Instead, we add an extra layer on top of it — specifically for AI traffic.
Think of it like this:
Cloudflare is already checking: “Is this visitor safe?”
Bubblegum adds: “Is this visitor an AI bot, and should we show it something different?”
This integration happens invisibly and securely, without needing changes to your Shopify setup. It builds on the tools you already trust — no need to switch platforms or manage extra complexity.
If you don’t yet use Cloudflare, you’ll need to set up an account in order to install Bubblegum. Your DNS settings will be managed through Cloudflare going forward, instead of your original domain provider—so be sure to save your login information.
Note: Your domain’s annual auto-renewal will still be managed through your original provider (like GoDaddy, Namecheap, etc.).
Why Does Bubblegum Require Cloudflare?
Some people ask: “Can’t we just keep our current DNS provider?”
Here’s why Cloudflare is a must-have for Bubblegum:
1. Your domain registrar is just an address book
Platforms like GoDaddy, Namecheap, or Google Domains sell and renew domain names—that’s it.
They don’t handle traffic, visitor types, or routing decisions. Think of them like the Yellow Pages—they list your address, but don’t manage who shows up or what happens next.
2. Cloudflare is a traffic controller, not just a registrar
Cloudflare sits in front of your site and looks at every incoming request. Before a visitor reaches Shopify or Webflow, Cloudflare:
Detects whether the visitor is an AI bot or a real human
Routes each type of visitor to the right destination
Does all of this instantly, without interrupting anything for the shopper
3. Routing is the real unlock—especially for AI
Even if you’ve created a perfect, AI-readable version of your product page in Markdown, it won’t matter if AI tools can’t find it.

Without proper traffic routing:
AI bots may never discover the content you worked hard to create
The wrong version of your site gets crawled (often bloated HTML or JS)
Your visibility in AI search tools suffers—even if your content is technically optimized
Bubblegum’s traffic routing ensures that AI bots are actually shown your AI-friendly pages.
It’s the difference between hoping your content gets seen… and guaranteeing it.

Frequently Asked Questions:
Last updated
Was this helpful?

