๐ฌ Recover abandoned Shopify carts with Gmail, WhatsApp, and Slack alerts
โก 93 views ยท ๐ฌ Lead Nurturing & AI Sales Agents
Description
Quick overview
This workflow listens for Shopify checkout creations, waits 15 minutes, checks whether the checkout converted into an order, and if not sends a recovery message via Gmail and WhatsApp, while reporting any workflow errors to a Slack channel.
How it works
- Triggers in Shopify when a checkout is created.
- Waits 15 minutes to give the customer time to complete the purchase.
- Calls the Shopify Admin Orders API to check whether an order exists for the checkout token.
- Stops if an order is found, indicating the cart converted.
- If no order is found, compiles the customer email, phone, cart item summary, discount code, and recovery URL from the Shopify checkout data.
- Sends a personalized recovery email through Gmail and a recovery message through WhatsApp using the same discount code and checkout link.
- If the workflow errors at any point, posts the error details to Slack for operational alerting.
Setup
- Connect your Shopify Admin credentials for the Shopify trigger and ensure it can receive the
checkouts/createtopic. - Configure the HTTP request to your store by replacing
YOUR_STORE(or ensuring the checkout payload providesdomain) and add Shopify Admin API authentication for/admin/api/2024-01/orders.json. - Connect your Gmail OAuth credentials and update the sender/subject/body content as needed.
- Connect your WhatsApp Business credentials, set the
phoneNumberId, and ensure the checkout payload contains a valid customer phone number. - Connect your Slack OAuth credentials and replace the target
channelIdfor ops alerts. - Update the wait duration and the hardcoded discount code (
COMEBACK10) to match your recovery strategy.
๐ Nodes Used
HTTP Request, Slack, Shopify Trigger, Gmail, WhatsApp Business Cloud
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File