AutomationFlowsGeneral › Process Webhook and Respond After Delay

Process Webhook and Respond After Delay

Original n8n title: Respond After Some Processing

Respond-After-Some-Processing. Webhook trigger; 5 nodes.

Webhook trigger★★★★☆ complexity5 nodes
General Trigger: Webhook Nodes: 5 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "75139bd6-c92c-4501-a212-e18e985f4009",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        80,
        0
      ],
      "id": "4eb09aee-dcd9-4fb6-a205-dfeffa15db66",
      "name": "start"
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={\n  \"xid\": \"{{ $execution.id}}\"\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        260,
        0
      ],
      "id": "395ad78a-1882-40a3-b888-98f6e03d944c",
      "name": "respond with execution id"
    },
    {
      "parameters": {
        "resume": "webhook",
        "httpMethod": "POST",
        "options": {}
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        440,
        0
      ],
      "id": "6b4b3671-4a5d-47dd-acb6-a7a30f6629f4",
      "name": "respond after ..."
    },
    {
      "parameters": {
        "jsCode": "const waitTimeSeconds = 3;\n\nreturn new Promise((resolve) => {\n  setTimeout(() => {\n    resolve(\n      $input.first().json\n    );\n  }, waitTimeSeconds * 1000);\n});"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        260,
        220
      ],
      "id": "de00afee-9abf-433c-b1bc-f46ed8a9c516",
      "name": "some processing",
      "notesInFlow": true,
      "notes": "wait for 3 seconds"
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "{\n  \"status\": \"done\"\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        440,
        220
      ],
      "id": "50c8c5dd-dd1b-46f0-9d78-0abecb6960a7",
      "name": "... is complete"
    }
  ],
  "connections": {
    "start": {
      "main": [
        [
          {
            "node": "respond with execution id",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "respond with execution id": {
      "main": [
        [
          {
            "node": "respond after ...",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "respond after ...": {
      "main": [
        [
          {
            "node": "some processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "some processing": {
      "main": [
        [
          {
            "node": "... is complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Respond-After-Some-Processing. Webhook trigger; 5 nodes.

Source: https://github.com/n8nui/examples/blob/main/examples/n8n-flows/respond-after-some-processing.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

A clean, extensible REST-style API routing template for n8n webhooks with up to 3 path levels. Serves API routes via Webhooks with path variables Normalizes incoming requests into "global" REQUEST and

General

PUQ Docker NextCloud deploy. Uses respondToWebhook, stickyNote, httpRequest, ssh. Webhook trigger; 44 nodes.

HTTP Request, Ssh
General

puq-docker-immich-deploy. Uses respondToWebhook, ssh, stickyNote. Webhook trigger; 35 nodes.

Ssh
General

Analyze_email_headers_for_IPs_and_spoofing__3. Uses stickyNote, respondToWebhook, itemLists, httpRequest. Webhook trigger; 35 nodes.

Item Lists, HTTP Request
General

puq-docker-n8n-deploy. Uses respondToWebhook, ssh, stickyNote. Webhook trigger; 34 nodes.

Ssh