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 →
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
},
{
"parameters": {
"fields": [
{
"name": "sentence",
"type": "string",
"label": "Sentence to Translate",
"required": true
},
{
"name": "targetLanguage",
"type": "options",
"label": "Target Language",
"options": [
{
"name": "English",
"value": "English"
},
{
"name": "Spanish",
"value": "Spanish"
},
{
"name": "French",
"value": "French"
},
{
"name": "German",
"value": "German"
},
{
"name": "Italian",
"value": "Italian"
},
{
"name": "Japanese",
"value": "Japanese"
},
{
"name": "Chinese (Simplified)",
"value": "Chinese (Simplified)"
}
],
"default": "English",
"required": true
}
],
"schema": {
"properties": {
"sentence": {
"type": "string",
"title": "Sentence to Translate"
},
"targetLanguage": {
"type": "string",
"title": "Target Language"
}
},
"type": "object"
},
"displayNode": "return",
"description": "Enter the sentence you want to translate and choose the target language."
},
"name": "Ask for Input",
"type": "n8n-nodes-base.prompt",
"typeVersion": 1,
"id": "b2c3d4e5-f6a7-8901-2345-67890abcdef0"
},
{
"parameters": {
"mode": "json",
"value": "={{$json.targetLanguage}}",
"cases": [
{
"value": "English",
"return": "English"
},
{
"value": "Spanish",
"return": "Spanish"
},
{
"value": "French",
"return": "French"
},
{
"value": "German",
"return": "German"
},
{
"value": "Italian",
"return": "Italian"
},
{
"value": "Japanese",
"return": "Japanese"
},
{
"value": "Chinese (Simplified)",
"return": "Chinese (Simplified)"
}
]
},
"name": "Switch on Language",
"type": "n8n-nodes-base.switch",
"typeVersion": 1,
"id": "c3d4e5f6-a7b8-9012-3456-7890abcdef01"
},
{
"parameters": {
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Translate the following sentence to English: \"{{ $json.sentence }}\""
}
],
"authentication": "apiKey"
},
"name": "Translate to English",
"type": "n8n-nodes-base.openAiChatCompletion",
"typeVersion": 1,
"id": "d4e5f6a7-b8c9-0123-4567-890abcdef02"
},
{
"parameters": {
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Translate the following sentence to Spanish: \"{{ $json.sentence }}\""
}
],
"authentication": "apiKey"
},
"name": "Translate to Spanish",
"type": "n8n-nodes-base.openAiChatCompletion",
"typeVersion": 1,
"id": "e5f6a7b8-c9d0-1234-5678-90abcdef03"
},
{
"parameters": {
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Translate the following sentence to French: \"{{ $json.sentence }}\""
}
],
"authentication": "apiKey"
},
"name": "Translate to French",
"type": "n8n-nodes-base.openAiChatCompletion",
"typeVersion": 1,
"id": "f6a7b8c9-d0e1-2345-6789-0abcdef04"
},
{
"parameters": {
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Translate the following sentence to German: \"{{ $json.sentence }}\""
}
],
"authentication": "apiKey"
},
"name": "Translate to German",
"type": "n8n-nodes-base.openAiChatCompletion",
"typeVersion": 1,
"id": "a7b8c9d0-e1f2-3456-7890-abcdef05"
},
{
"parameters": {
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Translate the following sentence to Italian: \"{{ $json.sentence }}\""
}
],
"authentication": "apiKey"
},
"name": "Translate to Italian",
"type": "n8n-nodes-base.openAiChatCompletion",
"typeVersion": 1,
"id": "b8c9d0e1-f2a3-4567-8901-bcdef06"
},
{
"parameters": {
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Translate the following sentence to Japanese: \"{{ $json.sentence }}\""
}
],
"authentication": "apiKey"
},
"name": "Translate to Japanese",
"type": "n8n-nodes-base.openAiChatCompletion",
"typeVersion": 1,
"id": "c9d0e1f2-a3b4-5678-9012-cdef07"
},
{
"parameters": {
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Translate the following sentence to Chinese (Simplified): \"{{ $json.sentence }}\""
}
],
"authentication": "apiKey"
},
"name": "Translate to Chinese (Simplified)",
"type": "n8n-nodes-base.openAiChatCompletion",
"typeVersion": 1,
"id": "d0e1f2a3-b4c5-6789-0123-def08"
},
{
"parameters": {
"values": {
"result": "={{ $json.choices[0].message.content }}"
}
},
"name": "Output Translated Text",
"type": "n8n-nodes-base.return",
"typeVersion": 1,
"id": "e1f2a3b4-c5d6-7890-1234-ef09"
}
],
"connections": [
{
"from": "Start",
"to": "Ask for Input"
},
{
"from": "Ask for Input",
"to": "Switch on Language"
},
{
"from": "Switch on Language",
"to": "Translate to English",
"fromHandle": "English"
},
{
"from": "Switch on Language",
"to": "Translate to Spanish",
"fromHandle": "Spanish"
},
{
"from": "Switch on Language",
"to": "Translate to French",
"fromHandle": "French"
},
{
"from": "Switch on Language",
"to": "Translate to German",
"fromHandle": "German"
},
{
"from": "Switch on Language",
"to": "Translate to Italian",
"fromHandle": "Italian"
},
{
"from": "Switch on Language",
"to": "Translate to Japanese",
"fromHandle": "Japanese"
},
{
"from": "Switch on Language",
"to": "Translate to Chinese (Simplified)",
"fromHandle": "Chinese (Simplified)"
},
{
"from": "Translate to English",
"to": "Output Translated Text"
},
{
"from": "Translate to Spanish",
"to": "Output Translated Text"
},
{
"from": "Translate to French",
"to": "Output Translated Text"
},
{
"from": "Translate to German",
"to": "Output Translated Text"
},
{
"from": "Translate to Italian",
"to": "Output Translated Text"
},
{
"from": "Translate to Japanese",
"to": "Output Translated Text"
},
{
"from": "Translate to Chinese (Simplified)",
"to": "Output Translated Text"
}
]
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Gemini-2.5-Flash. Uses start, prompt, openAiChatCompletion, return. Manual trigger; 11 nodes.
Source: https://gist.github.com/richardsondx/706d217f2999955b5eb905f7d8c78c73 — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Language Translation with OpenAI. Uses start, openAi. Manual trigger; 6 nodes.
Gemini Prompt Pre-Processor (Pro V2). Uses start, httpRequest, returnJson. Manual trigger; 10 nodes.
Gemini Prompt Pre-Processor (Pro V3). Uses start, httpRequest, returnJson. Manual trigger; 10 nodes.
Gemini Prompt Pre-Processor. Uses start, httpRequest, returnJson. Manual trigger; 6 nodes.
Content Intelligence. Uses googleSheets, n8n-nodes-hdw, openAi. Manual trigger; 29 nodes.