Automate PDF Translation with DeepL and Google Drive in n8n

Save hours on manual PDF translations by automating your workflow using n8n, DeepL API, and Google Drive. This workflow fetches PDFs from a folder, translates them via DeepL, and uploads translated files back automatically.
manualTrigger
googleDrive
httpRequest
+5
Workflow Identifier: 1190
NODES in Use: manualTrigger, set, googleDrive, filter, httpRequest, wait, if, stickyNote

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow automatically translates PDF documents stored in a Google Drive folder using DeepL’s document translation API. It downloads PDFs, sends them for translation, waits for the translation to finish, then uploads the translated PDFs back with a clear new name. This replaces the slow, manual process of downloading, translating, and re-uploading files.

The main problem solved is saving time and reducing human error when handling many PDF translations weekly. Users get translated files neatly organized and ready without extra work.


Who should use this workflow

This is for users who manage many PDF documents needing translation in Google Drive. It helps project managers, translators, and teams who want to avoid repetitive, error-prone manual translation steps.

It works well when tens of PDFs are involved weekly and translations must be accurate and well organized.


Tools and services used

  • n8n: Automation platform where the workflow runs.
  • Google Drive API: Lists, downloads, and uploads PDF files from/to a specified Drive folder.
  • DeepL Document Translation API: Translates PDF files asynchronously, checks status, and provides translated files.
  • Google Drive OAuth2 Credentials: For secure access to Google Drive files.
  • HTTP Request Node: To communicate with DeepL API using API key authentication.

Inputs, processing steps, and outputs

Inputs

  • Google Drive folder URL containing the PDFs to translate.
  • Target language code, like “DE” or “EN-US”.
  • Optional source language code to specify original language, or leave empty for auto-detect.

Processing Steps

  • Fetch all files from the specified Google Drive folder.
  • Filter files to keep only PDFs not already translated (checks for target language suffix).
  • Download each eligible PDF file as binary data.
  • Send each file to DeepL Document Translation API via HTTP Request node with language parameters.
  • Poll DeepL at intervals to check if the translation job is complete.
  • After translation, download the translated PDF from DeepL.
  • Upload the translated PDF back to the original Google Drive folder with a new filename appending the target language code.
  • Introduce small waits between polling and between document processing to avoid API rate limits.

Outputs

  • Translated PDF files in the original Google Drive folder.
  • File names clearly showing the target language, preventing overwrite.

Beginner step-by-step: How to use this workflow in n8n

Importing the workflow

  1. Download the workflow JSON file using the Download button on this page.
  2. Inside the n8n editor, click on the top-right menu and select “Import from File”.
  3. Select the downloaded workflow file to load it into n8n.

Configuring credentials and parameters

  1. Add Google Drive OAuth2 credentials if not already set up. These allow the workflow to access Drive files.
  2. Ensure the HTTP Request node has the DeepL API Key added in HTTP Header Authentication.
  3. Open the ⚙️ config Set node and update:
    – The folder_url with your Google Drive folder link.
    – The target_lang with the desired language code.
    – Optionally, the source_lang or leave empty.

Testing and activation

  1. Run the workflow manually using the Run manually node’s execute button to test translation on current files.
  2. Check the translated PDFs appear in the Google Drive folder with correct names.
  3. Activate the workflow for production by toggling the active state.
  4. Optionally, add a schedule trigger in n8n to automate on intervals.

For self hosting n8n, users can refer to self-host n8n resources to run this workflow on own servers.


Edge cases and potential failures

  • DeepL API errors: Invalid API keys or limit exceeded will stop translations.
    Check API key validity and subscription status.
  • Google Drive access issues: Wrong folder URLs or missing OAuth2 permissions can cause file listing to fail.
    Verify folder link and access rights.
  • Translation waits getting stuck: Long delays if DeepL delays job completion.
    Increasing wait time or setting a timeout to retry or skip can help.

Customization ideas

  • Change the target_lang in the config node to translate into other languages.
  • Remove source language to let DeepL auto-detect it.
  • Allow other file formats like Word documents by changing the Filter node criteria.
  • Adjust wait times between polls and documents to fit API limits and load.
  • Update upload file name format in the upload node to match your team’s naming rules.

Summary of benefits

✓ Saves 3-5 hours weekly by automating PDF translation.

✓ Reduces errors from manual downloads and uploads.

✓ Keeps translated files organized with clear naming.

→ Translates PDFs stored in Google Drive automatically.

→ Lets users control when to run translations.

Frequently Asked Questions

Yes, by changing the filter node to include other supported formats and making sure DeepL supports those file types.
It filters out files that already have the target language code in their name before processing.
Delays from DeepL API or a stuck translation job; increasing wait times or adding timeouts can fix this.
Yes, all data transfers use HTTPS connections and credentials are encrypted within n8n.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free