Templates / Send automated discount vouchers to high-value Magento 2 customers with Gmail

Send automated discount vouchers to high-value Magento 2 customers with Gmail

Needs changes

by Kanaka Kishore Kandregula ✓ · 86 views · created 2025-08-04 · Social Media

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Cron. 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs on a schedule (legacy Cron node). Along the way it connects Gmail.

How it runs

Trigger: On a schedule (legacy Cron node).

  1. Get Media Path (HTTP Request): calls an HTTP API
  2. SetOrGet Logo (Code): runs custom JavaScript code
  3. Get 3 Month Dates (Code): runs custom JavaScript code
  4. Get Completed Orders (HTTP Request): calls an HTTP API
  5. Get Customer Order Value (Code): runs custom JavaScript code
  6. If: checks a condition and branches into true / false
  7. Create New Sales Rule (HTTP Request): calls an HTTP API
  8. Send Report (Gmail): uses Gmail
  9. Generate Coupon for Each Customer (HTTP Request): calls an HTTP API
  10. Send Voucher (Gmail): uses Gmail

Services it uses

Gmail

Before you upgrade to n8n 3.0

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

  • Cron: replace with Schedule Trigger.

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

Removed in 3.0Replace with
Cron
Cron
Schedule Trigger

Nodes used (5)

From the author

This workflow analyses completed orders from the past 3 months to identify high-value customers, generates unique voucher codes for each, and sends them a professionally designed promotional email. This n8n template helps Magento 2 merchants automatically…

Excerpt from Kanaka Kishore Kandregula'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.