Skip to main content

Auto-translate incoming Gmail emails to English with OpenAI GPT-3.5

Workflow preview

Workflow preview
100%
Auto-translate incoming Gmail emails to English with OpenAI GPT-3.5 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Auto Translate Incoming Emails to English This workflow automatically detects the language of every new Gmail email and translates non English messages into English. The translated email is forw...

Best for

  • Support Chatbot automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.gmailtrigger, n8n-nodes-base.code, n8n-nodes-base.openai, n8n-nodes-base.if, n8n-nodes-base.gmail

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by David Olusola.

Original n8n.io source

1.1 Workflow description

Title
Auto-translate incoming Gmail emails to English with OpenAI GPT-3.5
Workflow name
Auto-translate incoming Gmail emails to English with OpenAI GPT-3.5

🌍 Auto-Translate Incoming Emails to English

This workflow automatically detects the language of every new Gmail email and translates non-English messages into English. The translated email is forwarded to your inbox with a clear "[TRANSLATED]" subject tag, and a label is added for easy filtering.


βš™οΈ How It Works

  1. Gmail New Email Trigger

    • Listens for new unread emails in your Gmail inbox.
    • Captures subject, sender, body text, and metadata.
  2. Normalize Email Data

    • A Code node extracts the raw content from the email.
    • Strips HTML, normalizes plain text, and prepares data for language detection.
  3. Detect Language (OpenAI)

    • Uses OpenAI GPT-3.5-turbo to detect the email’s language.
    • If the language is English, workflow ends.
    • If not, continues to translation.
  4. Translate to English

    • OpenAI translates the email body into clear English.
  5. Prepare Translated Email

    • Builds a forwarded email containing:
      • Original sender & subject
      • Received date
      • Message ID
      • Translated content (with formatting)
  6. Send Translated Email

    • A Gmail node sends the translated message to your inbox.
    • Subject is prefixed with [TRANSLATED] for easy recognition.
  7. Add "Translated Emails" Label

    • Automatically tags the original message in Gmail with "Translated Emails".
    • Helps you filter all auto-translated emails later.

πŸ› οΈ Setup Steps

1. Gmail Label

  • In Gmail, create a new label:
    Translated Emails
  • Or update the label in the final Gmail node.

2. OpenAI API Key

  • Get your key from platform.openai.com.
  • Add credentials in n8n.
  • Uses GPT-3.5-turbo (low cost, reliable).

3. Gmail OAuth

  • In n8n, connect your Gmail account.
  • Requires read/modify permissions.

πŸ“§ Example Output

Subject: [TRANSLATED] Meeting Proposal

Body:
🌍 AUTO-TRANSLATED EMAIL (Original Language: ES) πŸ“§ Original From: [email protected] πŸ“… Received: 2025-08-29 πŸ”— Message ID: 123456abcdef

═══════════════════════════════════════ TRANSLATED CONTENT:

Hello, I wanted to ask if we can schedule the meeting for next week.

═══════════════════════════════════════

✨ This email was automatically translated by n8n workflow.


⚑ With this workflow, every foreign-language email is instantly translated and delivered to you in English β€” no manual copy-pasting into Google Translate again.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Setup Instructions

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Gmail New Email Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1

Block 3 - Normalize Email Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Detect Language (OpenAI)

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 5 - Need Translation?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 6 - Translate to English

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 7 - Prepare Translated Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Send Translated Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 9 - Add 'Translated' Label

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Auto-translate incoming Gmail emails to English with OpenAI GPT-3.5
Complexity intermediate
Nodes 9
Categories Support Chatbot, AI Summarization
Author David Olusola
Published 29 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8031/8031.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Auto-translate incoming Gmail emails to English with OpenAI GPT-3.5 do?

Auto Translate Incoming Emails to English This workflow automatically detects the language of every new Gmail email and translates non English messages into English. The translated email is forw...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Summarization use case.