Skip to main content

Automate birthday discount emails for e-commerce using Google Sheets and Gmail

Workflow preview

Workflow preview
100%
Automate birthday discount emails for e-commerce using Google Sheets and Gmail preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How It Works & Setup Steps: Automated Birthday Discount How It Works This workflow is a powerful yet simple automation to delight your customers on their birthdays. It runs every day on a schedul...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.function, n8n-nodes-base.gmail, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Marth.

Original n8n.io source

1.1 Workflow description

Title
Automate birthday discount emails for e-commerce using Google Sheets and Gmail
Workflow name
Automate birthday discount emails for e-commerce using Google Sheets and Gmail

How It Works & Setup Steps: Automated Birthday Discount


How It Works

This workflow is a powerful yet simple automation to delight your customers on their birthdays. It runs every day on a schedule you define and automatically pulls data from your customer list on Google Sheets. The workflow then checks to see if any customer has a birthday on the current day. If a match is found, it generates a unique discount code and sends a personalized, celebratory email with the code directly to the customer. This ensures no birthday is ever missed, fostering customer loyalty and driving sales with zero manual effort.


Setup Steps

Follow these steps to get the workflow running in your n8n instance and start sending automated birthday discounts.

1. Prerequisites

You will need a working n8n instance and a few key accounts:

  • Google Sheets: To store your customer data, including their email address and birthday. The birthday column should be formatted as MM-dd (e.g., 08-27).
  • Gmail: To send the personalized birthday emails to your customers.

2. Workflow Import

Import the provided workflow JSON into your n8n canvas. All the necessary nodes will appear on your canvas, ready for configuration.

3. Configure Credentials

Connect the following credentials to their respective nodes:

  • Google Sheets: Connect your Google account to the Get Customer Data node.
  • Gmail: Connect your Gmail account to the Send Birthday Email node.

4. Customize the Workflow

  1. Get Customer Data:
    • Enter the Spreadsheet ID and Sheet Name of your Google Sheet containing the customer data.
  2. Is It Their Birthday?:
    • This node compares the customer's birthday column with the current date. Ensure {{ $json.birthday }} matches the exact name of your birthday column in Google Sheets.
  3. Generate Discount Code:
    • This node is pre-configured to create a simple unique code. For an e-commerce platform (like Shopify or WooCommerce), you will need to replace this node with the specific API call to generate a valid coupon code in your system.
  4. Send Birthday Email:
    • Enter your sender email in the From Email field.
    • Customize the Subject and Message with your own text and branding to make it personal. The {{ $json.name }} and {{ $json.discountCode }} expressions will automatically pull the correct customer name and generated code.

5. Activate the Workflow

Once all configurations are complete, click "Save" and then "Active". The workflow is now live and will automatically run every morning to send out birthday wishes!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Daily Schedule

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1

Block 2 - Get Customer Data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 3

Block 3 - Is It Their Birthday?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 4 - Generate Discount Code

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 5 - Send Birthday Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 1

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate birthday discount emails for e-commerce using Google Sheets and Gmail
Complexity intermediate
Nodes 7
Categories Social Media, Multimodal AI
Author Marth
Published 27 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7936/7936.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate birthday discount emails for e-commerce using Google Sheets and Gmail do?

How It Works & Setup Steps: Automated Birthday Discount How It Works This workflow is a powerful yet simple automation to delight your customers on their birthdays. It runs every day on a schedul...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.