AutomationFlowsAI & RAG › Summarize Google Drive Files with OpenAI

Summarize Google Drive Files with OpenAI

Original n8n title: Load and Summarize Google Drive Files with AI

Byn8n Team @n8n-team on n8n.io

This workflow includes advanced features like text summarization and tokenization, it's ideal for automating document processing tasks that require parsing and summarizing text data from Google Drive.

Event trigger★★☆☆☆ complexityAI-powered6 nodesOpenAI ChatDocument Default Data LoaderText Splitter Token SplitterGoogle DriveChain Summarization
AI & RAG Trigger: Event Nodes: 6 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #1962 — we link there as the canonical source.

This workflow follows the Chainsummarization → OpenAI Chat recipe pattern — see all workflows that pair these two integrations.

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 →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "96d41f6a-3534-4286-a514-c39fa3100897",
      "name": "When clicking \"Execute Workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -40,
        520
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8fc1ced3-3007-4a18-9619-b7c72589d784",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        360,
        740
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e12e4360-50e6-421a-ba95-8474fb06448c",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        540,
        740
      ],
      "parameters": {
        "options": {},
        "dataType": "binary"
      },
      "typeVersion": 1
    },
    {
      "id": "244ed66f-1dde-4a56-90ec-cb31644f3d5a",
      "name": "Token Splitter1",
      "type": "@n8n/n8n-nodes-langchain.textSplitterTokenSplitter",
      "position": [
        620,
        880
      ],
      "parameters": {
        "chunkSize": 3000
      },
      "typeVersion": 1
    },
    {
      "id": "7a2b2f4c-8153-4cac-9bb2-45c46f28f8a5",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        180,
        520
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "url",
          "value": "https://drive.google.com/file/d/11Koq9q53nkk0F5Y8eZgaWJUVR03I4-MM/view"
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "e803a016-a9e7-4af2-bca2-05f9243196b2",
      "name": "Summarization Chain",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        400,
        520
      ],
      "parameters": {
        "options": {},
        "operationMode": "documentLoader"
      },
      "typeVersion": 2
    }
  ],
  "connections": {
    "Google Drive": {
      "main": [
        [
          {
            "node": "Summarization Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Token Splitter1": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Summarization Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Summarization Chain",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Execute Workflow\"": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow includes advanced features like text summarization and tokenization, it's ideal for automating document processing tasks that require parsing and summarizing text data from Google Drive.

Source: https://n8n.io/workflows/1962/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Effortless Email Management with AI. Uses emailReadImap, markdown, emailSend, vectorStoreQdrant. Event-driven trigger; 31 nodes.

Email Read Imap, Email Send, Qdrant Vector Store +11
AI & RAG

Effortless Email Management with AI. Uses emailReadImap, markdown, emailSend, vectorStoreQdrant. Event-driven trigger; 31 nodes.

Email Read Imap, Email Send, Qdrant Vector Store +11
AI & RAG

This workflow automates the handling of incoming emails, summarizes their content, generates appropriate responses using a retrieval-augmented generation (RAG) approach, and obtains approval or sugges

Email Read Imap, Email Send, Qdrant Vector Store +11
AI & RAG

Email AI Auto-responder. Summerize and send email. Uses emailReadImap, markdown, lmChatOpenAi, emailSend. Event-driven trigger; 26 nodes.

Email Read Imap, OpenAI Chat, Email Send +10
AI & RAG

Email AI Auto-responder. Summerize and send email. Uses emailReadImap, markdown, lmChatOpenAi, emailSend. Event-driven trigger; 26 nodes.

Email Read Imap, OpenAI Chat, Email Send +10