[ { "version": 1, "label": "Send a coupon email when a customer is tagged", "trigger_type": [ "customer_updated" ], "object_type": "customer", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "customer.tags", "settings": { "operator": "contains", "value": "SEND_OFFER1", "long_value": "OFFER1", "condition_type": "AND" }, "weight": 999 }, { "field": "customer.tags", "settings": { "operator": "not_contains", "value": "OFFER1_SENT", "long_value": "OFFER1_SENT", "condition_type": "AND" }, "weight": 999 }, { "field": "customer.email", "settings": { "operator": "not_empty", "value": "", "long_value": "", "condition_type": "AND" }, "weight": 999 } ], "actions": [ { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "{{ customer.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "Your Coupon", "plain_text": "0", "body": "
\r\nDear {{ customer.display_name }},
\r\nWe really appreciate you checking out our store. We absolutely love our customers and wanted to give you a 10% coupon just for stopping by!\r\n<\/p>\r\n\r\n
\r\nDuring checkout use the coupon code \"[ENTER COUPON CODE HERE]\" to get the exclusive 10% discount for new customers only.\r\n<\/p>\r\n\r\n
\r\nThanks again for being a valued customer, we hope to see you soon!
\r\nSincerely,
\r\n{{ shop.name }}\r\n<\/p>"
},
"weight": 999,
"target_key": "customer"
},
{
"type": "customer_add_tags",
"settings": {
"wait": "0",
"custom_wait": "",
"tags": "OFFER1_SENT"
},
"weight": 999,
"target_key": "customer"
}
]
}
]
},
"description": "This automation can help to automatically send coupon codes or any other offers when a customer is tagged with a unique tag. The workflow works by listening to customer updates and checking if a tag has been added to the customer and then sends the email notification. The workflow also prevents the email from being sent unnecessarily by tagging customers that have already been emailed."
}
]