Back to Templates
This workflow is for Shopify store owners, marketers, and support teams who want to automatically message their high-value customers on WhatsApp when new discount codes are created.
total_spent > 5000
verify-whatsapp
endpoint)send-message
endpointstatus
and validity
discounts/create
) or manual trigger#How to use?
Prepare a Google Sheet
name
, number
, status
, validity
, check
(optional)Abdul Mannan | 8801322827799 | not sent | unverified | check
Configure n8n credentials
Configure the nodes
discounts/create
or Manual Trigger/admin/api/<version>/customers.json
total_spent > 5000
and map fieldswaNoStr.replace(/\D/g, "")
https://app.rapiwa.com/api/verify-whatsapp
body { number }
data.exists
to decide branchhttps://app.rapiwa.com/api/send-message
body { number, message_type, message }
status
and validity
Test with a small batch
A Google Sheet formatted like this ➤ Sample
Name | Number | Status | Validity |
---|---|---|---|
Abdul Mannan | 8801322827798 | not sent | unverified |
Abdul Mannan | 8801322827799 | sent | verified |
data.exists
may be a boolean or a string — normalize it in a Code node before using in an IF node