通过自然语言进行Magento维护与GPT和Telegram-WhatsApp

高级

这是一个DevOps、AI Chatbot领域的自动化工作流,包含 21 个节点。主要使用 If、Ssh、Switch、Telegram、WhatsApp 等节点。 通过自然语言使用GPT和Telegram/WhatsApp进行Magento维护

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "c3b23fffea49117e798bf0289bfe84ed0e7c634b0def397db74b35f7d28d1f5f",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "cccbff02-437f-4b9f-ae1d-4fae2290943c",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        416,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c7b6c2df-301d-4dc4-90c2-0e5b25f173e6",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        688,
        -304
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "bfaa0bd2-3935-4aba-b57a-7399426da800",
      "name": "执行命令",
      "type": "n8n-nodes-base.ssh",
      "position": [
        912,
        -112
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "31876e33-94d3-4f92-ad74-ed64af93af3b",
      "name": "获取音频文件",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -112,
        -96
      ],
      "webhookId": "73d0d328-d75b-4bb0-a1b9-81d42a2f2bfd",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "4d20a186-9620-4764-98ef-05298f5e020f",
      "name": "转录音频",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        112,
        -384
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "1ea6ff1a-eadc-4cb7-9859-87ffb787e017",
      "name": "消息触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -784,
        -144
      ],
      "webhookId": "d08f35d7-e003-4e77-a26a-eb110855e027",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "ceae5e14-0d7f-4ccd-8788-a2ef768a25b3",
      "name": "路由聊天输入",
      "type": "n8n-nodes-base.switch",
      "position": [
        -560,
        -272
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "9863ba51-316c-4b62-b328-e7b07829e9fa",
      "name": "发送输出",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1360,
        -64
      ],
      "webhookId": "10cbb73b-1d8a-4c7c-b8c6-0cb104b0532b",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f06a4fcd-4850-4e2d-89b9-3c3834af3cfc",
      "name": "发送错误消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1136,
        -304
      ],
      "webhookId": "a76d7771-1e35-40fb-949c-6b4b610116c0",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "8e854e62-7ca5-47aa-89dd-cbc275d33410",
      "name": "Magento AI 助手 👩🏻‍🏫",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        336,
        -304
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "92d9a379-b294-4216-b713-518d27d20be9",
      "name": "WhatsApp 触发器",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -784,
        -336
      ],
      "webhookId": "23e9ee1c-8302-45f5-8d6c-de62b1aa2c46",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cd443897-ba69-475e-b440-1d4fc9e92fd2",
      "name": "条件判断1",
      "type": "n8n-nodes-base.if",
      "position": [
        1136,
        -112
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "3281cea0-7f92-4bab-9c19-d29e5620a672",
      "name": "发送消息",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1360,
        -208
      ],
      "webhookId": "a0384039-837b-4940-95a8-1dd12ff4e5e8",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2b9509cb-ca7e-484a-8dc7-ffc0d963a6e7",
      "name": "下载媒体",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -336,
        -384
      ],
      "webhookId": "6a91c3f9-8d56-43d5-911b-eec7513ccbcf",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3d70ad96-6431-4b90-aec1-da22c6ae8be5",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -112,
        -384
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "dfd3b110-b287-497d-a26d-b58f33309755",
      "name": "如果2",
      "type": "n8n-nodes-base.if",
      "position": [
        912,
        -400
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "863193a9-f5e8-47ee-b295-df607a0359a5",
      "name": "发送消息1",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1136,
        -496
      ],
      "webhookId": "a0384039-837b-4940-95a8-1dd12ff4e5e8",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e624eaa5-448d-4c06-ba7f-379720f6e50d",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -896,
        -624
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2a55529d-741b-4e5e-8b42-5f3b85871898",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        -624
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3305e6e8-288a-4891-a0b4-966f333c991d",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        -624
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "958c915b-9a6a-4488-90e1-ee62a497e7ba",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -896,
        -832
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute a command",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "Send message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "Send message1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Error Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Output": {
      "main": [
        []
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Transcribe audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download media": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get audio file": {
      "main": [
        [
          {
            "node": "Transcribe audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message Trigger": {
      "main": [
        [
          {
            "node": "Route Chat Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Chat Input": {
      "main": [
        [
          {
            "node": "Magento AI Agent 👩🏻‍🏫",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get audio file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Magento AI Agent 👩🏻‍🏫",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download media",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe audio": {
      "main": [
        [
          {
            "node": "Magento AI Agent 👩🏻‍🏫",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Route Chat Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute a command": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Magento AI Agent 👩🏻‍🏫",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Magento AI Agent 👩🏻‍🏫": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个高级难度的工作流,适用于DevOps、AI Chatbot等场景。适合高级用户,包含 16+ 个节点的复杂工作流

需要付费吗?

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

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

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

作者
Kanaka Kishore Kandregula

Kanaka Kishore Kandregula

@kmyprojects

Experienced Magento 2 Developer with 10+ years of expertise in building and optimizing eCommerce solutions. Over the past year, I’ve expanded my skills into workflow automation using n8n, streamlining business processes and integrating systems for efficiency. Passionate about solving complex problems, enhancing performance, and leveraging automation to drive smarter workflows.

外部链接
在 n8n.io 上查看 →

分享此工作流