8
n8n 中文网amn8n.com

基于 GPT-4 和 Stripe 发票的自动化智能现金流与账单管理系统

高级

这是一个Invoice Processing, Multimodal AI领域的自动化工作流,包含 16 个节点。主要使用 If, Wait, Gmail, Slack, GoogleDocs 等节点。 使用 GPT-4、Stripe 和 Google Workspace 的自动化发票工作流与智能提醒

前置要求
  • Google 账号和 Gmail API 凭证
  • Slack Bot Token 或 Webhook URL
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "6eON4lzsjqC1Z068",
  "meta": {
    "instanceId": "a287613f1596da776459594685fbf4e2b4a12124f80ab8c8772f5e37bff103ae",
    "templateCredsSetupCompleted": true
  },
  "name": "Automated Smart Cash Flow & Billing Management System with GPT-4 & Stripe Invoice",
  "tags": [],
  "nodes": [
    {
      "id": "df5f56b9-4635-4e37-8a7d-817f3df75d9c",
      "name": "Google Sheets 触发器",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        0,
        -48
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "848e065e-eae8-421d-bbd9-e1a9b1eef0cd",
      "name": "Create Invoice from Template",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        608,
        -48
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e1a76867-2490-407c-8a99-f6ae5900bbd2",
      "name": "AI Invoice Content Generation",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        224,
        -48
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "dffb2fa4-b443-4efa-aabd-33c607d44430",
      "name": "Send Invoice",
      "type": "n8n-nodes-base.gmail",
      "position": [
        816,
        -48
      ],
      "webhookId": "f7afa667-a107-43ae-b7ca-f211407cb4ac",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "a7ed9045-3db3-4552-9242-3e84d0f6cc62",
      "name": "Until 3 Days Before Due Date",
      "type": "n8n-nodes-base.wait",
      "position": [
        1040,
        -48
      ],
      "webhookId": "87a68a09-39a9-47fc-b64b-041092de2982",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "fecc0ec5-443c-4cb6-8751-c8259f3c11dd",
      "name": "Check Payment Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1264,
        -48
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ebcdecb9-2e66-4677-924e-ebef5fae8633",
      "name": "Is Paid?",
      "type": "n8n-nodes-base.if",
      "position": [
        1488,
        -48
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f0023881-38c4-4341-89cf-3fcc8a2b52e0",
      "name": "Pre-Due Reminder",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1712,
        -48
      ],
      "webhookId": "b7bc99c3-08bd-49af-b05d-a687c7391ccc",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "3ca8c97d-2170-4e00-9f13-4703f93deec2",
      "name": "Until 2 Days After Due Date",
      "type": "n8n-nodes-base.wait",
      "position": [
        1936,
        -48
      ],
      "webhookId": "30074a1e-b817-41c6-a969-5d58c3bf12a0",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "4b743a9e-91b8-4cc1-b9b3-a13a7c851d78",
      "name": "Overdue Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        2160,
        -48
      ],
      "webhookId": "352b46e5-a753-4521-a630-5e534b20182b",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "171efded-664a-4a15-a776-c034b6784c4b",
      "name": "Update Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1728,
        240
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "8c7cc594-8735-48e5-9fff-dfd3791124a6",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -112
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "f3058313-e6d3-4833-ab1f-e9eba9ed5c02",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -112
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "121ba2c1-c7d4-4c7f-b193-81013c2dbd91",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        -112
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "5344a5b1-ebed-4d48-baa2-c6cbf992df67",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1648,
        160
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "c62bcaa6-9bea-44da-a257-22153a37ce19",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        160
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "4c6ef985-4fb3-4f8a-b537-44570b2ca70e",
  "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
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 发票处理, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量16
分类2
节点类型10
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Marth

Marth

@marth

Simplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.

外部链接
在 n8n.io 查看

分享此工作流