KEEP LEARNING
Build the bigger picture.
The Workflow Engineer connects individual n8n concepts to testing, deployment and running a complete workflow.
Tips > Data, APIs & Webhooks
Many webhook senders (Stripe, GitHub, Shopify) expect a response within 5-30 seconds.
Many webhook senders (Stripe, GitHub, Shopify) expect a response within 5-30 seconds. If your n8n workflow takes longer, the sender times out and retries, causing duplicate processing. The fix: set the Webhook to respond via a Respond to Webhook node placed immediately after it, return 200 at once, then continue the heavy processing.
Many webhook senders (Stripe, GitHub, Shopify) expect a response within 5-30 seconds. If your workflow takes longer -- calling multiple APIs, processing files, running LLM calls -- the sender will time out and retry, creating duplicate processing. The fix: respond with 200 immediately, then continue processing.
Real-world example: A Shopify order webhook triggers inventory checks across 3 warehouses, shipping rate calculations, and a confirmation email. Total processing: 15-45 seconds. Shopify times out at 5 seconds.
Place a Respond to Webhook node right after the Webhook node, then run the heavy work afterward:
Workflow structure:
[Webhook Node] --> [Respond to Webhook: 200] --> [HTTP Request: Warehouse 1]
(Response Mode: |
"Using Respond [HTTP Request: Warehouse 2]
to Webhook Node") |
[HTTP Request: Warehouse 3]
|
[Calculate Shipping]
|
[Send Confirmation Email]Webhook node configuration:
{
"httpMethod": "POST",
"path": "shopify/orders",
"responseMode": "responseNode"
}Respond to Webhook node (placed immediately after Webhook):
{
"respondWith": "json",
"responseCode": 200,
"responseBody": "={{ { \"received\": true } }}"
}The caller gets 200 OK in milliseconds. All the heavy processing runs after the response is sent. Shopify will not retry, and your workflow has unlimited time to complete.
Related: Set a Unique Encryption Key and Back It Up · Use the HTTP Request Node as a Universal Connector
KEEP LEARNING
The Workflow Engineer connects individual n8n concepts to testing, deployment and running a complete workflow.
APPLY IT TO YOUR SYSTEM
Bring the process, the tools involved and an example of where the current workflow gets stuck.