{
  "name": "Send Stripe invoice reminders with GPT-4.1-mini, Google Sheets and Slack",
  "nodes": [
    {
      "id": "abc556f0-c07f-4a99-a3a1-f04c0f5af536",
      "name": "Stripe Invoice Trigger",
      "type": "n8n-nodes-base.stripeTrigger",
      "position": [
        -1504,
        448
      ]
    },
    {
      "id": "636888eb-023a-4acc-9240-c3b9370380f6",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1280,
        448
      ]
    },
    {
      "id": "4183145c-c5e4-47e2-bbb6-96f033cffd30",
      "name": "Normalize Invoice Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -1056,
        448
      ]
    },
    {
      "id": "4432d413-c011-43f6-9f53-c9b45ef7955d",
      "name": "Generate Payment Reminder",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -832,
        448
      ]
    },
    {
      "id": "1a52acdf-c26d-4648-b43d-e191209dc727",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -824,
        672
      ]
    },
    {
      "id": "0f927dcd-8c87-4a7f-8b49-35008ea8b764",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -696,
        672
      ]
    },
    {
      "id": "55b9fb08-9ca5-4b92-bf50-915b25e4331c",
      "name": "Route by Payment Status",
      "type": "n8n-nodes-base.switch",
      "position": [
        -480,
        432
      ]
    },
    {
      "id": "ecb2c078-1378-4067-bd2f-a3ee98e7474c",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -256,
        64
      ]
    },
    {
      "id": "a8d36820-810d-4076-a2e5-73118a53ff3b",
      "name": "Notify Accountant on Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        -256,
        256
      ]
    },
    {
      "id": "97fd80f8-8bfd-4c53-84c6-66d2ddd3443e",
      "name": "Send Reminder Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -256,
        448
      ]
    },
    {
      "id": "a8d21df0-681e-482b-9040-ac4d2137e4fa",
      "name": "Generate Invoice PDF",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -256,
        640
      ]
    },
    {
      "id": "5c41e9b0-809c-44f2-9aa6-dc80c5651e32",
      "name": "Schedule Follow-up",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        -256,
        832
      ]
    },
    {
      "id": "d3f6fb2d-48be-4173-b2eb-38b84f9d1978",
      "name": "CRM Integration",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -32,
        64
      ]
    },
    {
      "id": "2735edb0-ab3c-4924-9c7f-6c6ca04ec0ee",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1568,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0d35a11f-945a-440a-905f-da0638fa2ffe",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "9f54312b-cafb-48cf-b3a7-3ff9f01c16fc",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "fc83a97b-fe99-4139-869b-7faaeff61c5d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2016,
        304
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Payment Reminder",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Log to Google Sheets": {
      "main": [
        [
          {
            "node": "CRM Integration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Invoice Data": {
      "main": [
        [
          {
            "node": "Generate Payment Reminder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stripe Invoice Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Normalize Invoice Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Payment Status": {
      "main": [
        [
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Accountant on Slack",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Reminder Email",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Invoice PDF",
            "type": "main",
            "index": 0
          },
          {
            "node": "Schedule Follow-up",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Payment Reminder",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Generate Payment Reminder": {
      "main": [
        [
          {
            "node": "Route by Payment Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}