{
  "name": "Recipe 1 · order confirmation",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "order",
        "responseMode": "responseNode",
        "options": {
          "allowedOrigins": "*"
        }
      },
      "name": "Kitchen bell (Webhook)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "vibesprint-order"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a0",
              "name": "greeting",
              "value": "=Hi {{ $json.body.name }}, your order is in the kitchen.",
              "type": "string"
            },
            {
              "id": "a1",
              "name": "shout",
              "value": "={{ $json.body.main.toUpperCase() }}",
              "type": "string"
            },
            {
              "id": "a2",
              "name": "minutes",
              "value": "={{ $json.body.main === 'steak' ? 25 : 15 }}",
              "type": "number"
            }
          ]
        },
        "options": {}
      },
      "name": "Read the slip (Edit Fields)",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        260,
        0
      ],
      "notes": "Three new lines on the slip. Read incoming fields as $json.body.FIELD"
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ { \"answer\": $json.greeting + \" \" + $json.shout + \" coming up.\", \"ready_in\": $json.minutes } }}",
        "options": {}
      },
      "name": "Hand it back (Respond)",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        520,
        0
      ]
    }
  ],
  "connections": {
    "Kitchen bell (Webhook)": {
      "main": [
        [
          {
            "node": "Read the slip (Edit Fields)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read the slip (Edit Fields)": {
      "main": [
        [
          {
            "node": "Hand it back (Respond)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}