๐Ÿ“ฑ Send automated discount vouchers to high-value Magento 2 customers with Gmail

โšก 78 views ยท ๐Ÿ“ฑ Social Media & Email Marketing

Description

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.

Automated Workflow for Customer Rewards.png

This n8n template helps Magento 2 merchants automatically send customised, beautifully branded coupon emails to high-value customers.

The workflow connects to Magento 2โ€™s REST API to retrieve your store logo and secure base URL. It either generates a coupon code and then crafts a visually appealing HTML email with dynamic customer details and branding.

You can integrate this flow as part of loyalty campaigns or customer milestone automations. All styling is mobile-responsive and minimal to reduce the chance of spam filtering while still delivering a modern user experience.

๐Ÿ” What It Does:

  1. Authenticates and connects to your Magento 2 store.
  2. Fetches store logo and base media URL using API calls.
  3. Processes High valued customers.
  4. Generates coupons for each customers
  5. Dynamically injects customer name and unique coupon code.
  6. Sends a fully branded and styled HTML email.

โš™๏ธ Technical Highlights:

  1. Uses rest/all/V1/store/storeConfigs to retrieve logo and configuration data.
  2. HTML email styled with CSS media queries for prefers-color-scheme.
  3. Gradient background with fallbacks and proper semantic structure.
  4. Works with Gmail, Apple Mail, Outlook (Mac), and others.
  5. Uses n8n expressions to handle personalization logic without external scripts.

โœ… Ideal For:

๐Ÿ“ˆ Why This Matters in the Current Market:

๐Ÿ”ง Modules Used:

๐Ÿ’ผ Use Cases:

๐Ÿ”’ Credentials Required:

๐Ÿ“‚ Category

E-commerce โ†’ Magento 2 (Adobe Commerce)

๐Ÿ’ฌ Need Help? ๐Ÿ’ก Having trouble setting it up or want to customize this workflow further? Feel free to reach out โ€” Iโ€™m happy to help with setup, customization, or Magento 2 API integration issues.

Contact: Author

๐Ÿ‘ค Author

Kanaka Kishore Kandregula Certified Magento 2 Developer https://gravatar.com/kmyprojects https://www.linkedin.com/in/kanakakishore

๐Ÿ”— Nodes Used

Cron, HTTP Request, Gmail

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup