⚡ Only 300 spots remaining • Closes in 2d 14h 32m

Back to Workflow Library
E-commerce

Shopify Birthday Discount Automation

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.

#Shopify
#Gmail
#Marketing
#Discount
#Ecommerce

Automation Logic

n8n JSON Blueprint

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.

QUICK DEPLOY

  • 1
    Download the .json file
  • 2
    Open n8n & click "Import"
  • 3
    Configure your API keys

PRO TIP

Always test your workflow in a development environment before pushing to production.

JSON BLUEPRINT

n8n-workflow.json
{
  "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.

IMPLEMENTATION GUIDE

Required Nodes

  • Shopify Node
  • Gmail Node
  • Marketing Node
  • Discount Node
  • Ecommerce Node
  • Cron / Webhook Trigger

Core Benefits

  • 100% Automated Execution
  • Reduces Manual Data Entry
  • Infinite Scalability

Need Help Building Your Private Cloud?

Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.

user