{
  "name": "Generate & deliver PDF invoices from Jotform to Google Drive & email",
  "nodes": [
    {
      "id": "99ab3063-af31-4701-890f-67b42ed901f6",
      "name": "Format Invoice Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -160,
        496
      ]
    },
    {
      "id": "0bfdcf22-ecc4-4fb1-b9a7-5ee86079feb1",
      "name": "Generate HTML Invoice",
      "type": "n8n-nodes-base.code",
      "position": [
        144,
        496
      ]
    },
    {
      "id": "9cedf436-1a03-4fb6-910d-086b6dca81b5",
      "name": "Save to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1056,
        288
      ]
    },
    {
      "id": "cfc5e050-ca7f-4197-aec2-efea24529538",
      "name": "Email to Customer",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1056,
        592
      ]
    },
    {
      "id": "8162eb8b-938d-4361-b54d-e745984ba8b1",
      "name": "Generate PDF Invoice",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        512,
        496
      ]
    },
    {
      "id": "23581c69-fd48-49a9-abe8-8f3efb1bcc9e",
      "name": "Download File PDF",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        496
      ]
    },
    {
      "id": "6ff41885-733c-4e38-b16b-3e9f3adae96b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        288
      ],
      "parameters": {
        "width": 288,
        "height": 368,
        "content": "## Webhook from Jotform\nSetup this webhook URL to receive order information from Jotform\n\n**Jotform account**\n\n[Sign up for Jotform for free](https://www.jotform.com/?partner=mediajade)"
      }
    },
    {
      "id": "5ddc5e49-007b-4a46-a41a-e7f5a50c2679",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        384
      ],
      "parameters": {
        "width": null,
        "height": 272,
        "content": "## Create HTML\nGenerate custom HTML for the invoice"
      }
    },
    {
      "id": "989e9a89-dcd8-42fb-9fa6-c20916ef42f5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        384
      ],
      "parameters": {
        "width": 352,
        "height": 272,
        "content": "## Generate PDF\n* Convert HTML to PDF Invoice\n* Get your API Key from [PDFMunk](https://pdfmunk.com)"
      }
    },
    {
      "id": "8aeeed1b-3c2f-44de-a330-2547f2d1a3bd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        384
      ],
      "parameters": {
        "width": null,
        "height": 272,
        "content": "## Format Data\nPrepare Line Item data for next step"
      }
    },
    {
      "id": "db3b1636-c5c8-4212-8cfa-8a1d4e21410e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        576
      ],
      "parameters": {
        "width": 304,
        "height": 288,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n## Email Invoice\nSend Invoice PDF Email to the Customer"
      }
    },
    {
      "id": "6d92f3cf-4574-44af-b88a-e309974f809b",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        192
      ],
      "parameters": {
        "width": 304,
        "height": 288,
        "content": "## Save Invoice PDF\nStore Invoice PDF to Google Drive"
      }
    },
    {
      "id": "bfc8cada-2bd0-485f-a9b5-4d1701474374",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 544,
        "height": 288,
        "content": "## 🎯 What This Template Does\n\nTransform your Jotform order fulfillment with complete invoice automation. When a customer places an order, this workflow automatically:\n\n✅ Receives order data from Jotfo"
      }
    },
    {
      "id": "000cdfd3-ae0d-4716-9ca9-ef155ff6c3ec",
      "name": "Jotform Trigger",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        -512,
        496
      ]
    }
  ],
  "connections": {
    "Jotform Trigger": {
      "main": [
        [
          {
            "node": "Format Invoice Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download File PDF": {
      "main": [
        [
          {
            "node": "Email to Customer",
            "type": "main",
            "index": 0
          },
          {
            "node": "Save to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email to Customer": {
      "main": [
        []
      ]
    },
    "Format Invoice Data": {
      "main": [
        [
          {
            "node": "Generate HTML Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate PDF Invoice": {
      "main": [
        [
          {
            "node": "Download File PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Google Drive": {
      "main": [
        []
      ]
    },
    "Generate HTML Invoice": {
      "main": [
        [
          {
            "node": "Generate PDF Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}