SmartBrain

WhatsApp Business API for Shopify: From Opt-In to Purchase Inside One Thread

2026-06-26 · WhatsApp Business API, Shopify DM automation, conversational commerce, WhatsApp opt-in, ecommerce chatbot

What Is the WhatsApp Business API for Ecommerce?

The WhatsApp Business API is a programmatic interface that lets businesses send and receive WhatsApp messages at scale — beyond the limits of the standard Business app. For Shopify merchants, it means you can connect your store's order data, product catalog, and customer list to a messaging layer that 2 billion people already use daily. Unlike a regular chatbot, an API-connected workflow can read live inventory, trigger messages on store events (abandoned cart, shipment update, back-in-stock), and collect payment confirmation — all without asking the shopper to open another app.

How Does the Opt-In Step Work on WhatsApp?

WhatsApp requires explicit opt-in before you can message a customer outside of a 24-hour reply window. For Shopify stores, the three most common opt-in surfaces are:

Each opt-in must record the customer's phone number, the timestamp, and the surface where consent was given. Store this in your CRM or in a Shopify metafield so you have an audit trail. Sending without a logged opt-in is a policy violation that can suspend your WhatsApp Business Account.

What Happens Inside the Thread After Opt-In?

Once a customer is opted in, the conversation can move through the entire purchase funnel without the shopper ever leaving WhatsApp. A typical sequence looks like this:

The critical detail in the recommendation step is who decides which product to show. A well-architected system queries your actual Shopify inventory, filters by price range, checks stock, and only then passes a product ID to the message template. This is the model SmartBrain uses: the server selects the right SKU, and the AI writes persuasive copy around it — not the other way around. That distinction prevents the common failure mode where a chatbot enthusiastically recommends a product that is out of stock or outside the customer's stated budget.

WhatsApp vs. Email for Shopify Abandoned Cart Recovery

The comparison most store owners ask about is WhatsApp versus email for cart recovery. Here is an honest side-by-side:

The practical answer for most Shopify merchants: use both. Trigger the WhatsApp cart recovery message 30 minutes after abandonment; follow up with email at the 4-hour mark. The channels reinforce each other rather than compete.

How Do You Connect WhatsApp Business API to Shopify?

There are three integration paths, each with a different effort-to-control tradeoff:

What Message Templates Are Approved for Commerce?

WhatsApp requires all outbound messages outside a 24-hour reply window to use pre-approved templates. For ecommerce the most useful approved categories are:

Templates must be submitted through Meta's Business Manager and typically reviewed within 24–48 hours. Keep template copy factual and avoid superlatives ("the best", "guaranteed") to reduce rejection risk.

FAQ

Can a customer complete a full purchase without leaving WhatsApp?

Yes, with WhatsApp Pay (available in India and Brazil) or via a Shopify checkout link sent in the thread. Most Western markets rely on the checkout link approach, which opens the browser for payment and then returns a confirmation message to the thread.

What happens if my product goes out of stock between the recommendation and the click?

With a naive integration, the customer clicks a dead link. With a catalog-first engine like SmartBrain, the recommendation step queries live stock immediately before sending, so the link reflects current availability. As a fallback, configure your Shopify checkout to surface an "out of stock" message rather than a 404.

How many messages can I send per day?

WhatsApp Business API uses a tiered messaging limit starting at 1,000 unique contacts per day for new accounts. Limits increase to 10,000 and then 100,000 as your account builds a quality rating over 7–30 days. Sending rate also depends on your messaging tier; start conservatively and scale gradually.

Is WhatsApp marketing GDPR-compliant?

It can be, but it requires documented opt-in records, a working unsubscribe mechanism (typically replying STOP), and a privacy policy that names WhatsApp as a processing channel. Consult a legal professional for your specific jurisdiction before launching campaigns to EU residents.

What is the biggest mistake Shopify stores make with WhatsApp automation?

Recommending products based on AI output alone without checking live inventory first. The result is customer friction when the linked product is unavailable. The fix is architectural: run catalog validation server-side before the message is composed, not after. That separation of responsibility — server decides, AI writes — is the core principle behind a well-designed conversational commerce stack.

Try SmartBrain free on your store — watch it qualify a shopper and recommend the exact in-stock product, in minutes. Free plan, instant setup, no rebuild.

Start free →