8
n8n 中文网amn8n.com

终极游戏AI代理

高级

这是一个Other, AI领域的自动化工作流,包含 24 个节点。主要使用 Set, Code, Switch, Telegram, EditImage 等节点,结合人工智能技术实现智能自动化。 通过Telegram和GPT-4o Vision的实时游戏策略教练

前置要求
  • Telegram Bot Token
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "USWygSriOR85Mi2L",
  "meta": {
    "instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6",
    "templateCredsSetupCompleted": true
  },
  "name": "终极游戏 AI Agent",
  "tags": [],
  "nodes": [
    {
      "id": "bc671547-46a7-4d0b-880e-12e7d68b4cb6",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1500,
        -1080
      ],
      "webhookId": "b9e12479-efb8-4e8f-a3e2-4020967e755f",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "59be08b5-15d6-4fb1-aebe-651854d79f7a",
      "name": "用户认证(替换 Telegram ID)",
      "type": "n8n-nodes-base.code",
      "position": [
        -1140,
        -1080
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c8bf03ac-4d38-4be0-8043-412070b6ca9a",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        620,
        -740
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c857ee49-8c59-4fa8-89ee-ff958aea3d2d",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        320,
        -740
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "47914f9f-379b-4092-bb48-f8302e994cb7",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1180,
        -1060
      ],
      "webhookId": "adb1f073-cd14-4438-8522-7d0b64e547d7",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "374bef7a-954b-4ef0-ac52-582034bbba48",
      "name": "游戏 AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        660,
        -1060
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "706b20e5-3c57-4ae9-b548-89eb9813f0f7",
      "name": "OpenAI4",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        120,
        -1720
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "bc2e1fcd-8be3-4117-aa77-10170d208c3f",
      "name": "获取图像信息",
      "type": "n8n-nodes-base.editImage",
      "position": [
        -240,
        -1720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3c39b6d2-8fde-4f75-81b6-21f4fcac0509",
      "name": "OpenAI2",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -80,
        -1280
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "aebd6674-f866-4947-a103-d3e57b6fc2ea",
      "name": "设置消息",
      "type": "n8n-nodes-base.set",
      "position": [
        300,
        -1060
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "a2041a7b-faf5-4383-a165-676bf6835fdf",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1480,
        -2320
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "e8bdad22-d679-47b4-afd4-3679b30ef2cd",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1580,
        -1260
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "5e4ff616-0bf9-4ab0-a93c-92892ead9e14",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        -1260
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "dff37ea9-5cbb-46ce-b38e-fc43a813297a",
      "name": "消息格式选择器",
      "type": "n8n-nodes-base.switch",
      "position": [
        -800,
        -1080
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "ca441e6c-1c6a-429a-ad7e-4eb0ed231dc5",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -1260
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "2dca1b8e-3066-4eeb-8952-94c65eb77406",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -2120
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "9fcb311f-930c-4709-ae47-f122615e6129",
      "name": "Telegram 图像下载",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -580,
        -1720
      ],
      "webhookId": "9a8552f5-1ece-46a9-ab11-9c476af9b36d",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "61bd4a0b-467d-4875-8794-16b5d25f2307",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -1520
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "ff0643fa-1065-460b-a166-03785a9c55d0",
      "name": "Telegram 声音下载",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -460,
        -1280
      ],
      "webhookId": "06849504-8197-467f-9284-cb2780746c26",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "27f4f469-d159-4850-b717-0f91e423401f",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -1260
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "2906b7a2-924e-4859-902e-f0581bb669f2",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        -1260
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "62abc5c4-5ebe-4413-9629-306372873e01",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -780
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "6abaac04-f551-456d-b6b4-aa26c022effa",
      "name": "便签 10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1100,
        -1260
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "8a4f5666-5346-477b-b9d8-d6ae9326a208",
      "name": "便签 11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        -780
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "33c28d8c-f868-4b00-bef3-9ea4446371c1",
  "connections": {
    "OpenAI2": {
      "main": [
        [
          {
            "node": "Set Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI4": {
      "main": [
        [
          {
            "node": "Set Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Message": {
      "main": [
        [
          {
            "node": "Gaming AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Gaming AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Get Image Info": {
      "main": [
        [
          {
            "node": "OpenAI4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gaming AI Agent": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "User Authentication (Replace Telegram ID)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Gaming AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Message Format Selector": {
      "main": [
        [
          {
            "node": "Telegram Image Download",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Telegram Sound Download",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Image Download": {
      "main": [
        [
          {
            "node": "Get Image Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Sound Download": {
      "main": [
        [
          {
            "node": "OpenAI2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User Authentication (Replace Telegram ID)": {
      "main": [
        [
          {
            "node": "Message Format Selector",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 其他, 人工智能

需要付费吗?

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

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

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

作者
Don Jayamaha Jr

Don Jayamaha Jr

@don-the-gem-dealer

With 12 years of experience as a Blockchain Strategist and Web3 Architect, I specialize in bridging the gap between traditional industries and decentralized technologies. My expertise spans tokenized assets, crypto payment integrations, and blockchain-driven market solutions.

外部链接
在 n8n.io 查看

分享此工作流