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
Automate PDF translation with DeepL and n8n

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

Learn how to Build this Workflow with AI:

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.

Automate PDF translation with DeepL and n8n

Visit through Desktop to Interact with the Workflow.

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.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.