{"product_id":"webhook-queue-retry-in-google-sheets-with-telegram-alerts","title":"Webhook Queue \u0026 Retry in Google Sheets with Telegram Alerts","description":"\u003ch3\u003eQueue, retry, and alert on webhook failures—using Google Sheets + Telegram\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow securely receives authenticated POST webhooks, deduplicates and queues them in a Google Sheets “Webhook queue”, then retries delivery to your target HTTP endpoint on a schedule with exponential backoff. If delivery fails (or becomes permanently undeliverable), it sends Telegram alerts with the last status\/error and re-queue instructions.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives incoming webhooks\u003c\/strong\u003e via an n8n \u003cem\u003ewebhook\u003c\/em\u003e trigger secured with header authentication.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates payloads\u003c\/strong\u003e to ensure the request body is a JSON object and small enough for Google Sheets; then creates a queue record using an \u003cem\u003eIdempotency-Key \/ X-Event-Id\u003c\/em\u003e header or body id (or a fingerprint) as the event key.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDeduplicates in Google Sheets\u003c\/strong\u003e: checks for an existing row with the same key and responds immediately with \u003cstrong\u003e202 (queued)\u003c\/strong\u003e for new events or \u003cstrong\u003e200 (duplicate)\u003c\/strong\u003e for repeats.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eProcesses retries every minute\u003c\/strong\u003e: reads the “Webhook queue” sheet and selects due items (pending\/retry where \u003ccode\u003enext_attempt_at\u003c\/code\u003e has passed) in small batches.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDelivers with idempotency\u003c\/strong\u003e: POSTs each due payload to your configured target URL and passes the event key as the \u003cem\u003eIdempotency-Key\u003c\/em\u003e header.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpdates status + backoff\u003c\/strong\u003e: records attempts, latest status\/error, computes \u003ccode\u003enext_at\u003c\/code\u003e using exponential backoff (optionally honoring \u003cem\u003eRetry-After\u003c\/em\u003e), and marks bad payload rows as failed without sending.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram notifications\u003c\/strong\u003e: sends alerts when items are failed or dead, including the last HTTP status\/error and guidance for re-queuing.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eReliable webhook delivery for SaaS integrations when upstream systems occasionally send duplicates.\u003c\/li\u003e\n  \u003cli\u003eResilient retry handling for critical HTTP endpoints (payment events, status updates, event ingestion).\u003c\/li\u003e\n  \u003cli\u003eOperational visibility with Telegram alerts for failed or permanently undeliverable webhook events.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e tab: \u003cem\u003eWebhook queue\u003c\/em\u003e with columns \u003ccode\u003ekey\u003c\/code\u003e, \u003ccode\u003ereceived_at\u003c\/code\u003e, \u003ccode\u003esource\u003c\/code\u003e, \u003ccode\u003estatus\u003c\/code\u003e, \u003ccode\u003eattempts\u003c\/code\u003e, \u003ccode\u003enext_at\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes used\u003c\/strong\u003e: \u003cem\u003eif\u003c\/em\u003e, \u003cem\u003eset\u003c\/em\u003e, \u003cem\u003ecode\u003c\/em\u003e, \u003cem\u003ewebhook\u003c\/em\u003e, \u003cem\u003etelegram\u003c\/em\u003e, and \u003cem\u003esticky note\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003eImplements exponential backoff and retry scheduling based on \u003ccode\u003enext_attempt_at\u003c\/code\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46123199103155,"sku":"N8N-20102","price":30.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/KG3hfkNlDaTL_jrju7Ne0_VQ3apBkd.png?v=1790673375","url":"https:\/\/buyflowscripts.com\/products\/webhook-queue-retry-in-google-sheets-with-telegram-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}