đź’¬ Recover Shopify abandoned carts with email, SMS, WhatsApp & Facebook retargeting

⚡ 1,407 views · 💬 Lead Nurturing & AI Sales Agents

💡 Pro Tip — If you’ve run into Facebook’s Graph API permission restrictions, ScraperNode is a community node that scrapes pages, groups, posts, and comments directly — no app review needed.

View All Scrapers

Description

This workflow is a complete, production-ready solution for recovering abandoned carts in Shopify stores using a multi-channel, multi-touch approach. It automates personalized follow-ups via Email, SMS, and WhatsApp, tracks every customer interaction for multi-touch attribution, and enables advanced retargeting and analytics.

Key features:


What does this workflow do?

  1. Listens for abandoned cart events from Shopify (or any e-commerce platform) via webhook.
  2. Normalizes and enriches cart data by fetching full cart details and customer purchase history.
  3. Predicts the likely reason for abandonment (e.g., price sensitivity, checkout complexity, technical issues) using rule-based logic.
  4. Segments the customer (new, returning, VIP), assigns an A/B test group, and generates a personalized discount and checkout URL.
  5. Runs a timed, multi-channel recovery sequence:
    • 1 hour after abandonment: Checks if the order is completed. If not, sends a personalized Email #1 and logs the touchpoint.
    • 4 hours after abandonment: Checks again. If not recovered, sends an SMS with a discount code and logs the touchpoint.
    • 24 hours after abandonment: Checks again. If not recovered, sends Email #2 (with social proof/urgency) and logs the touchpoint.
    • 48 hours after abandonment: Final check. If not recovered, sends a WhatsApp reminder and logs the touchpoint.
  6. If the cart is still not recovered: Hashes customer identifiers and adds them to a Facebook Custom Audience for retargeting.
  7. Logs every touchpoint (email, SMS, WhatsApp) to a Google Sheet for multi-touch attribution analysis.
  8. Sends a Slack notification if a high-value cart is recovered.

Why is this workflow useful?


How to install and configure

1. Prerequisites

2. Setup steps

  1. Import the workflow into your n8n instance.
  2. Configure the “Workflow Configuration” node:
    • Set your Shopify domain, API URLs, Google Sheets ID, and high-value threshold.
  3. Connect all required credentials in the respective nodes:
    • Shopify, SendGrid, Twilio, WhatsApp, Google Sheets, Facebook Graph API, Slack.
  4. Create a Google Sheet named “Touchpoints” with columns: cart_id, customer_id, touchpoint_type, timestamp, channel, ab_group.
  5. Set up the webhook in your Shopify store (or e-commerce platform) to trigger the workflow on cart abandonment.
  6. Test the workflow with a sample abandoned cart event to ensure emails, SMS, WhatsApp, and logging work as expected.
  7. Enable the workflow in n8n for live operation.

Node-by-node breakdown


Customization tips


Troubleshooting

đź”— Nodes Used

Google Sheets, HTTP Request, Slack, Twilio, Webhook, Shopify

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup