8
n8n 中文网amn8n.com

架构代理

高级

这是一个Engineering, Multimodal AI领域的自动化工作流,包含 16 个节点。主要使用 Set, Slack, SlackTrigger, Agent, LmChatAnthropic 等节点。 使用 Claude 3.5、Slack 和 Tavily 搜索生成数据管道蓝图

前置要求
  • Slack Bot Token 或 Webhook URL
  • Anthropic API Key
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "lLSGdfDV5YquV47C",
  "meta": {
    "instanceId": "b78775038dd0551b144b274015d3475f3d849cef508e40745901d6f4436e7d88",
    "templateCredsSetupCompleted": true
  },
  "name": "架构代理",
  "tags": [],
  "nodes": [
    {
      "id": "6951e1cc-2e93-4ba9-924b-547ca5e68d35",
      "name": "Tavily",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        128,
        416
      ],
      "parameters": {
        "url": "https://api.tavily.com/search",
        "method": "POST",
        "jsonBody": "{\n    \"api_key\": \"<API-KEY>\",\n    \"query\": \"{searchTerm}\",\n    \"search_depth\": \"basic\",\n    \"include_answer\": true,\n    \"topic\": \"news\",\n    \"include_raw_content\": true,\n    \"max_results\": 3\n} ",
        "sendBody": true,
        "specifyBody": "json",
        "toolDescription": "Use this tool to search the internet",
        "placeholderDefinitions": {
          "values": [
            {
              "name": "searchTerm",
              "type": "string",
              "description": "What the user has requested to write a blog about"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "2215c979-d0bb-43ab-874d-2bb414c7a9e0",
      "name": "Anthropic 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -160,
        368
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "76cff1a1-5a63-49ed-a005-defea8475045",
      "name": "响应",
      "type": "n8n-nodes-base.set",
      "position": [
        448,
        48
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "14d9076e-27ea-4846-8b44-f83cf4022b9e",
              "name": "response",
              "type": "string",
              "value": "={{ $json.output }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "d6b63763-d1ce-4585-a603-77610dad8ec0",
      "name": "重试",
      "type": "n8n-nodes-base.set",
      "position": [
        448,
        240
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "f2a8ff2d-6b59-4ad6-a2e7-8705354f4105",
              "name": "response",
              "type": "string",
              "value": "Error occurred. Please try again."
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "036b34fd-4998-411d-bd9f-b1aaf6f89fad",
      "name": "架构师代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "onError": "continueErrorOutput",
      "position": [
        16,
        128
      ],
      "parameters": {
        "text": "={{ $json.text }}",
        "options": {
          "systemMessage": "=You are a senior software architect. Your job is to design software solutions based on user requests. Provide a clear, concise technical design that outlines what the program should do, what components are needed, and how it should be structured. Assume the reader is an experienced developer."
        },
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "67fde122-b02c-4f03-82c5-e985b5c4d360",
      "name": "Slack 触发器",
      "type": "n8n-nodes-base.slackTrigger",
      "position": [
        -272,
        128
      ],
      "webhookId": "c31b498b-4773-48a8-95c3-cc045c5f8db1",
      "parameters": {
        "options": {},
        "trigger": [
          "message"
        ],
        "watchWorkspace": true
      },
      "typeVersion": 1
    },
    {
      "id": "d3de555d-d1b9-48a1-b0d1-8e5472345c0e",
      "name": "发送消息",
      "type": "n8n-nodes-base.slack",
      "position": [
        672,
        48
      ],
      "webhookId": "33789ebc-eb82-43f8-9582-475d900511ce",
      "parameters": {
        "text": "={{ $json.response }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "C094L9A4B4J",
          "cachedResultName": "ai-agent"
        },
        "otherOptions": {}
      },
      "typeVersion": 2.3
    },
    {
      "id": "51c63a7d-3fc1-4c9a-a19f-d785662af0ed",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        128
      ],
      "parameters": {
        "color": 6,
        "width": 264,
        "height": 140,
        "content": "## Slack频道中的消息"
      },
      "typeVersion": 1
    },
    {
      "id": "0fc05b79-9681-4b5f-84f1-d7d8c6927b37",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        528
      ],
      "parameters": {
        "color": 6,
        "width": 304,
        "height": 152,
        "content": "## Claude 3.5 LLM模型"
      },
      "typeVersion": 1
    },
    {
      "id": "f082fcdd-1d2e-43c7-86f7-0ddd7d97f195",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        448
      ],
      "parameters": {
        "color": 6,
        "height": 216,
        "content": "## 使用Tavily进行互联网搜索"
      },
      "typeVersion": 1
    },
    {
      "id": "15870461-730b-4d0d-b0a1-ae7a8727cf34",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        -160
      ],
      "parameters": {
        "color": 6,
        "width": 500,
        "height": 260,
        "content": "## 架构代理"
      },
      "typeVersion": 1
    },
    {
      "id": "f09a107f-94e2-4f56-94c9-214accdabdf6",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -2000
      ],
      "parameters": {
        "color": 5,
        "width": 1820,
        "height": 480,
        "content": "## 使用Claude 3.5、Slack和Tavily搜索生成数据管道蓝图"
      },
      "typeVersion": 1
    },
    {
      "id": "cff09e44-ea99-4ffd-9a72-3a5b88979a66",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -1520
      ],
      "parameters": {
        "color": 3,
        "width": 608,
        "height": 1280,
        "content": "## 配置Slack API访问"
      },
      "typeVersion": 1
    },
    {
      "id": "aad1c339-ff79-4306-ac58-0b8e45b9fbf6",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -240
      ],
      "parameters": {
        "color": 4,
        "width": 1824,
        "height": 1024,
        "content": "## 工作流"
      },
      "typeVersion": 1
    },
    {
      "id": "fe73ea06-6c2b-4abb-82ef-40f5f60dc290",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -1520
      ],
      "parameters": {
        "color": 3,
        "width": 608,
        "height": 1280,
        "content": "## 配置Anthropic Claude 3.5 API访问"
      },
      "typeVersion": 1
    },
    {
      "id": "eb223292-ddd5-4605-b1c2-fecb19196eb0",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        576,
        -1520
      ],
      "parameters": {
        "color": 3,
        "width": 608,
        "height": 1280,
        "content": "## 配置Tavily API访问"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "27c1ec40-0670-4373-8d08-ff7bde8eccd2",
  "connections": {
    "Tavily": {
      "ai_tool": [
        [
          {
            "node": "Architect Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Response": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack Trigger": {
      "main": [
        [
          {
            "node": "Architect Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Architect Agent": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Try Again",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Architect Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 工程, 多模态 AI

需要付费吗?

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

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

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

作者
Humble Turtle

Humble Turtle

@humbleturtle

Elegant AI agents that quietly do the work for you

外部链接
在 n8n.io 查看

分享此工作流