Use this powerful n8n workflow to automatically detect the language of incoming Gmail emails and translate them instantly to English using OpenAI GPT-3.5. Optimize global communication.
Download this n8n workflow template and start using it instantly.
Managing communication across different languages can be a significant drag on productivity. This specialized n8n workflow solves this by providing seamless, automated translation for your Gmail inbox.
Starting with the robust Gmail n8n trigger, the n8n workflow detects newly received, unread emails. It leverages the cutting-edge capabilities of OpenAI (specifically GPT-3.5-turbo for cost efficiency) to first identify the language and then, if the language is not English, translate the full body text. Finally, it formats the output into a new, clearly marked email and applies a custom label to the original message. This template is a perfect example of how powerful n8n templates can transform daily operations, ensuring you never miss the content of an important foreign-language email again.
This fully automated n8n workflow runs on a polling schedule, typically every minute, ensuring swift processing of incoming mail.
Gmail New Email Trigger n8n node starts the process whenever a new unread email arrives in the monitored Gmail account.Normalize Email Data n8n node (a Code n8n node) standardizes the email content, cleans up HTML, and extracts critical details (sender, subject, plain text body) for the AI analysis.OpenAI n8n node uses a conversational prompt to detect the original language of the email body.Need Translation? If n8n node evaluates the detected language. If the result is anything other than 'en' (English), the workflow proceeds down the translation branch.OpenAI n8n node receives the non-English text and executes the translation request, converting the text into fluent English.Prepare Translated Email Code n8n node takes the original email metadata and the newly translated text, combining them into a clear, formatted email body that includes the original source details and the detected language.Send Translated Email forwards the new English version, and Add 'Translated' Label marks the original message in the user's inbox with a custom label (e.g., 'Translated Emails') to prevent reprocessing and maintain inbox organization. This robust n8n workflow ensures a clean, auditable process.To deploy this powerful n8n workflow, follow these steps:
Add 'Translated' Label n8n node).Detect Language (OpenAI) and Translate to English n8n nodes use this credential.Gmail New Email Trigger n8n node to start the automation.This n8n template utilizes several critical n8n nodes:
Gmail New Email Trigger (n8n Trigger):
Function: Initiates the n8n workflow upon receiving an unread email.
Key Configuration: Filters set to only check for unread messages.
Normalize Email Data (Code n8n Node):
Function: Standardizes data structure, sanitizes HTML, and extracts the core text body. It also implements a simple logic check to skip emails shorter than 10 characters.
Detect Language (OpenAI n8n Node):
Function: Calls the OpenAI chat API (using GPT-3.5-turbo) to identify the language of the normalized email body.
Need Translation? (If n8n Node):
Function: Determines if the workflow should continue translation. The logic checks if the detected language (output from OpenAI) is not equal to 'en'.
Translate to English (OpenAI n8n Node):
Function: Performs the actual translation, converting the foreign text to English.
Prepare Translated Email (Code n8n Node):
Function: Structures the final translated output, including metadata headers to inform the recipient about the translation source and original language.
Add 'Translated' Label (Gmail n8n Node):
Function:* Updates the original email message by adding the custom 'Translated Emails' label, crucial for tracking processed messages within this n8n workflow.
Use this efficient n8n workflow to automatically translate source blog posts into multiple languages using OpenAI's GPT-4o model. Generate structured, Markdown-formatted content for instant localization.

Use this powerful n8n workflow to automatically monitor TikTok, extract text and layout using Gemini Vision, translate content, and recreate high-performing carousels via Midjourney.

Use this powerful n8n workflow to automatically track YouTube video views, likes, comments, and subscriber counts by adding a link to your Notion database. Perfect for content creators.

Use this powerful n8n workflow to automatically fetch WordPress blog posts, translate the content using an AI translation API, and save the localized version directly into Google Docs. Explore more n8n templates for content localization.

Automate multilingual YouTube localization using this n8n workflow. Translate titles and descriptions with Google Gemini and update video settings automatically using a powerful n8n workflow.


I help ambitious businesses eliminate operational bottlenecks and scale faster with AI automation. My clients typically see 40-60% efficiency gains within 90 days. Currently accepting 3 new projects this quarter - [email protected]







































