{
  "nodes": [
    {
      "id": "2bbcb8e8-b63f-45a8-b141-07300ef724ba",
      "name": "Form",
      "type": "n8n-nodes-base.form",
      "position": [
        448,
        0
      ],
      "parameters": {
        "options": {},
        "operation": "completion",
        "completionTitle": "={{ $json.title }}",
        "completionMessage": "=<h3>Ingredients</h3>\n{{ $json.ingredients }}\n\n\n<h3>Instructions</h3>\n{{ $json.instructions }}"
      },
      "typeVersion": 1
    },
    {
      "id": "51dbc266-c345-4334-9349-f66a45ff5350",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "options": {},
        "formTitle": "Find a recipe",
        "formFields": {
          "values": [
            {
              "fieldLabel": "query"
            }
          ]
        },
        "responseMode": "lastNode"
      },
      "typeVersion": 2.2
    },
    {
      "id": "891b66aa-1620-4867-b27c-b978588a5462",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        208,
        0
      ],
      "parameters": {
        "url": "https://api.api-ninjas.com/v1/recipe",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "query",
              "value": "={{ $json.query }}"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "contact-note-1759910018486",
      "name": "Creator Contact Info",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -670
      ],
      "parameters": {
        "color": 5,
        "width": 600,
        "height": 440,
        "content": "# Contact Us:\n## Milan @ SmoothWork - [Book a Free Consulting Call](https://smoothwork.ai/book-a-call/)\n![Milan](https://gravatar.com/avatar/95700d17ba300a9f14c1b8cacf933df7720027b3adda9cbe6183d89142925422?r=pg&d=retro&size=100)\n\n\n### We help businesses eliminate busywork by building compact business tools tailored to your process.\n### Contact us for customizing this, or building similar automations.\n\n\ud83d\udce7 hello@smoothwork.ai\n\u25b6\ufe0f [Check us on YouTube](https://www.youtube.com/@vasarmilan)\n\ud83d\udcde [Book a Free Consulting Call](https://smoothwork.ai/book-a-call/)\n\ud83d\udcbc [Add me on Linkedin](https://www.linkedin.com/in/mil%C3%A1n-v%C3%A1s%C3%A1rhelyi-3a9985123/)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "doc-note-1759910018486",
      "name": "Workflow Description",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -230
      ],
      "parameters": {
        "width": 600,
        "height": 900,
        "content": "## Workflow Overview\n\nThis workflow creates a simple recipe finder web application. Users submit a recipe search query through a web form, which triggers an API call to fetch matching recipes. The results\u2014including the recipe title, ingredients, and cooking instructions\u2014are then displayed in a formatted completion page.\n\n### First Setup\n\n1. **Register for API Ninjas**: Sign up at API Ninjas to access their Recipe API\n2. **Get your API Key**: Locate your API key in the API Ninjas dashboard\n3. **Configure Credentials**: In n8n, create a new **Header Auth** credential\n   - Set the header name to match the API requirement (e.g., 'X-Api-Key')\n   - Paste your API key as the value\n   - Apply this credential to the HTTP Request node\n\n### Configuration\n\nThe workflow uses a **Form Trigger** that generates a public URL where users can submit their recipe queries. The 'query' field captures what type of recipe users want to find. The HTTP Request node sends this query to the Recipe API, and the final Form node displays the formatted results.\n\nYou can customize the form title, field labels, and the completion message HTML to match your branding or preferences."
      },
      "typeVersion": 1
    },
    {
      "id": "video-note-1759912267933",
      "name": "Video Walkthrough",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -90,
        -670
      ],
      "parameters": {
        "width": 420,
        "height": 340,
        "content": "# Video Walkthrough\n[![image.png](https://vasarmilan-public.s3.us-east-1.amazonaws.com/blog_thumbnails/thumbnail_recux4gNImLpzqvyd.jpg)](https://youtu.be/mMEX4Zsz4XY)"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Form",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}