ChatGPTCreativeWritingAI score · 81/100AI-assisted edit · no obvious prompt-injection riskn8n.io

Auto-Summarize New Google Drive Documents into Google Sheets

Google Drive trigger → Google Docs content extraction → OpenAI summarization → Google Sheets append

Some experienceStepsWorkflowPrompt
Who
Operators or content managers who need automatic summaries when team documents are updated
You get
When a new Google Doc is uploaded, automatically extract full text, generate a summary, and write the summary with document info to a Google Sheet
You need
n8n · google-drive · google-docs · google-sheets

Constraints

Prerequisites: accessible n8n instance; configured Google Drive OAuth2, Google Docs OAuth2, and Google Sheets OAuth2 credentials. After importing the template, specify the Google Drive folder to watch and the target Google Sheet document. The workflow polls the folder every minute.

What they did

AI developers at WeblineIndia published this workflow template on the n8n official template library. The template monitors a designated Google Drive folder for new document events via Google Drive Trigger, extracts the full document text through the Google Docs node, calls the OpenAI gpt-4o-mini model to generate a summary, and appends the summary with document metadata to a Google Sheet.

How it went

The author describes the automation as simplifying document handling, enhancing productivity, and ensuring seamless data management (author_report). No specific throughput, accuracy, or cost figures were provided.

Worth knowing

The workflow includes Wikipedia and Calculator tool nodes connected to the OpenAI node, but they are not referenced in the main flow or description steps, likely reserved for future extensions. The Google Sheets column name 'Summarise Conetent data' contains a typo (as in source). Both folderToWatch and documentId are empty in the template and must be configured by the user. The trigger uses polling (everyMinute) rather than real-time push, resulting in approximately one minute of delay.

n8n workflow template

Structure checked · Not run-tested

Use “Import from File” in n8n, or copy the JSON and paste it into the editor. Connect your own accounts, then try test data. The template is inactive by default.

Setup and test checklist

Credentials to connect

  • Google Docs node: connect googleDocsOAuth2Api credentials.
  • Google Sheets node: connect Google Sheets OAuth2 credentials.
  • Google Drive node: connect Google Drive OAuth2 credentials.

Configuration to replace

  • Source template is n8n public workflow #2754 (~12 nodes). Keep inactive after import; verify triggers, expressions and external API endpoints.
  • Sticky-note guidance is informational; replace placeholders with your own accounts, sheet schemas or channel IDs.

Test input and expected output

  • Manually run the main path once in a test workspace and confirm credentialed nodes authenticate without errors.
  • Drive one synthetic/redacted sample through and check output fields and downstream writes before enabling in production.

Template changes

  • Author credential bindings, webhookId and execution data are removed; the workflow is inactive. Nodes, connections and original prompts are preserved. Not run-tested in n8n.
  • No business-logic edits; verify keys, quotas and privacy compliance before use.

Template retrieved: 2026-10-25

Steps

  1. Configure Google Drive Trigger

    Add a Google Drive Trigger node in n8n. Set Event to fileCreated, Trigger On to specificFolder, and enter the Google Drive folder URL or ID in folderToWatch. Set poll interval to everyMinute. Save and activate the workflow.

  2. Extract Document Content

    Add a Google Docs node, connected to the trigger. Set Operation to get, and use expression '={{ $json.id }}' for documentURL to dynamically receive the file ID from the previous step. This node returns the document's plain text content.

  3. Generate Summary with AI

    Add an OpenAI node (Generate Summary AI), connected to the Google Docs node. Select model gpt-4o-mini. In Messages, set the user message using the following prompt template to pass document content into the model.

    Execution prompt · Source text。OpenAI node Messages field content value

    =Summarise the below content
     {{ $json.content }}
  4. Write to Google Sheets

    Add a Google Sheets node, connected to the OpenAI node. Set Operation to append, select the target spreadsheet and Sheet1. Define three columns in Columns: Name (from Google Drive node's lastModifyingUser.displayName), Email (from lastModifyingUser.emailAddress), Summarise Conetent data (from OpenAI node's $json.message.content). Save and test. [First-test safety] Before the first test, point the Google Sheets append at a test spreadsheet, or temporarily disconnect that node; reconnect production only after the summary looks correct (wrong sheet = data pollution).

Prompt you can copy

Setup guidance · Editorial suggestion。Setup assistant; confirm inputs and permissions first

This block is the prompt. Ads are never placed here.

You are an n8n workflow setup assistant. The user wants to replicate an automation that summarizes new Google Drive documents and saves the summary to Google Sheets. First confirm the user has: 1) a running n8n instance; 2) OAuth2 credentials for Google Drive, Google Docs, and Google Sheets; 3) the target Google Sheet document ID. Then guide them to import the template, configure folder monitoring, verify node connections, and remind them to check the OpenAI node's API key.

Check credentials and node parameters step by step, especially that folderToWatch and documentId are not empty

Source

Summarize the new documents from Google Drive and save summary in Google Sheet · weblineindia · n8n.io · 2025-01-20

Comments & feedback

Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.

Loading…

    Related