8
n8n 中文网amn8n.com

Telegram AI 图像生成器 + Google Sheets 记录器

初级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 5 个节点。主要使用 Telegram, GoogleSheets, TelegramTrigger, OpenAi 等节点。 通过 Telegram 使用 OpenAI DALL-E 生成图像并记录到 Google Sheets

前置要求
  • Telegram Bot Token
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "SGqUVskzXEBI5EHa",
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
    "templateCredsSetupCompleted": true
  },
  "name": "Telegram AI 图像生成器 + Google Sheets 记录器",
  "tags": [],
  "nodes": [
    {
      "id": "09061203-acb3-45f3-a2e9-a6899fab1260",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -100,
        -40
      ],
      "parameters": {
        "prompt": "={{ $json.message.text }}",
        "options": {
          "size": "1024x1024",
          "dalleQuality": "standard",
          "returnImageUrls": true
        },
        "resource": "image"
      },
      "credentials": {
        "openAiApi": {
          "id": "BXMUxnyGzjtZQOK4",
          "name": "OpenAi account Dave"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "a571ef80-e5ab-457f-8bf0-ab4372420819",
      "name": "Telegram触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -320,
        -40
      ],
      "webhookId": "bf451ae4-19ae-4831-9654-823e0b9fc842",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "W7s4K928CwuY1sKA",
          "name": "Telegram account 2"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "90001184-fca0-44a2-892b-72c772bfd6da",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        380,
        -40
      ],
      "webhookId": "c627bb8e-915d-4289-985b-ab1a75c34775",
      "parameters": {
        "file": "={{ $json['Image title'] }}",
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "operation": "sendPhoto",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "W7s4K928CwuY1sKA",
          "name": "Telegram account 2"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "924d8b95-8687-4419-b994-93e32a23ea24",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -360
      ],
      "parameters": {
        "width": 920,
        "height": 480,
        "content": "## Telegram AI 图像生成器 + Google Sheets 记录器"
      },
      "typeVersion": 1
    },
    {
      "id": "aed2c34b-ef3f-465d-a5bd-9d3fda8f9a9a",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        160,
        -40
      ],
      "parameters": {
        "columns": {
          "value": {
            "Image title": "={{ $json.url }}",
            "Image description": "={{ $json.revised_prompt }}"
          },
          "schema": [
            {
              "id": "Image description",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Image description",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Image title",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Image title",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iABxBKBY9ERctigW1bYvvRTIAf-m-InTSvSKnqANUhg/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1iABxBKBY9ERctigW1bYvvRTIAf-m-InTSvSKnqANUhg",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iABxBKBY9ERctigW1bYvvRTIAf-m-InTSvSKnqANUhg/edit?usp=drivesdk",
          "cachedResultName": "image database"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "vL25dYTf9oT1CSvl",
          "name": "Google Sheets account 2"
        }
      },
      "typeVersion": 4.6
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "2e4735b4-9872-45d0-af17-2af4314ad196",
  "connections": {
    "OpenAI": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram": {
      "main": [
        []
      ]
    },
    "Google Sheets": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

初级 - 内容创作, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
初级
节点数量5
分类2
节点类型5
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

作者
David Olusola

David Olusola

@dae221

AI automation consultant working with ambitious businesses on their most complex operational challenges. For project inquiries, reach me at david@daexai.com

外部链接
在 n8n.io 查看

分享此工作流