{
  "name": "Bulk generate payment reminder PDFs from NocoDB with Autype",
  "nodes": [
    {
      "id": "2c511a10-6407-49cc-8c4e-27af2ba99e40",
      "name": "Weekly Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        2464,
        1376
      ]
    },
    {
      "id": "02203b42-9e35-40f9-8a49-c26f892612d8",
      "name": "Get Overdue Invoices",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        2704,
        1376
      ]
    },
    {
      "id": "f9a88e7f-c613-4d77-a358-b41dbe7b1f70",
      "name": "Build Bulk Items",
      "type": "n8n-nodes-base.code",
      "position": [
        2928,
        1376
      ]
    },
    {
      "id": "05562054-062f-4121-b22f-f20e77369845",
      "name": "Bulk Render Payment Reminders",
      "type": "n8n-nodes-autype.autype",
      "position": [
        3184,
        1376
      ]
    },
    {
      "id": "4d1b747a-5366-4558-b3de-0e034334026a",
      "name": "Send ZIP via Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        3408,
        1376
      ]
    },
    {
      "id": "805ee819-4af6-4540-b4a6-0b5e2db6e7bb",
      "name": "Run Setup Once",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        2928,
        832
      ]
    },
    {
      "id": "72c5debc-9426-497c-914c-cd6e37706116",
      "name": "Create Project",
      "type": "n8n-nodes-autype.autype",
      "position": [
        3136,
        832
      ]
    },
    {
      "id": "d414631e-d8b6-418f-9885-9e6428f1f263",
      "name": "Create Document",
      "type": "n8n-nodes-autype.autype",
      "position": [
        3360,
        832
      ]
    },
    {
      "id": "19aa75b8-5b33-4c86-9d3a-67d900846bc2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        672
      ],
      "parameters": {
        "width": 484,
        "height": 872,
        "content": "## Bulk Generate Payment Reminder PDFs from NocoDB\n\nThis workflow reads overdue invoices from a **NocoDB table**, generates a **personalized payment reminder PDF** for each record using the Autype Bul"
      }
    },
    {
      "id": "8edda517-e409-4f43-9e0e-05b363dd51ba",
      "name": "Sticky Note Setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2896,
        688
      ],
      "parameters": {
        "width": 708,
        "height": 296,
        "content": "### One-time Setup\nRun once to create the Autype project and payment reminder template document. Copy the returned document ID into the Build Bulk Items node. Then disable these nodes."
      }
    },
    {
      "id": "8896fde8-7fc4-4e25-a306-ffc9d3f991e1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        1104
      ],
      "parameters": {
        "width": 248,
        "height": 444,
        "content": "### 1. Get Overdue Invoices\nReads all rows from NocoDB where . Columns: \n- customer_name (text)\n- customer_address (text)\n- invoice_number (Number)\n- amount_due (Number)\n- due_date (date YYYY-MM-DD)\n-"
      }
    },
    {
      "id": "3dffd950-396c-4cd5-917f-8c5579df2b95",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2896,
        1232
      ],
      "parameters": {
        "width": 200,
        "height": 312,
        "content": "### 2. Build Bulk Items\nMaps NocoDB rows to Autype variable sets. Calculates  from  vs. today. Sets the document ID."
      }
    },
    {
      "id": "67588e30-a21c-4e9d-a9e9-9bac1ac04d4b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3120,
        1232
      ],
      "parameters": {
        "width": 216,
        "height": 312,
        "content": "### 3. Bulk Render\nSends all variable sets in one request. Downloads the output as a ZIP archive containing one PDF per invoice."
      }
    },
    {
      "id": "f9cd7ce9-10f8-4523-98a2-c9dcb1ecf0d1",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3360,
        1232
      ],
      "parameters": {
        "width": 248,
        "height": 312,
        "content": "### 4. Send ZIP via Email\nEmails the ZIP to a printer service, accounting team, or archive mailbox via SMTP."
      }
    }
  ],
  "connections": {
    "Create Project": {
      "main": [
        [
          {
            "node": "Create Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Setup Once": {
      "main": [
        [
          {
            "node": "Create Project",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly Schedule": {
      "main": [
        [
          {
            "node": "Get Overdue Invoices",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Bulk Items": {
      "main": [
        [
          {
            "node": "Bulk Render Payment Reminders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Overdue Invoices": {
      "main": [
        [
          {
            "node": "Build Bulk Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bulk Render Payment Reminders": {
      "main": [
        [
          {
            "node": "Send ZIP via Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}