⚡ Only 300 spots remaining • Closes in 2d 14h 32m
Boost retention. This workflow runs daily, queries your Shopify customers list, filters for customers celebrating birthdays today, generates a personalized discount code, and emails it to them using Gmail/SendGrid.
This workflow is pre-configured and ready for deployment. Simply import the JSON template into your n8n instance and configure your credentials.
This is an exclusive blueprint. Copy the JSON below to use it.
PRO TIP
Always test your workflow in a development environment before pushing to production.
{
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"value": 24
}
]
}
},
"name": "Daily Run",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [
100,
300
]
},
{
"parameters": {
"operation": "list"
},
"name": "Get Shopify Customers",
"type": "n8n-nodes-base.shopify",
"typeVersion": 1,
"position": [
300,
300
]
},
{
"parameters": {
"jsCode": "const today = new Date().toISOString().slice(5, 10); // MM-DD\nreturn items.filter(item => item.json.note && item.json.note.includes(`birthday:${today}`));"
},
"name": "Filter Birthdays",
"type": "n8n-nodes-base.code",
"typeVersion": 1,
"position": [
500,
300
]
},
{
"parameters": {
"toEmail": "={{$json.email}}",
"subject": "Happy Birthday! 🎁 Here is 20% Off",
"html": "Happy Birthday! Use code HBD20 at checkout."
},
"name": "Send Birthday Email",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2,
"position": [
700,
300
]
}
],
"connections": {
"Daily Run": {
"main": [
[
{
"node": "Get Shopify Customers",
"type": "main",
"index": 0
}
]
]
},
"Get Shopify Customers": {
"main": [
[
{
"node": "Filter Birthdays",
"type": "main",
"index": 0
}
]
]
},
"Filter Birthdays": {
"main": [
[
{
"node": "Send Birthday Email",
"type": "main",
"index": 0
}
]
]
}
}
}To use this, copy the JSON above and paste it directly onto your n8n canvas.
Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.