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

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

Needs changes

by Marth - Business Automation ✓ · 495 views · created 2025-08-27 · Social Media, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 5 nodes and runs on a schedule (every day). Along the way it connects Google Sheets and Gmail.

How it runs

Trigger: On a schedule (every day).

  1. Get Customer Data (Google Sheets): get many
  2. Is It Their Birthday? (If): checks a condition and branches into true / false
  3. Generate Discount Code (Function): runs custom JavaScript (legacy Function node)
  4. Send Birthday Email (Gmail): uses Gmail

Services it uses

Google SheetsGmail

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Generate Discount Code: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
Function (legacy)
Generate Discount Code
Code node, mode 'Run Once for All Items'

Nodes used (5)

From the author

⚙ 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…

Excerpt from Marth - Business Automation's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.