AI 健身计划生成器-上传

高级

这是一个Personal Productivity、AI Chatbot领域的自动化工作流,包含 16 个节点。主要使用 Code、Switch、Telegram、HttpRequest、Agent 等节点。 Telegram 健身机器人:基于照片/文本使用 Gemini AI 生成定制训练计划

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "dXjwabXNOMFFDqHz",
  "meta": {
    "instanceId": "6851c31ef6402f951221982c1f1a22b3b1853c378309b131c1582e19af821817",
    "templateCredsSetupCompleted": true
  },
  "name": "AI 健身计划生成器-上传",
  "tags": [],
  "nodes": [
    {
      "id": "eb7c270b-2ea8-4654-a968-271ecf4c3979",
      "name": "Google Gemini聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        784,
        -16
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e564af0e-54e8-4b53-817f-f6a9f6f06b83",
      "name": "健身指南",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        784,
        -176
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "d120ef75-2c81-492b-8c1e-99fc1da4598e",
      "name": "Google Gemini聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1280,
        352
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8914e190-310b-4e79-928b-f4e4b5d94818",
      "name": "通过图片生成健身指南",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1280,
        192
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "1f5d1827-57f3-440f-ad6a-55df4cf3f425",
      "name": "获取所有 img_url",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1136,
        192
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d09f4a67-cbff-4692-8cdf-e1fe4eeed6d4",
      "name": "接收消息",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        336,
        -16
      ],
      "webhookId": "199485eb-626f-4920-8de0-dbe6b90bcf38",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d56f8d77-4b00-4a6e-93f2-c21b83a8641e",
      "name": "文本与图片",
      "type": "n8n-nodes-base.switch",
      "position": [
        528,
        -16
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "d870bde6-759b-428e-999d-cd217e223e48",
      "name": "清理健身计划并使其用户友好且视觉吸引人",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        -176
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "cadebb69-e8e2-4f19-a9a4-be6dd2de6e01",
      "name": "发送健身计划",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1328,
        -176
      ],
      "webhookId": "c4f4fa48-f487-485e-99a7-2ea0820d92b3",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a319dc3d-8ec8-4faf-9653-ab1e39a2759c",
      "name": "更改 MIME 类型",
      "type": "n8n-nodes-base.code",
      "position": [
        992,
        192
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ddac4863-bb5e-4ce6-be03-f834fac83932",
      "name": "清理健身计划并使其用户友好且视觉吸引人1",
      "type": "n8n-nodes-base.code",
      "position": [
        1616,
        192
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6bed8c70-0114-405b-8833-ce13077c4962",
      "name": "发送健身计划1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1824,
        192
      ],
      "webhookId": "9c14ddd1-03fd-4913-8c14-de1740af84e4",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a89d78c7-ee75-4178-ba3d-979a8b55efa5",
      "name": "获取图片路径",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        832,
        192
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "06e10319-907c-4188-9641-b550deba183d",
      "name": "获取图片",
      "type": "n8n-nodes-base.telegram",
      "position": [
        688,
        192
      ],
      "webhookId": "8f601801-097b-468f-beec-cb8c706001bf",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "caeb42f8-56f2-4391-acf4-307cd00aaa40",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        944,
        0
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "19d4907c-9fd2-4d0c-b9ba-dceb73c2eff9",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -464
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "04d63cf3-1704-442f-9e56-30b86c50436a",
  "connections": {
    "Get a Image": {
      "main": [
        [
          {
            "node": "Fetch Image Path",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze image": {
      "main": [
        [
          {
            "node": "Workout Guide thorugh Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Workout Guide",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Workout Guide thorugh Image",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Text Vs Photo": {
      "main": [
        [
          {
            "node": "Workout Guide",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get a Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workout Guide": {
      "main": [
        [
          {
            "node": "Clean up Workout plane and Make User freindly And Visually appealing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Change Mime Type": {
      "main": [
        [
          {
            "node": "Analyze image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Image Path": {
      "main": [
        [
          {
            "node": "Change Mime Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive a Message": {
      "main": [
        [
          {
            "node": "Text Vs Photo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Workout Guide thorugh Image",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Workout Guide",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Workout Guide thorugh Image": {
      "main": [
        [
          {
            "node": "Clean up Workout plane and Make User freindly And Visually appealing1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean up Workout plane and Make User freindly And Visually appealing": {
      "main": [
        [
          {
            "node": "Send A Workout Planes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean up Workout plane and Make User freindly And Visually appealing1": {
      "main": [
        [
          {
            "node": "Send A Workout Planes1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Parth Pansuriya

Parth Pansuriya

@parthpansuriya

I build smart and scalable automation workflows using n8n to simplify tasks, connect apps, and boost productivity. From WhatsApp bots to AI-powered systems, I create seamless automations tailored for business and creators.

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

分享此工作流