8
n8n 中文网amn8n.com

使用Super Assistant在Slack中创建定期AI驱动的数据摘要

中级

这是一个AI RAG, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 Set, Slack, HttpRequest, ScheduleTrigger 等节点。 使用Super Assistant在Slack中创建定期AI驱动的数据摘要

前置要求
  • Slack Bot Token 或 Webhook URL
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "nodes": [
    {
      "id": "7fffe9f8-5109-4136-b22b-2c74286f0c57",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        128,
        160
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 30 8 * * 1-5"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "79ec09b7-14b6-42ef-b001-379ca47397f9",
      "name": "查询 Super 助手",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        720,
        160
      ],
      "parameters": {
        "url": "https://api.super.work/v1/super",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "question",
              "value": "={{ $json[\"Final query\"] }}"
            },
            {
              "name": "assistantId",
              "value": "YOUR-ASSISTANT-ID"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "54119da4-f714-4892-952c-f29aa766a93d",
      "name": "在 Slack 中发送摘要",
      "type": "n8n-nodes-base.slack",
      "position": [
        1008,
        160
      ],
      "webhookId": "28f6e76c-b665-4245-95d1-0609107cdc11",
      "parameters": {
        "text": "={{ $json.answer.replace(/\\{\\[\\d+\\]\\(([^)]+)\\)\\}/g, '<$1|(source)>') }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR-CHANNEL-ID"
        },
        "otherOptions": {
          "unfurl_links": false,
          "includeLinkToWorkflow": false
        }
      },
      "credentials": {
        "slackApi": {
          "id": "EkDmLiXskPXRqVW4",
          "name": "Slack account"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "2173e42e-8651-4a43-8011-2bad1a25531b",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        -400
      ],
      "parameters": {
        "width": 816,
        "height": 384,
        "content": "# 使用 Super 的自动化公司数据摘要"
      },
      "typeVersion": 1
    },
    {
      "id": "b65a9d7f-e429-4058-84a7-2ee3abdbda5f",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        32
      ],
      "parameters": {
        "color": 4,
        "height": 304,
        "content": "### 编辑发送给您的 Super 助手的查询"
      },
      "typeVersion": 1
    },
    {
      "id": "1480df8c-fd4a-426b-8a2a-d001589472e4",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        32
      ],
      "parameters": {
        "color": 5,
        "height": 304,
        "content": "### 选择您的触发重复计划"
      },
      "typeVersion": 1
    },
    {
      "id": "22485ffb-d921-4ed4-9c90-4ce05edcfea5",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        32
      ],
      "parameters": {
        "color": 4,
        "height": 304,
        "content": "### 连接您的 super.work 凭据并粘贴您的助手 ID"
      },
      "typeVersion": 1
    },
    {
      "id": "3299af5b-7d8c-43a8-bfa7-0350f58d383c",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        32
      ],
      "parameters": {
        "color": 4,
        "height": 304,
        "content": "### 连接您的 Slack 凭据并选择目标频道"
      },
      "typeVersion": 1
    },
    {
      "id": "55bf5942-c73e-40d7-8fce-75c13750d84e",
      "name": "设置查询",
      "type": "n8n-nodes-base.set",
      "position": [
        416,
        160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "3fce3bc4-a2ab-48f3-b76f-df614d9fcbd0",
              "name": "Final query",
              "type": "string",
              "value": "=Report the progress we have made on our key projects yesterday."
            }
          ]
        }
      },
      "typeVersion": 3.4
    }
  ],
  "connections": {
    "Set the query": {
      "main": [
        [
          {
            "node": "Query Super Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set the query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Query Super Assistant": {
      "main": [
        [
          {
            "node": "Send digest in Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - AI RAG 检索增强, 多模态 AI

需要付费吗?

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

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

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

作者
Guillaume Duvernay

Guillaume Duvernay

@duv

AI and automation expert

外部链接
在 n8n.io 查看

分享此工作流