8
n8n 中文网amn8n.com

图像生成器

中级

这是一个Design, AI, Marketing领域的自动化工作流,包含 11 个节点。主要使用 Telegram, GoogleDrive, HttpRequest, GoogleSheets, ConvertToFile 等节点,结合人工智能技术实现智能自动化。 通过Google云端硬盘和表格实现AI图像生成与Telegram交付的自动化流程

前置要求
  • Telegram Bot Token
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "EYffbq7nZzy74ND8",
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
    "templateCredsSetupCompleted": true
  },
  "name": "图像生成器",
  "tags": [],
  "nodes": [
    {
      "id": "c99dc6a0-d93b-410f-8647-d38281fe50e7",
      "name": "转换为文件",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -180,
        -240
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "d9cee081-13cd-4ed4-843c-84e3e4e6c3d5",
      "name": "图像提示词",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -720,
        -240
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "9d2a73d3-fc71-47e4-94c5-1c79dd6b3a30",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -240,
        140
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "a4ac1967-64d1-455c-abef-bc3804d0cad4",
      "name": "图像日志",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        20,
        140
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "67ae3f89-2d7d-47c3-a55d-251a47a08072",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "230b29c6-ae1b-4cd0-9a35-dce2a0b15c05",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        -380
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b9bcd205-679b-4cb0-a6a5-cf2bd8b58887",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fd75b2ba-57f8-4ce3-8d39-915a96f7cef8",
      "name": "发送照片",
      "type": "n8n-nodes-base.telegram",
      "position": [
        60,
        -240
      ],
      "webhookId": "8fcbda9c-8396-41f7-8f2d-39e4ae4337c7",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "91e34b1e-4d15-482f-bb07-86c81c32b478",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -920,
        -240
      ],
      "webhookId": "a9997053-40e2-4d1d-9abc-f2e5b6582096",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "bf169f97-b545-4969-94c3-73be107c4c70",
      "name": "AI 模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -740,
        120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "14caf60f-2813-4e39-8960-0dc85adce28d",
      "name": "创建图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -420,
        -240
      ],
      "parameters": {},
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "c43ac7b7-f538-4479-80e3-86bb743788b8",
  "connections": {
    "Ai model": {
      "ai_languageModel": [
        [
          {
            "node": "Image Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create Image": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Image Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Prompt": {
      "main": [
        [
          {
            "node": "Create Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Photo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Image Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 设计, 人工智能, 营销

需要付费吗?

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

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

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

作者
David Olusola

David Olusola

@dae221

I love building smart, efficient automations with n8n that help businesses save time and scale effortlessly. Turning complex workflows into simple solutions is where I have the most fun

外部链接
在 n8n.io 查看

分享此工作流