What this workflow does
This workflow helps you download a document from Google Drive and automatically make a short summary using OpenAI. It stops you from reading long files by hand and saves a lot of time.
It works by getting a file from Google Drive, breaking the content into smaller parts, then sending those parts to the GPT-4o-mini model to create a fast summary.
Who should use this workflow
This is for anyone who has many big documents on Google Drive and wants quick summaries.
Users who dislike reading long texts or want their reports faster find this helpful.
Tools and services used
- n8n: The automation platform where the workflow runs.
- Google Drive: The place where documents are stored and downloaded.
- OpenAI GPT-4o-mini model: The AI that creates the summaries.
Inputs, processing steps, and outputs
Inputs
- A Google Drive file URL or file ID from which to download the document.
- OAuth2 credentials for Google Drive and OpenAI API keys.
Processing Steps
- The workflow starts when the user clicks the manual trigger in n8n.
- The Google Drive node downloads the chosen file as binary data.
- The data goes to the Summarization Chain node, which controls the next steps.
- The content passes through a Token Splitter node that breaks text into parts of 3000 tokens each.
- The Default Data Loader node reads these chunks preparing the text for the AI.
- The OpenAI Chat Model node, set to GPT-4o-mini, makes a short summary of the text chunks.
Output
The workflow produces a brief summary of the document, making long files easier to understand quickly.
Beginner step-by-step: How to use this workflow in n8n
1. Import the workflow
- Download the workflow file using the Download button on this page.
- Open the n8n editor where you want to use the workflow.
- Click “Import from File” and select the downloaded workflow file.
2. Configure the workflow
- Add your Google Drive OAuth2 credentials in n8n to allow file access.
- Add your OpenAI API key to the OpenAI Chat Model node for summarization permission.
- Change the Google Drive file ID to match the exact file you want to summarize.
3. Test and activate
- Run the workflow once by clicking the manual trigger to check if it downloads and summarizes correctly.
- If the test works, activate the workflow to use it anytime.
For more privacy or server control, consider running self-host n8n.
Common errors and solutions
- File not found error in Google Drive node
Means wrong file ID or missing permission.
Check the file ID carefully and make sure your Google Drive credentials can access the file. - Authentication error in OpenAI Chat Model node
Means the API key is wrong or expired.
Update the API key in the credentials section and reauthorize.
Customization ideas
- Change the AI model in the OpenAI Chat Model node from “gpt-4o-mini” to names like “gpt-3.5-turbo” for different style or cost.
- Adjust the chunk size in the Token Splitter node to make summaries more detailed or faster.
- Swap the manual trigger for a Cron trigger to run the workflow on a schedule.
- Add a Google Drive List Files node to process many documents one by one automatically.
Summary of benefits
✓ Saves hours by automating document reading.
✓ Helps get summaries without reading whole files.
✓ Improves accuracy by reducing human error.
→ Produces quick, concise summaries ready for reports.
