8
n8n 中文网amn8n.com

截止日期提醒机器人

中级

这是一个Project Management, Multimodal AI领域的自动化工作流,包含 7 个节点。主要使用 If, Gmail, Summarize, GoogleSheets, ScheduleTrigger 等节点。 使用Google Sheets、ChatGPT和Gmail的任务截止日期提醒

前置要求
  • Google 账号和 Gmail API 凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "6D4OcntV18Okzk0L",
  "meta": {
    "instanceId": "7b35059aff065837b1c7d24142b37474554b08b3370f3096b2e57345690d178e",
    "templateCredsSetupCompleted": true
  },
  "name": "截止日期提醒机器人",
  "tags": [],
  "nodes": [
    {
      "id": "3e1e6a13-1d58-4ce1-917c-facf8de988ef",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -920,
        -40
      ],
      "parameters": {
        "color": 6,
        "width": 1480,
        "height": 520,
        "content": "截止日期提醒机器人"
      },
      "typeVersion": 1
    },
    {
      "id": "0d4ce22a-af27-493f-a3f3-60cc4159b80c",
      "name": "定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -860,
        220
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 9
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ad804a56-f16b-49f3-8a08-67f77036e98e",
      "name": "获取工作表中的行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -660,
        220
      ],
      "parameters": {
        "options": {},
        "sheetName": "YOUR_SHEET_NAME",
        "documentId": "YOUR_SHEET_ID"
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ysB9wq12yE1X904W",
          "name": "Google Sheets – Team Account"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "f01c9f74-1ea7-4a1e-96bb-6cc47fc767f8",
      "name": "条件判断1",
      "type": "n8n-nodes-base.if",
      "position": [
        -440,
        220
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "a7001922-5150-4890-adeb-5c1fabfe206b",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json['Due Date'] }}",
              "rightValue": "={{ $now.format('yyyy-MM-dd') }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "09c04680-a24a-47fd-81a4-0294c0fb1393",
      "name": "Summarize1",
      "type": "n8n-nodes-base.summarize",
      "position": [
        -180,
        140
      ],
      "parameters": {
        "options": {
          "outputFormat": "separateItems"
        },
        "fieldsToSplitBy": "Assignee",
        "fieldsToSummarize": {
          "values": [
            {
              "field": "Task"
            },
            {
              "field": "Task",
              "aggregation": "append"
            },
            {
              "field": "Email",
              "aggregation": "min"
            },
            {
              "field": "Status",
              "aggregation": "append"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "dd85219d-245e-4c62-9bb2-336a72e86498",
      "name": "向模型发送消息",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        0,
        140
      ],
      "parameters": {
        "modelId": "chatgpt-4o-latest",
        "options": {},
        "messages": {
          "values": [
            {
              "role": "assistant",
              "content": "=You are a productivity assistant. Write a short task summary email for {{ $json[\"Assignee\"] }}.\nalso write to and put their email {{ $json.min_Email }} into it.\nHere are their tasks due today:{{ $json.appended_Task }}\nStatuses:{{ $json.appended_Status }}\nMake it clear, professional, and motivating.\n"
            }
          ]
        },
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "id": "a0jh6VCqkdOTDXdO",
          "name": "OpenAI – Assistant API"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "b21439e6-67c4-4550-9315-cb0e8757a267",
      "name": "发送消息1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        340,
        140
      ],
      "parameters": {
        "sendTo": "={{ $json.message.content.to }}",
        "message": "={{ $json.message.content.body }}",
        "options": {},
        "subject": "={{ $json.message.content.subject }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "7hMKLS1iFqJfK2dk",
          "name": "Gmail – Notification Account"
        }
      },
      "typeVersion": 2.1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "d70e8a4a-3faf-4ac8-8127-09473d053254",
  "connections": {
    "If1": [
      [
        {
          "node": "Summarize1",
          "type": "main",
          "index": 0
        }
      ]
    ],
    "Summarize1": [
      [
        {
          "node": "Message a model1",
          "type": "main",
          "index": 0
        }
      ]
    ],
    "Message a model1": [
      [
        {
          "node": "Send a message1",
          "type": "main",
          "index": 0
        }
      ]
    ],
    "Schedule Trigger1": [
      [
        {
          "node": "Get row(s) in sheet1",
          "type": "main",
          "index": 0
        }
      ]
    ],
    "Get row(s) in sheet1": [
      [
        {
          "node": "If1",
          "type": "main",
          "index": 0
        }
      ]
    ]
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 项目管理, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
中级
节点数量7
分类2
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Yar Malik (Asfandyar)

Yar Malik (Asfandyar)

@yar

AI Automation Expert | AI Call Center with Voho

外部链接
在 n8n.io 查看

分享此工作流