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.
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| Webhook | Trigger | Webhook | See node parameters |
| If | Routing | If | See node parameters |
| Token SuiteCRM | Web / API | HTTP Request | See node parameters |
| Create Lead SuiteCRM | Web / API | HTTP Request | POST |
| On form submission | Trigger | Form Trigger | See node parameters |
| Duplicate Lead? | Data store | Google Sheets | See node parameters |
| Form Fields | Transform | Edit Fields | See node parameters |
| Get Coupon | Data store | Google Sheets | See node parameters |
| Update Sheet | Data store | Google Sheets | update |
| Is Duplicate? | Routing | If | See node parameters |
| Get QR | Web / API | HTTP Request | See node parameters |
| Send Email | Messaging | Email Send | See node parameters |
| Update Lead | Web / API | HTTP Request | PATCH |
| Not used? | Routing | If | See node parameters |
| Coupon OK | Web / API | Respond To Webhook | See node parameters |
| No coupon | Web / API | Respond To Webhook | See node parameters |
| Coupon KO | Web / API | Respond To Webhook | See node parameters |
| Token SuiteCRM 1 | Web / API | HTTP Request | See node parameters |
| Set coupon | Transform | Edit Fields | See node parameters |
| Get Lead | Data store | Google Sheets | See node parameters |
| Update coupon used | Data store | Google Sheets | update |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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
googleSheetsOAuth2Apismtp
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.