Deduplicate webhook enquiries with data tables and Telegram notifications
Ready for 3.0What this workflow does
This workflow has 27 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Telegram.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Config (Edit Fields (Set)): sets 11 fields: telegramChatId, dataTableName, requiredFields…
- Is New Enquiry? (If): checks a condition and branches into true / false
- Build Idempotency Key (Code): runs custom JavaScript code
- Find Records to Retry (Data table): get (row)
- Has Missing Fields? (If): checks a condition and branches into true / false
- Load Enquiry (Edit Fields (Set)): sets 6 fields: rowId, idempotencyKey, attempts…
- Respond: Missing Fields (Respond to Webhook): sends the response back to the webhook caller
- Set Idempotency Key (Edit Fields (Set)): sets 2 fields: idempotencyKey, windowStart
- Classify by Keywords (Edit Fields (Set)): sets 2 fields: priority, category
- Find Existing Record (Data table): get (row)
…plus 15 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - Data table
n8n-nodes-base.dataTable - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow receives enquiries via a webhook, deduplicates repeated submissions using an idempotency key stored in an n8n Data Table, and processes accepted enquiries with keyword-based classification and Telegram notifications, automatically…