🔧 Send promo code expiry alerts using Webhook, Google Sheets, Gmail and Slack

⚡ 42 views · 🔧 Miscellaneous

Description

Promo Code Expiry Alert System

> Webhook, Google Sheets, Gmail & Slack


This workflow automates promo code management by receiving data via webhook, validating expiry, storing it in Google Sheets and sending alerts through Gmail and Slack based on urgency. It ensures teams never miss expiring promotions and can act proactively.

Quick Implementation Steps

What It Does

This workflow automates the complete lifecycle of promo code tracking and alerting. It starts by receiving promo data through a webhook, which can be triggered from any external system like a form, API or application. The data is then normalized to maintain consistency across all fields.

Once the data is structured, the workflow validates whether the promo code is still active based on its expiry date. If valid, it proceeds to send an email notification and store the details in a Google Sheet for record-keeping and tracking purposes.

The workflow then calculates the number of days remaining until expiry and intelligently categorizes the promo into urgency levels. Based on this, it sends Slack alerts—urgent alerts for promos expiring in one day and warning alerts for those expiring within two to three days.

Who It’s For

Requirements

How It Works & Set Up

  1. Create a new workflow in n8n and import the provided JSON file.
  2. Configure the Webhook node to accept POST requests and copy the generated URL.
  3. Send test data with fields: code, discount_type, value, expiry and usage_limit.
  4. Set up Gmail credentials in the “Send Promo Email” node.
  5. Connect your Google Sheets account and ensure the sheet has columns: Code, Discount, Expiry, Usage Limit.
  6. Configure Slack credentials and select the appropriate channel in both alert nodes.
  7. Verify expressions used in Set and IF nodes for correct data mapping and calculations.
  8. Test the workflow end-to-end using sample payloads.
  9. Activate the workflow to enable real-time execution.

How To Customize Nodes

Add-ons

Use Case Examples

There can be many more use cases depending on how promo or expiry-based data is used in your system.

Troubleshooting Guide

IssuePossible CauseSolution
Workflow not triggeringWebhook not activeActivate workflow and use correct URL
No data in Google Sheetswrong column mappingVerify field mapping in Sheets node
Slack message not sentWrong channel ID or credentialsReconnect Slack and check channel चयन
Wrong days calculationDate format issueEnsure expiry is in YYYY-MM-DD format
IF condition not workingType mismatch (string vs number)Use correct data types in expressions

Need Help?

If you need assistance setting up this workflow or want to extend it with advanced features like dashboards, CRM integration or multi-channel notifications, feel free to reach out our n8n automtion experts at WeblineIndia

We specialize in building scalable automation workflows tailored to your business needs. Whether you’re just getting started or looking to optimize existing processes, we’re here to help you succeed.

Get in touch to build custom n8n workflows or enhance this solution further.

🔗 Nodes Used

Google Sheets, Slack, Webhook, Gmail

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup