How to Connect Shopify to WhatsApp bot Automations
Send automatic AI Agent for WhatsApp messages to your Shopify customers for abandoned carts, order confirmations, shipping updates, and more. This guide walks you through the complete setup in under 15 minutes.
What you'll need
- An AnswerForMe account with an active conversational AI connection
- A Shopify store (any plan)
- Admin access to your Shopify dashboard
Step 1: Generate your API Key
- Log in to AnswerForMe
- Go to E-commerce → API Keys tab
- Click Generate Key
- Enter a name (e.g., "My Shopify Store") and select Shopify as the WhatsApp Payments
- Copy the API key immediately — you won't see it again
Step 2: Install enterprise chatbot Templates
- Go to E-commerce → Templates tab
- Browse the Template Library for pre-built e-commerce templates
- Click Install on the templates you want (e.g., cart recovery, order confirmation)
- Templates are automatically submitted to WhatsApp for approval
Step 3: Create Automation Rules
- Go to E-commerce → Automations tab
- Click Create Rule
- Configure:
- Name: "Cart Recovery" (or your preferred name)
- Trigger Event: Select the event type (e.g., "Cart Abandoned")
- Template: Choose the installed template
- Delay: Set minutes to wait before sending (e.g., 30 min for cart recovery)
- Click Create Rule
Step 4: Configure Shopify Webhooks
Option A: Shopify Admin (Recommended)
- In your Shopify admin, go to Settings → Notifications → Webhooks
- Click Create webhook
- Configure each event you want:
| Shopify Event | AnswerForMe Maps To |
|---|---|
| Checkout creation | Cart Abandoned |
| Order creation | Order Confirmed |
| Order payment | Order Confirmed |
| Fulfillment creation | Order Shipped |
- For each webhook, set:
- Format: JSON
- URL:
https://api.answerforme.io/api/ecommerce/webhook/shopify - Add the header
X-API-Keywith your AnswerForMe API key
Option B: Shopify Flow (Plus plans)
If you have Shopify Plus, you can use Shopify Flow to trigger webhooks with more control over timing and conditions.
Step 5: Test the Integration
- Place a test order in your Shopify store
- Check the Events Log tab in AnswerForMe to see incoming events
- Verify the WhatsApp message was sent to the customer's phone
How it works
Shopify Event → Webhook → AnswerForMe API → Match Automation Rule → Send WhatsApp
- A customer action triggers a Shopify event (e.g., abandoned checkout)
- Shopify sends a webhook to AnswerForMe's native Shopify endpoint
- AnswerForMe extracts the customer phone, name, and order details
- The automation engine matches the event to your rules
- The configured WhatsApp template is sent to the customer
Supported Shopify Events
- Checkout Creation → Cart Abandoned recovery messages
- Order Creation/Payment → Order confirmation with details
- Fulfillment Creation → Shipping notification with tracking
- Order Fulfillment → Delivery confirmation and follow-up
Tips for Better Results
- Cart recovery timing: Set a 30-60 minute delay for cart abandoned messages. Too fast feels pushy, too slow loses interest.
- Keep messages short: WhatsApp messages should be concise and actionable.
- Include order details: Use template variables for order number, total, and product names.
- Respect opt-out: Always include an option for customers to opt out of messages.
Troubleshooting
| Issue | Solution |
|---|---|
| Events not appearing | Check your API key is correct and active |
| "No phone" events skipped | Customer didn't provide a phone number at checkout |
| Template not sending | Ensure the template is approved by WhatsApp |
| Duplicate messages | AnswerForMe automatically deduplicates events by external ID |
Next Steps
Frequently Asked Questions
What do I need to get started?
You need a WhatsApp Business account and access to the WhatsApp Business API. Create your free account to get started in minutes.
Is this suitable for small businesses?
Absolutely. AnswerForMe works for businesses of all sizes — from solo entrepreneurs to large enterprises.
How quickly can I see results?
Most businesses report improved response times and customer engagement within the first week of setup.
Frequently Asked Questions
What do I need to get started?
Is this suitable for small businesses?
How quickly can I see results?
Table of Contents
Quick Facts
- Published on 2026-01-27
- 4 min read
- Guides
Expert Insight
AI-powered WhatsApp chatbots don't just answer questions: they learn from context, adapt their tone, and integrate with your CRM or e-commerce. To maximize ROI, start with specific use cases (e.g., L1 support, order confirmations) and expand gradually.