{
  "name": "Custom branded QuickBooks invoices to PDF & email",
  "nodes": [
    {
      "id": "05599a83-f5c2-46db-8864-53c9e1b45f0d",
      "name": "Listen for New QuickBooks Invoice",
      "type": "n8n-nodes-base.webhook",
      "position": [
        512,
        1248
      ]
    },
    {
      "id": "1dc144aa-6849-4e95-a4d1-1f9c80b16b63",
      "name": "Get Invoice Data from QuickBooks",
      "type": "n8n-nodes-base.quickbooks",
      "position": [
        1248,
        976
      ]
    },
    {
      "id": "b56096d7-37cf-41b7-ab77-ebb35c176e01",
      "name": "Fetch Company Logo Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        1248
      ]
    },
    {
      "id": "97f6e4f4-82c8-4bbd-bad2-a02f69ca6150",
      "name": "Fetch Company Signature Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        1600
      ]
    },
    {
      "id": "7b5653c7-4483-463c-a7e2-fab408ea1f91",
      "name": "Convert Logo to Base64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1248,
        1248
      ]
    },
    {
      "id": "4fa1d59c-2ace-4251-a0db-49b62d18f62a",
      "name": "Convert Signature to Base64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1248,
        1424
      ]
    },
    {
      "id": "38d30ac3-298c-4731-a7b3-d45ac80abb25",
      "name": "Combine Invoice, Logo & Signature",
      "type": "n8n-nodes-base.merge",
      "position": [
        1472,
        1232
      ]
    },
    {
      "id": "8539ed24-374b-4ecb-b152-ef6d76365f0b",
      "name": "Prepare All Data for Template",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        1248
      ]
    },
    {
      "id": "2fdd3ef9-ef1f-42a5-8a29-64e439645e83",
      "name": "Build HTML Invoice from Data",
      "type": "n8n-nodes-base.html",
      "position": [
        1888,
        1248
      ]
    },
    {
      "id": "905e1af5-3c1d-4a57-9df6-f7d0683f486a",
      "name": "Convert HTML to Binary File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        2096,
        1248
      ]
    },
    {
      "id": "14bf3ebc-3a0f-468c-b650-6b282fe7f572",
      "name": "Generate PDF via Gotenberg",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2368,
        1248
      ]
    },
    {
      "id": "fc4105a5-f50c-4ac8-8010-a0ba82ffdf11",
      "name": "Email PDF Invoice to Customer",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2704,
        1248
      ]
    },
    {
      "id": "af2a01c1-65a8-49a5-8b34-ce853125a5bf",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1168,
        416
      ],
      "parameters": {
        "width": 1264,
        "height": 1824,
        "content": "# Automated QuickBooks Invoice to Custom PDF & Email\n\nTired of the standard, boring invoices from QuickBooks Online? This workflow completely automates the process of creating beautiful, custom-brande"
      }
    },
    {
      "id": "6edf064f-44ed-449e-a597-bd1b0d71bbe2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        1088
      ],
      "parameters": {
        "width": 256,
        "height": 336,
        "content": "**1. Configure Webhook**\n\nCopy this node's Production URL and paste it into your QuickBooks Online app's webhook settings. Subscribe to the \"Invoice\" event."
      }
    },
    {
      "id": "09597ad8-12d2-4bc6-aaf4-e4478499e5b3",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        848
      ],
      "parameters": {
        "width": 256,
        "height": 320,
        "content": "**2. Connect QuickBooks**\n\nSelect your QuickBooks Online account credentials from the dropdown list."
      }
    },
    {
      "id": "6fb09bca-2e1b-434f-8a13-054e96f45e18",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        1088
      ],
      "parameters": {
        "width": 256,
        "height": 336,
        "content": "**3. Add Your Logo URL**\n\nReplace the placeholder URL below with a direct, public link to your company's logo file."
      }
    },
    {
      "id": "269b246b-58cc-44f3-8bf2-44c30b8a5544",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        1472
      ],
      "parameters": {
        "width": 256,
        "height": 320,
        "content": "**4. Add Your Signature URL**\n\nReplace the placeholder URL below with a direct, public link to your signature image file."
      }
    },
    {
      "id": "b6cb4da6-78f6-4090-99bf-c443ee044ce3",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2288,
        1120
      ],
      "parameters": {
        "width": 256,
        "height": 320,
        "content": "**5. Set Your Gotenberg URL**\n\nReplace the placeholder URL below with the address of your running Gotenberg instance."
      }
    },
    {
      "id": "7b8bbac0-14a7-45ac-854c-84e43a5dd052",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        1072
      ],
      "parameters": {
        "width": 256,
        "height": 368,
        "content": "**6. Configure Your Email**\n\n- Select your email credentials.\n- Customize the 'From' and 'Subject' fields.\n- The PDF is automatically attached."
      }
    }
  ],
  "connections": {
    "Convert Logo to Base64": {
      "main": [
        [
          {
            "node": "Combine Invoice, Logo & Signature",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Fetch Company Logo Image": {
      "main": [
        [
          {
            "node": "Convert Logo to Base64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate PDF via Gotenberg": {
      "main": [
        [
          {
            "node": "Email PDF Invoice to Customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert HTML to Binary File": {
      "main": [
        [
          {
            "node": "Generate PDF via Gotenberg",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Signature to Base64": {
      "main": [
        [
          {
            "node": "Combine Invoice, Logo & Signature",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Build HTML Invoice from Data": {
      "main": [
        [
          {
            "node": "Convert HTML to Binary File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Company Signature Image": {
      "main": [
        [
          {
            "node": "Convert Signature to Base64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare All Data for Template": {
      "main": [
        [
          {
            "node": "Build HTML Invoice from Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Invoice Data from QuickBooks": {
      "main": [
        [
          {
            "node": "Combine Invoice, Logo & Signature",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Invoice, Logo & Signature": {
      "main": [
        [
          {
            "node": "Prepare All Data for Template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Listen for New QuickBooks Invoice": {
      "main": [
        [
          {
            "node": "Get Invoice Data from QuickBooks",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Company Logo Image",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Company Signature Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}