How to Set Up Shopify Workflows Using Mercuri CX
Use case: Set Up Cart Abandonment WhatsApp Reminder Workflow in Shopify Using Mercuri API
Cart abandonment reminders help re-engage customers who added items to their cart but didn’t complete their purchase. Follow the steps below to automate a WhatsApp reminder using Shopify Flow and the Mercuri API.
Steps to Create the Workflow
Go to your Shopify Admin Dashboard.
From the left-hand side panel, click on Apps, then select Flow, or search for Flow using the app search bar.
Once the Flow dashboard opens, click on Create Workflow in the top-right corner of the screen.
You’ll be prompted to either Select a Trigger or Browse Templates — click on Select a Trigger.
You’ll now see the workflow dashboard. To start building your automation, select a trigger.
In the search bar, type “Customer abandoned checkout” and choose it from the list.
This trigger activates the workflow whenever a customer adds items to their cart but doesn’t complete the checkout process.
After setting the trigger, click the “+” button to add the next step.
Select Action → Wait (under Flow). Set the waiting time to 1 hour.This ensures the WhatsApp reminder will be sent one hour after the cart is abandoned.
Click the “+” icon again below the wait step.
Select Action → Send HTTP Request.
In the flow action, configure:
HTTP Method:
POSTURL:
https://api.mercuri.cx/v1/send_messageHeaders:
Key:
AuthorizationValue:
Bearer Bearer ${bearerToken}. Replace the${bearerToken}with the secret key.Body: Paste the JSON payload for your WhatsApp reminder message (example below).
{
"phoneNumberId":"xxxxxxxxxxx",
"channel":"whatsapp",
"recipient":"+918971476855",
"message":{
"type":"template",
"template":{
// "templateId":"1777667316490397",
"templateId":"xxxxxxxxxxxxx",
"parameters":[
{
"otpCode":"xxxxxxxxxxx",
"businessPhoneNumber":"xxxxxxxxxxx"
"firstName" : "xxxxxxxxxxx",
"lastName" : "xxxxxxxxxxx",
"businessName" : "xxxxxxxxxxx",
"orderNumber" : "xxxxxxxxxxx",
"orderTotal" : "xxxxxxxxxxx",
"expirationTime":"xxxxxxxxxxx",
"couponCode":"xxxxxxxxxxx"
}
]
}
},
"country":"US",
"saveToInbox":true
}
}You’ve now successfully set up the Cart Abandonment Reminder Workflow.
Click Turn On Workflow at the top-right corner to activate it.
When prompted for confirmation, click Turn On again.
Last updated