{
  "name": "Reply to a website form instantly with Webhook and Respond to Webhook",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "consultation-request",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.2,
      "position": [
        0,
        0
      ],
      "name": "Webhook",
      "id": "st-01"
    },
    {
      "parameters": {
        "mode": "manual",
        "assignments": {
          "assignments": [
            {
              "id": "a1",
              "name": "message",
              "value": "={{ $json.body.name }}, we got your request. We will call you within one business day.",
              "type": "string"
            },
            {
              "id": "a2",
              "name": "status",
              "value": "received",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        224,
        0
      ],
      "name": "Edit Fields",
      "id": "st-02"
    },
    {
      "parameters": {
        "respondWith": "firstIncomingItem",
        "options": {
          "responseCode": 200
        }
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.5,
      "position": [
        448,
        0
      ],
      "name": "Respond to Webhook",
      "id": "st-03"
    },
    {
      "parameters": {
        "content": "## Reply to a web form instantly\nWebhook waits, Edit Fields builds the reply, Respond to Webhook sends it back.",
        "height": 224,
        "width": 608,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -32,
        -96
      ],
      "name": "Overview",
      "id": "st-04"
    },
    {
      "parameters": {
        "content": "## How to set up\n1. Open **Webhook** and click **Listen for test event**.\n2. Send a POST to the **Test URL** with a JSON body: `name`, `email`, `project_type`, `budget`.\n3. Check the reply: `message` and `status`.\n4. Change the message in **Edit Fields**.\n5. **Publish**, then point your form at the **Production URL**.\n\nNo credentials needed.\n\nFree step-by-step lesson: https://learn.ynteractive.com/content/n8n-respond-to-webhook-node",
        "height": 420,
        "width": 360,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -96
      ],
      "name": "Setup note",
      "id": "st-05"
    },
    {
      "parameters": {
        "content": "**1. Webhook**\nPOST, path `consultation-request`. **Respond** is set to *Using 'Respond to Webhook' Node*, so the caller waits for step 3.",
        "height": 170,
        "width": 200,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -60,
        210
      ],
      "name": "Note 1",
      "id": "st-06"
    },
    {
      "parameters": {
        "content": "**2. Edit Fields**\nBuilds the reply: `message` with the sender's name, and `status`. Only these two fields leave n8n.",
        "height": 170,
        "width": 200,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        164,
        210
      ],
      "name": "Note 2",
      "id": "st-07"
    },
    {
      "parameters": {
        "content": "**3. Respond to Webhook**\nSends the first incoming item back with code 200. Add slow steps (email, sheet) after this node.",
        "height": 170,
        "width": 200,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        388,
        210
      ],
      "name": "Note 3",
      "id": "st-08"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
