Back to all Posts
Blog Luca Borreani Luca Borreani Last updated: Apr 27, 2026

WhatsApp chatbot for ecommerce: build guide, API setup, and Meta compliance

Summarize with:
What you will learn

Zipchat AI

37.8% avg. conversion lift

Your AI Agent live in under 1 hour

No code. Trained on your catalog. Converts on every channel.

Create free Agent Book a demo
Free course

Learn Agentic Commerce

Earn certification and merch rewards. No credit card needed.

Start now →

WhatsApp chatbot for ecommerce: build guide, API setup, and Meta compliance

Summary: A WhatsApp chatbot connects to the WhatsApp Business API to handle customer messages autonomously. AI-powered chatbots fail at under 5% of queries. Rule-based chatbots fail at 30%. This guide covers the WhatsApp Business API requirements, step-by-step build process, Meta template approval rules, compliance checklist, AI vs. rule-based comparison, and how Zipchat deploys on Shopify stores without custom development.


What a WhatsApp chatbot does

Answer: A WhatsApp chatbot is an automated system connected to the WhatsApp Business API that handles inbound customer messages at scale. When a customer messages your WhatsApp number, the chatbot responds in real time: answering product questions from your catalog, retrieving order status from Shopify’s API, processing returns within policy, and referring complex cases to a human agent.

The key distinction: a WhatsApp chatbot is not the WhatsApp Business App (free, manual, one device). It is an API-connected system that works 24/7, handles unlimited simultaneous conversations, and knows your entire product catalog before a customer sends the first message.

For the complete WhatsApp marketing strategy, see the WhatsApp marketing guide. For automation sequences, see WhatsApp automation for Shopify.

For the full cluster context: WhatsApp commerce hub.


Rule-based vs. AI-powered WhatsApp chatbots

The platform choice defines the ceiling. Rule-based chatbots are fast to deploy and cheap but fail at 30% of queries. AI-powered chatbots take longer to configure but handle natural language and fail at under 5%.

DimensionRule-basedAI-powered (Zipchat)
Setup timeHours2 to 4 hours
Natural languageNoYes
Handles off-script queriesNoYes
Product catalog knowledgeManual configurationAutomatic from Shopify sync
Failure rate30%Under 5%
Multi-step reasoningNoYes
Learning from conversationsNoYes
Escalation logicRule-triggeredIntent + sentiment

The 25-point failure rate gap is not a statistical detail. It is where sales live. A customer asking “is this supplement safe for someone with celiac disease?” with a rule-based chatbot gets “I didn’t understand that.” With an AI chatbot, they get an accurate answer from the product ingredient list and a checkout link.

Tropicfeel automated 85% of customer inquiries with an AI-powered system. Read the Tropicfeel story.


WhatsApp Business API requirements

Before building a chatbot, you need API access. Three requirements:

1. Meta Business Account (verified). Go to business.facebook.com. Create or claim your business account. Complete verification: legal business name, business phone number, website URL. Verification takes 1 to 5 business days. If you run Meta Ads, your account is likely already verified.

2. Dedicated phone number. The number used for WhatsApp Business API cannot be registered to any existing WhatsApp account (consumer app, WhatsApp Business App). Options: a new SIM card, a VoIP number, or a landline that can receive a call for verification. Numbers with existing WhatsApp registrations must be deregistered before they can be used with the API.

3. Business Solution Provider (BSP) or direct API access. Options:

  • Direct Meta Cloud API: Free but requires developer setup. Suitable for teams with engineering resources.
  • BSP (Zipchat, Twilio, 360dialog, Vonage): Managed API access. The BSP handles the API connection; you configure the chatbot behavior in the BSP dashboard. Faster to deploy, lower ongoing maintenance.

Zipchat is a BSP: WhatsApp API access is included in your Zipchat subscription. No separate Meta Cloud API setup required.


Step-by-step: building a WhatsApp chatbot on Shopify with Zipchat

Phase 1: Account and API setup (Day 1, ~2 hours)

  1. Verify your Meta Business Account at business.facebook.com.
  2. Obtain a dedicated phone number (new SIM or VoIP).
  3. Install Zipchat from the Shopify App Store.
  4. In Zipchat: Channels > WhatsApp > Connect. Enter your WhatsApp Business Account ID and phone number ID from Meta Business Manager. Zipchat establishes the API connection and activates your sending number.

Phase 2: Template creation and submission (Day 1-2, ~30 minutes)

  1. In Zipchat: Templates > New Template. Create templates for:
    • Abandoned cart recovery (3 messages)
    • Order confirmation (1 message)
    • Shipping dispatch (1 message)
    • Post-purchase follow-up (1 message)
  2. Submit all templates for Meta review. Review takes 24 to 48 hours.

