# Log order webhooks to Google Sheets with dead-letter queue and Gmail alerts

> Quick overview This workflow receives order-style webhooks with header authentication, validates and logs them, and upserts the event data into Google Sheets with retries, a dead-letter queue in n8n Data Tables, a status-check endpoint, scheduled replays, and daily/incident email notifications via Gmail. How it works 1. Receives POST requests on a header-authenticated webhook endpoint, generates or reads an X-Request-ID, validates the JSON payload, and logs invalid requests to an n8n Data Table before returning a 400 response. 2. For valid requests, formats a row and upserts it into a Google Sheets tab using “Request ID” as the idempotent key to avoid duplicates. 3. If the Google Sheets write fails, retries up to two more times with exponential backoff before giving up. 4. After repeated failures, stores the full request payload in an n8n Data Table dead-letter queue, logs the request as queued, returns a 202 response, and intentionally raises a workflow error to trigger an alert. 5. I

- **Domain**: `n8n-workflow-21501.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21501
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21501.n8n.io
- Documentation: https://n8n.io/workflows/21501
