8
n8n 中文网amn8n.com

WordPress博客文章自动翻译

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 Wordpress, GoogleDocs, HttpRequest, ManualTrigger 等节点。 使用AI Translate Pro将WordPress博客文章自动翻译为任意语言并保存到Google Docs

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "1771594b-9a19-4143-8f43-59c9149f1a46",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -100,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "902da551-8eca-48b4-b470-30e56c97df9c",
      "name": "WordPress",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        180,
        0
      ],
      "parameters": {
        "postId": "2151",
        "options": {},
        "operation": "get"
      },
      "credentials": {
        "wordpressApi": {
          "id": "HucvXmJY2eFp01hl",
          "name": "Wordpress account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "02944dc1-3cc5-4ece-b394-c56756bf1c62",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        440,
        0
      ],
      "parameters": {
        "url": "https://ai-translate-pro.p.rapidapi.com/translate.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "text",
              "value": "={{ $json.content.rendered }}"
            },
            {
              "name": "language",
              "value": "Hindi"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "ai-translate-pro.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "530a7eec-b5b1-4275-b0c8-8c947a25f61c",
      "name": "Google 文档",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        760,
        0
      ],
      "parameters": {
        "actionsUi": {
          "actionFields": [
            {
              "text": "={{ $json.data }}",
              "action": "insert"
            }
          ]
        },
        "operation": "update",
        "documentURL": "",
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "Rt0RWApx8PL9t0RF",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "be6ca2fd-e157-4aea-9374-17089d4ff440",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -320
      ],
      "parameters": {
        "width": 600,
        "height": 820,
        "content": "# 🌐 将您的 WordPress 博客转换为任何语言"
      },
      "typeVersion": 1
    },
    {
      "id": "e61f82d4-0486-4d91-8560-dce89116441d",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -220
      ],
      "parameters": {
        "height": 380,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a17df79e-826b-4a91-9cda-1d7a15b5f888",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        -220
      ],
      "parameters": {
        "height": 380,
        "content": "### 2. 🌐 WordPress"
      },
      "typeVersion": 1
    },
    {
      "id": "8e4a54aa-942b-47a2-8116-70ee15e61bcb",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        -220
      ],
      "parameters": {
        "height": 380,
        "content": "### 3. 🌍 HTTP 请求(AI 翻译)"
      },
      "typeVersion": 1
    },
    {
      "id": "18a49e1d-cd8f-4277-b6bb-aff3651b75f0",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -220
      ],
      "parameters": {
        "height": 380,
        "content": "### 4. 📝 Google 文档"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Wordpress": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Google Docs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Wordpress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流