๐ฑ 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:
- Authenticates and connects to your Magento 2 store.
- Fetches store logo and base media URL using API calls.
- Processes High valued customers.
- Generates coupons for each customers
- Dynamically injects customer name and unique coupon code.
- Sends a fully branded and styled HTML email.
โ๏ธ Technical Highlights:
- Uses rest/all/V1/store/storeConfigs to retrieve logo and configuration data.
- HTML email styled with CSS media queries for prefers-color-scheme.
- Gradient background with fallbacks and proper semantic structure.
- Works with Gmail, Apple Mail, Outlook (Mac), and others.
- Uses n8n expressions to handle personalization logic without external scripts.
โ Ideal For:
- Magento 2 store owners.
- Digital marketers targeting loyal or VIP customers.
- CRM/email marketing automation professionals.
- Agencies building Magento-based growth funnels.
๐ Why This Matters in the Current Market:
- Modern customers expect personalized, premium communication โ and inbox competition is tougher than ever.
- This workflow enables eCommerce merchants to deliver clean, brand-consistent emails using automation โ all without plugins or frontend code changes.
๐ง Modules Used:
- HTTP Request โ Fetch Magento logo and config via REST API.
- Set โ Store customer name and coupon values.
- Email or SMTP โ Sends the composed HTML email.
- DateTime โ To handle expiration display (optional).
- HTML Template โ Responsive MJML-like styling with fallback-safe design.
๐ผ Use Cases:
- Loyalty program campaigns
- Seasonal or holiday discount blasts
- Surprise reward drops for top spenders
- Post-purchase thank-you automation
- Reactivation flows for high-valuee users
๐ Credentials Required:
- Magento 2 Admin API Token
- (Optional) SMTP credentials or Email node configuration
๐ 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