{
  "id": "nJMmIY6LcqteZAxs",
  "name": "QR code generation via form submission",
  "tags": [],
  "nodes": [
    {
      "id": "6874fcea-b608-48b4-8642-1f7df8f402b2",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "options": {},
        "formTitle": "QR Code Generator",
        "formFields": {
          "values": [
            {
              "fieldLabel": "URL",
              "requiredField": true
            },
            {
              "fieldType": "number",
              "fieldLabel": "width",
              "placeholder": "1000",
              "requiredField": true
            },
            {
              "fieldType": "number",
              "fieldLabel": "height",
              "placeholder": "1000",
              "requiredField": true
            }
          ]
        },
        "formDescription": "This mini application is to generate QR code for the provided URL."
      },
      "typeVersion": 2.2
    },
    {
      "id": "742256e5-39c9-47d7-b5bb-f4bc8f826fd0",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        0
      ],
      "parameters": {
        "url": "=http://api.qrserver.com/v1/create-qr-code/?data={{ $json.URL }}&size={{ $json.width }}x{{ $json.height }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "83eb10d0-5086-437f-a306-b1b6426cee38",
      "name": "Form",
      "type": "n8n-nodes-base.form",
      "position": [
        440,
        0
      ],
      "parameters": {
        "options": {},
        "operation": "completion",
        "respondWith": "returnBinary",
        "completionTitle": "QR code generation",
        "completionMessage": "=QR code of {{ $json.URL }} should have been downloaded to your device."
      },
      "typeVersion": 1
    },
    {
      "id": "1d4dc8a9-88d2-4469-8589-da510530aa16",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        -200
      ],
      "parameters": {
        "width": 200,
        "content": "### Form submission\nThis is a form submission node for end user inputting the URL to be converted to QR code."
      },
      "typeVersion": 1
    },
    {
      "id": "08bdc473-e450-452d-b4e3-3c4604aeac9e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -200
      ],
      "parameters": {
        "width": 200,
        "content": "### QR code generation\nThis is a node to call API from QR Server API (https://goqr.me/api/)."
      },
      "typeVersion": 1
    },
    {
      "id": "7c447851-475e-4b79-8327-935f57ada66a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        -200
      ],
      "parameters": {
        "width": 200,
        "content": "### Form ending\nThis is a form ending node for end user downloading the QR code."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9ce62b12-1260-432e-8021-0e6f90093f20",
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Form",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}