Marketing · n8n

Send Customers a Birthday Discount Code Automatically

An n8n workflow that checks your customer list each morning for birthdays, generates a unique discount code, and emails a warm birthday message with the offer — a small personal touch that drives repeat purchases and loyalty on autopilot.

difficulty Beginnersetup 40 minresult Customers get a personal birthday message with a unique discount, lifting loyalty and repeat sales
  1. 1

    Run each morning

    A Schedule Trigger reads your customer list with birthday fields.

  2. 2

    Match today's birthdays

    A Filter/Code keeps customers whose birthday month and day equal today.

  3. 3

    Generate a code

    An HTTP Request creates a unique single-use discount code in your store for each birthday customer.

  4. 4

    Send the wish + offer

    A Gmail node emails a warm happy-birthday message with their personal code and an expiry to prompt action.

Frequently asked questions

Where do birthdays come from?

A customer field you collect at signup or checkout — stored in your CRM, e-commerce platform or a Google Sheet. The daily run matches today's month and day against that field. No birthday on file means no email, so it's opt-in by nature.

How is the discount code unique?

The workflow creates a single-use code via your store's API (Shopify/WooCommerce discount create) or pulls one from a pre-generated pool. Unique codes prevent sharing and let you attribute redemptions to the birthday campaign.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.