Phase 3: AI knowledge base configuration (Day 2-3, ~2 hours)

  1. Zipchat imports your Shopify product catalog automatically. Review the imported knowledge: product descriptions, pricing, variants, policies.
  2. Add supplementary knowledge: shipping times, return policy details, FAQ answers your team handles frequently.
  3. Set escalation rules: what question types escalate to a human agent (disputes above $X, returns beyond Y days, negative sentiment).

Phase 4: Opt-in collection setup (Day 3)

  1. In Zipchat: Checkout Opt-In. Enable the WhatsApp opt-in checkbox on your Shopify checkout page. Configure consent text: “I agree to receive order updates and marketing messages via WhatsApp from [Store Name].”
  2. Enable GDPR consent recording (timestamp + consent text stored per customer).

Phase 5: Automation activation (Day 3-4)

  1. Once templates are approved, activate automation sequences: cart recovery, order confirmation, shipping updates, post-purchase.
  2. Set delay timings: cart recovery message 1 at 60 minutes, message 2 at 24 hours, message 3 at 72 hours. Activate stop conditions.

Phase 6: Test and go live (Day 4)

  1. Place a test order. Abandon the checkout. Confirm message 1 fires correctly. Check variable substitution (product name, customer name, checkout link).
  2. Complete the test order. Confirm order confirmation fires. Confirm stop condition prevents cart recovery messages 2 and 3.
  3. Review AI responses by sending test questions via WhatsApp: product questions, order status, return request, off-topic question.
  4. Go live.

Meta compliance: the 8 rules that matter

1. Opt-in required. You cannot send outbound marketing messages to contacts who have not explicitly opted in to receive WhatsApp messages from your brand. A phone number collected without WhatsApp consent is not a valid WhatsApp marketing contact.

2. Templates required for outbound. All messages sent to contacts outside a 24-hour active conversation require pre-approved templates. Free-form messages are only allowed in response to a customer-initiated conversation within 24 hours.

3. Opt-out in every message. Every outbound message must include a clear opt-out mechanism: “Reply STOP to unsubscribe” or equivalent. Customers who opt out must be removed from future marketing sends immediately.

4. No prohibited content. Templates cannot contain: adult content, alcohol marketing without age disclaimers, financial services without required disclosures, gambling content in markets where it is restricted. Review Meta’s commerce policy for your specific product category.

5. Template category accuracy. Submit templates in the correct category: Marketing (promotional), Utility (transactional), or Authentication (OTPs). Submitting a promotional template as Utility to get lower per-message pricing is a policy violation.

6. Protect your quality rating. Opt-out rates above 2% per campaign damage your number’s quality rating. A Red quality rating restricts daily messaging volume. Segment your audience and send relevant messages to protect the rating.

7. GDPR (for EU/EEA customers). Consent must be explicit and specific. Store consent records with timestamp and consent text. Do not use pre-ticked checkboxes. Data processing must align with the stated purpose.

8. Approved number registration. Your WhatsApp Business API number must be registered and approved by Meta. Numbers cannot be shared across Meta platforms (cannot run WhatsApp API and WhatsApp Business App on the same number simultaneously).


What good looks like: chatbot performance benchmarks

MetricUnderperformingTargetTop performers
Containment rateBelow 50%70% to 80%85%+
First response timeOver 10 secondsUnder 5 secondsUnder 1 second
Cart recovery rateBelow 8%12% to 18%20%+
CSAT (AI-handled)Below 75%80% to 90%90%+
Opt-out rate/campaignAbove 3%Below 2%Below 1%
Escalation rateAbove 40%15% to 25%Below 15%

Family Nation automated 80% of inquiries, meaning their containment rate is 80%. Read the Family Nation story. That is the 2026 production baseline for well-deployed AI chatbots.


When the chatbot fails: common failure modes

Failure: AI gives wrong product information. Cause: catalog sync is stale or product descriptions are incomplete. Fix: Schedule daily Shopify catalog syncs. Complete product descriptions to include all compatibility, ingredient, and technical information customers ask about.

Failure: Cart recovery fires after order is completed. Cause: stop condition not configured or Shopify order webhook delay. Fix: Set stop condition to “order confirmed” not “checkout started.” Add a 15-minute grace window before message 1 to account for payment processing delays.

Failure: Template rejected by Meta. Cause: vague CTA, wrong category, or flagged content. Fix: Make the CTA specific (“Complete your purchase at [URL]”). Confirm the category matches the template’s purpose. Review Meta’s template policy before resubmitting.

Failure: Low containment rate (under 50%). Cause: insufficient knowledge base coverage or AI not trained on your specific product range. Fix: Review unanswered questions in Zipchat analytics. Add the top 20 unanswered questions to the knowledge base. Re-evaluate escalation thresholds.



Build your WhatsApp chatbot in a week

Zipchat deploys on Shopify without custom development. AI knowledge from your catalog, automated sequences, and Meta compliance built in.

See WhatsApp features or book a demo to see the chatbot configured for your product catalog.