8
n8n 中文网amn8n.com

使用Openrouter AI在Google Slides中自动化中英翻译

中级

这是一个Document Extraction, Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 Code, Wait, SplitOut, GoogleDrive, GoogleSlides 等节点。 使用Openrouter AI在Google Slides中自动化中英翻译

前置要求
  • Google Drive API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "205780d3749915e5b72849aad8492ed96140f3a3cf0d7f077a27e6df51ded409",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "ef5c4414-8a7d-40fb-9c5b-40b634dc0051",
      "name": "当点击“执行工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        48,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c8e3363c-0ebe-47ce-a6d4-4479d6d8d5fe",
      "name": "Google Slides2",
      "type": "n8n-nodes-base.googleSlides",
      "position": [
        512,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b678b5f2-44d1-42f1-aba0-20874d5f4c7e",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        288,
        0
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "b5e03624-4612-4b57-aa46-0b256e2ae6d4",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1392,
        32
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f10545ae-a90e-4785-a23f-329cf9852244",
      "name": "替换文本",
      "type": "n8n-nodes-base.googleSlidesTool",
      "position": [
        1568,
        224
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "53a76aec-2fe4-4053-aa51-8df5ec7b7893",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        720,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "65df03c7-e1ab-4fe7-9f1b-5b10d20ad38a",
      "name": "分离输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        944,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cf86901f-a85e-4ded-a037-168907aae855",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1152,
        0
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "20b3d2c0-c03d-4a36-b4b7-fa0e4f3761f1",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1808,
        208
      ],
      "webhookId": "f5bd7595-80b0-453e-85d2-6560dfcb404e",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "b7f6b0ef-e98e-42c1-9fcb-2c15e880917c",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -304
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c827f4d4-9508-4b74-8457-9caa51c6f266",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -304
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "68382c2b-c1c5-4721-a464-cb22916f4ef7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1328,
        -304
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e3f23049-2455-489e-a6fb-1da305a3b08e",
      "name": "OpenRouter 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1392,
        224
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Google Slides2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace text": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Slides2": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 文档提取, 多模态 AI

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流