How to Connect Shopify to WhatsApp Automations

Last updated: AnswerForMe
Share:

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

  1. Log in to AnswerForMe
  2. Go to E-commerceAPI Keys tab
  3. Click Generate Key
  4. Enter a name (e.g., "My Shopify Store") and select Shopify as the WhatsApp Payments
  5. Copy the API key immediately — you won't see it again

Step 2: Install enterprise chatbot Templates

  1. Go to E-commerceTemplates tab
  2. Browse the Template Library for pre-built e-commerce templates
  3. Click Install on the templates you want (e.g., cart recovery, order confirmation)
  4. Templates are automatically submitted to WhatsApp for approval

Step 3: Create Automation Rules

  1. Go to E-commerceAutomations tab
  2. Click Create Rule
  3. 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)
  4. Click Create Rule

Step 4: Configure Shopify Webhooks

  1. In your Shopify admin, go to SettingsNotificationsWebhooks
  2. Click Create webhook
  3. 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
  1. For each webhook, set:
    • Format: JSON
    • URL: https://api.answerforme.io/api/ecommerce/webhook/shopify
    • Add the header X-API-Key with 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

  1. Place a test order in your Shopify store
  2. Check the Events Log tab in AnswerForMe to see incoming events
  3. Verify the WhatsApp message was sent to the customer's phone

How it works

Shopify Event → Webhook → AnswerForMe API → Match Automation Rule → Send WhatsApp
  1. A customer action triggers a Shopify event (e.g., abandoned checkout)
  2. Shopify sends a webhook to AnswerForMe's native Shopify endpoint
  3. AnswerForMe extracts the customer phone, name, and order details
  4. The automation engine matches the event to your rules
  5. 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?

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.

Ready to Automate?

Start automating your WhatsApp conversations today.

See plans

Reconnecting...

Please wait while we restore the connection.

Connection lost

We couldn't automatically restore the connection.

Reload page

Session updated

Reload the page to continue.

Continue