← All N8N workflows
Data & databasesEmail SendForm TriggerGoogle SheetsHTTP RequestIf

Unique QRcode coupon assignment and validation for Lead Generation system

Configured with Email Send, Form Trigger, Google Sheets, HTTP Request, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWebhookWebhookRoutingIfIfWeb / APIToken SuiteCRMHTTP RequestWeb / APICreate Lead SuiteCRMHTTP RequestTriggerOn form submissionForm TriggerData storeDuplicate Lead?Google SheetsTransformForm FieldsEdit FieldsData storeGet CouponGoogle SheetsData storeUpdate SheetGoogle SheetsRoutingIs Duplicate?IfWeb / APIGet QRHTTP RequestMessagingSend EmailEmail SendWeb / APIUpdate LeadHTTP RequestRoutingNot used?IfWeb / APICoupon OKRespond To WebhookWeb / APINo couponRespond To WebhookWeb / APICoupon KORespond To WebhookWeb / APIToken SuiteCRM 1HTTP RequestTransformSet couponEdit FieldsData storeGet LeadGoogle SheetsData storeUpdate coupon usedGoogle Sheets

Node categories in this workflow

  • Trigger
  • Routing
  • Web / API
  • Data store
  • Transform
  • Messaging

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
WebhookTriggerWebhookSee node parameters
IfRoutingIfSee node parameters
Token SuiteCRMWeb / APIHTTP RequestSee node parameters
Create Lead SuiteCRMWeb / APIHTTP RequestPOST
On form submissionTriggerForm TriggerSee node parameters
Duplicate Lead?Data storeGoogle SheetsSee node parameters
Form FieldsTransformEdit FieldsSee node parameters
Get CouponData storeGoogle SheetsSee node parameters
Update SheetData storeGoogle Sheetsupdate
Is Duplicate?RoutingIfSee node parameters
Get QRWeb / APIHTTP RequestSee node parameters
Send EmailMessagingEmail SendSee node parameters
Update LeadWeb / APIHTTP RequestPATCH
Not used?RoutingIfSee node parameters
Coupon OKWeb / APIRespond To WebhookSee node parameters
No couponWeb / APIRespond To WebhookSee node parameters
Coupon KOWeb / APIRespond To WebhookSee node parameters
Token SuiteCRM 1Web / APIHTTP RequestSee node parameters
Set couponTransformEdit FieldsSee node parameters
Get LeadData storeGoogle SheetsSee node parameters
Update coupon usedData storeGoogle Sheetsupdate

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleSheetsOAuth2Api
  • smtp

Workflow notes

Sticky Note2

Check if the lead has already received the coupon

Sticky Note3

Find the first available unassigned coupon

Sticky Note4

Enter the lead with the relative coupon on Suite CRM. Change SUITECRMURL, CLIENTSECRET and CLIENTID

Sticky Note

Check if the QR code scan is valid

Sticky Note1

Check if coupon is valid

Sticky Note6

Set the Webhook URL

Coupon assignment and simple validation system

Coupon assignment and simple validation system

This workflow is designed to manage the assignment and validation of unique QR code coupons within a lead generation system. The process begins with a webhook that receives data from a user-filled form, containing information such as name, surname, email, and phone number. This data is then processed to check if the lead already exists in the system, preventing duplicates.

DISCLAIMER: The system is very simple and basic but can be improved and made very efficient through specific controls and new implementations

Unique QRcode coupon assignment and validation for Lead Generation system

Unique QRcode coupon assignment and validation for Lead Generation system

Purpose and structure

This folder contains the Unique QRcode coupon assignment and validation for Lead Generation system workflow. Its executable nodes use emailSend, formTrigger, googleSheets, httpRequest, if, respondToWebhook, set, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Webhook, On form submission

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Webhook/1855_Webhook_Respondtowebhook_Automation_Webhook.json MIT; preserve source notices.

More in Data & databases