8
n8n 中文网amn8n.com

Slack 消息添加到 Notion

中级

这是一个AI, IT Ops领域的自动化工作流,包含 15 个节点。主要使用 If, Set, Slack, Notion, Agent 等节点,结合人工智能技术实现智能自动化。 带星 Slack 消息到 Notion 数据库,支持 AI 自动标记

前置要求
  • Slack Bot Token 或 Webhook URL
  • Notion API Key
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "y1V3XxzVnhP0R4eC",
  "meta": {
    "instanceId": "78cd535d8c280c9f391d1c1efae71bb3b005620d19729d7bf9cd5c4e1509eeb2",
    "templateCredsSetupCompleted": true
  },
  "name": "Slack 消息添加到 Notion",
  "tags": [],
  "nodes": [
    {
      "id": "8a15efc1-1a7b-402f-baff-33e116dcefab",
      "name": "如果 反应 == 星标",
      "type": "n8n-nodes-base.if",
      "position": [
        -520,
        720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "84388e75-f188-42da-9421-41f44c0dbed8",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -940,
        720
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "481c67c2-7e45-4d44-9b3d-3e19f315ae2d",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        380,
        940
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "016b3bf6-5053-4068-b086-371ce651ce6e",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        560,
        940
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d04bb2c2-9e30-452e-82d4-973c7c066979",
      "name": "获取 Slack 消息",
      "type": "n8n-nodes-base.slack",
      "position": [
        -740,
        720
      ],
      "webhookId": "ac0522b0-23da-467b-81fc-b93e5b2056ab",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "f1e57f6e-3b26-4b63-b768-5f3c04d620c0",
      "name": "设置标签",
      "type": "n8n-nodes-base.set",
      "position": [
        160,
        720
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "884acd20-9098-4ef5-bb4c-e32484a0a275",
      "name": "写入标题和标签",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        380,
        720
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "56722187-13ad-418a-b4b6-b3918498ba30",
      "name": "创建 Notion 页面",
      "type": "n8n-nodes-base.notion",
      "position": [
        760,
        720
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "eb5bfe7a-f8e7-425d-8855-5a1b9d214921",
      "name": "获取消息链接",
      "type": "n8n-nodes-base.slack",
      "position": [
        -280,
        720
      ],
      "webhookId": "9588fbfc-5aa6-4af2-b2b3-d2040c9dded5",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "c42361dc-61e6-42fe-af56-51720a45e7f3",
      "name": "选择 Notion 数据库",
      "type": "n8n-nodes-base.notion",
      "position": [
        -60,
        720
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "0bb1935e-9cfc-483a-b83e-43e5bff5cc56",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "96d07e0d-15b8-444b-96fc-031400b147bf",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e9467339-9245-4546-9a6f-46c64567e013",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -100,
        480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c7f22217-c598-4e96-9770-61330b0e7cb0",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8e74b014-a44f-46f5-95f9-379ccfe4831f",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1640,
        480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "cc6e4f9c-94dc-42fa-936a-b6472bfbc01e",
  "connections": {
    "Set Tags": {
      "main": [
        [
          {
            "node": "Write Title & Tag",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Choose Notion DB": {
      "main": [
        [
          {
            "node": "Set Tags",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Message Link": {
      "main": [
        [
          {
            "node": "Choose Notion DB",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Slack Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Write Title & Tag",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Write Title & Tag": {
      "main": [
        [
          {
            "node": "Create Notion Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Slack Messages": {
      "main": [
        [
          {
            "node": "IF reaction == star",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF reaction == star": {
      "main": [
        [
          {
            "node": "Get Message Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Write Title & Tag",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能, IT 运维

需要付费吗?

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

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

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

作者
Matty Reed

Matty Reed

@mattyreed1

Student and Teacher | Designer and Builder | Helping Founders Flourish

外部链接
在 n8n.io 查看

分享此工作流