{
  "name": "Automated invoice workflow with smart reminders using GPT-4, Stripe, and Google Workspace",
  "nodes": [
    {
      "id": "df5f56b9-4635-4e37-8a7d-817f3df75d9c",
      "name": "Google Sheets Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        0,
        -48
      ]
    },
    {
      "id": "848e065e-eae8-421d-bbd9-e1a9b1eef0cd",
      "name": "Create Invoice from Template",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        608,
        -48
      ]
    },
    {
      "id": "e1a76867-2490-407c-8a99-f6ae5900bbd2",
      "name": "AI Invoice Content Generation",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        224,
        -48
      ]
    },
    {
      "id": "dffb2fa4-b443-4efa-aabd-33c607d44430",
      "name": "Send Invoice",
      "type": "n8n-nodes-base.gmail",
      "position": [
        816,
        -48
      ]
    },
    {
      "id": "a7ed9045-3db3-4552-9242-3e84d0f6cc62",
      "name": "Until 3 Days Before Due Date",
      "type": "n8n-nodes-base.wait",
      "position": [
        1040,
        -48
      ]
    },
    {
      "id": "fecc0ec5-443c-4cb6-8751-c8259f3c11dd",
      "name": "Check Payment Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1264,
        -48
      ]
    },
    {
      "id": "ebcdecb9-2e66-4677-924e-ebef5fae8633",
      "name": "Is Paid?",
      "type": "n8n-nodes-base.if",
      "position": [
        1488,
        -48
      ]
    },
    {
      "id": "f0023881-38c4-4341-89cf-3fcc8a2b52e0",
      "name": "Pre-Due Reminder",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1712,
        -48
      ]
    },
    {
      "id": "3ca8c97d-2170-4e00-9f13-4703f93deec2",
      "name": "Until 2 Days After Due Date",
      "type": "n8n-nodes-base.wait",
      "position": [
        1936,
        -48
      ]
    },
    {
      "id": "4b743a9e-91b8-4cc1-b9b3-a13a7c851d78",
      "name": "Overdue Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        2160,
        -48
      ]
    },
    {
      "id": "171efded-664a-4a15-a776-c034b6784c4b",
      "name": "Update Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1728,
        240
      ]
    },
    {
      "id": "8c7cc594-8735-48e5-9fff-dfd3791124a6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -112
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f3058313-e6d3-4833-ab1f-e9eba9ed5c02",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -112
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "121ba2c1-c7d4-4c7f-b193-81013c2dbd91",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        -112
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5344a5b1-ebed-4d48-baa2-c6cbf992df67",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1648,
        160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c62bcaa6-9bea-44da-a257-22153a37ce19",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Is Paid?": {
      "main": [
        [
          {
            "node": "Pre-Due Reminder",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Invoice": {
      "main": [
        [
          {
            "node": "Until 3 Days Before Due Date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pre-Due Reminder": {
      "main": [
        [
          {
            "node": "Until 2 Days After Due Date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Payment Status": {
      "main": [
        [
          {
            "node": "Is Paid?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "AI Invoice Content Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Until 2 Days After Due Date": {
      "main": [
        [
          {
            "node": "Overdue Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Invoice from Template": {
      "main": [
        [
          {
            "node": "Send Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Until 3 Days Before Due Date": {
      "main": [
        [
          {
            "node": "Check Payment Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Invoice Content Generation": {
      "main": [
        [
          {
            "node": "Create Invoice from Template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}