{
  "name": "Recipe 3 · Lovable confirmation",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "confirm",
        "responseMode": "responseNode",
        "options": {
          "allowedOrigins": "*"
        }
      },
      "name": "Kitchen bell (Webhook)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "vibesprint-confirm"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a0",
              "name": "message",
              "value": "={{ { content: 'Hi ' + $json.body.name + ', your ' + $json.body.main + ' and ' + $json.body.drink + ' are in the kitchen.' } }}",
              "type": "object"
            }
          ]
        },
        "options": {}
      },
      "name": "Write the confirmation (Edit Fields)",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        260,
        0
      ],
      "notes": "Writes the answer from the three fields. Want an AI to write it instead? Swap this box for an AI box later (needs credits)."
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ { \"answer\": $json.message.content } }}",
        "options": {}
      },
      "name": "Hand it back (Respond)",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        520,
        0
      ]
    }
  ],
  "connections": {
    "Kitchen bell (Webhook)": {
      "main": [
        [
          {
            "node": "Write the confirmation (Edit Fields)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write the confirmation (Edit Fields)": {
      "main": [
        [
          {
            "node": "Hand it back (Respond)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "active": false,
  "pinData": {}
}
