AutomationFlowsAI & RAG › Language Translation with Openai

Language Translation with Openai

Language Translation with OpenAI. Uses start, openAi. Manual trigger; 6 nodes.

Manual trigger★★☆☆☆ complexityAI-powered6 nodesStartOpenAI
AI & RAG Trigger: Manual Nodes: 6 Complexity: ★★☆☆☆ AI nodes: yes Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Language Translation with OpenAI",
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "sentence",
              "value": "Hello, how are you?"
            },
            {
              "name": "language",
              "value": "Spanish"
            }
          ]
        },
        "options": {}
      },
      "name": "Set Input",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json.language}}",
              "operation": "equal",
              "value2": "Spanish"
            },
            {
              "value1": "={{$json.language}}",
              "operation": "equal",
              "value2": "French"
            },
            {
              "value1": "={{$json.language}}",
              "operation": "equal",
              "value2": "German"
            }
          ]
        }
      },
      "name": "Switch Language",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "model": "text-davinci-003",
        "prompt": "=Translate the following text to Spanish: {{$json.sentence}}"
      },
      "name": "Translate to Spanish",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1,
      "position": [
        850,
        200
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "model": "text-davinci-003",
        "prompt": "=Translate the following text to French: {{$json.sentence}}"
      },
      "name": "Translate to French",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1,
      "position": [
        850,
        300
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "model": "text-davinci-003",
        "prompt": "=Translate the following text to German: {{$json.sentence}}"
      },
      "name": "Translate to German",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1,
      "position": [
        850,
        400
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Set Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Input": {
      "main": [
        [
          {
            "node": "Switch Language",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch Language": {
      "main": [
        [
          {
            "node": "Translate to Spanish",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Translate to French",
            "type": "main",
            "index": 1
          }
        ],
        [
          {
            "node": "Translate to German",
            "type": "main",
            "index": 2
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Language Translation with OpenAI. Uses start, openAi. Manual trigger; 6 nodes.

Source: https://gist.github.com/richardsondx/706d217f2999955b5eb905f7d8c78c73 — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Transform and optimize images for web use: You need to host local images online You want to reduce image file sizes automatically You need image URLs for web content You want to generate and optimize

HTTP Request, OpenAI
AI & RAG

Gemini-2.5-Flash. Uses start, prompt, openAiChatCompletion, return. Manual trigger; 11 nodes.

Start, Prompt, Open Ai Chat Completion +1
AI & RAG

Pyragogy AI Village - Orchestrazione Master (Architettura Profonda V2). Uses start, postgres, openAi, emailSend. Webhook trigger; 36 nodes.

Start, Postgres, OpenAI +4
AI & RAG

Pyragogy AI Village - Orchestrazione Master (Architettura Profonda V2). Uses start, postgres, openAi, emailSend. Webhook trigger; 35 nodes.

Start, Postgres, OpenAI +3
AI & RAG

Content Intelligence. Uses googleSheets, n8n-nodes-hdw, openAi. Manual trigger; 29 nodes.

Google Sheets, N8N Nodes Hdw, OpenAI