AutomationMart
Home/Browse/Load and aggregate files from a Google Drive folder into a key-value dictionary
n8n

Load and aggregate files from a Google Drive folder into a key-value dictionary

n8nn8n5 modulesv1.0
NotionAirtableOpenAIGoogle DriveHugging Face

What does this template do? This workflow automates the process of retrieving all Google Docs from a specified Google Drive folder, extracting their content, and structuring the data into a unified key-value dictionary, where: - Key = The file name - Value = The content of the document (with normalized newlines) This is ideal for use cases such as knowledge ingestion, prompt context preparation, or populating a RAG (Retrieval-Augmented Generation) system with reference documents. Use Case Perfec

At a glance

Load and aggregate files from a Google Drive folder into a key-value dictionary is a ready-made n8n workflow you import as a workflow JSON file โ€” no build required. It connects Notion, Airtable, OpenAI, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Notion, Airtable, OpenAI, Google Drive, Hugging Face
Modules
5
Price
Free
Version
v1.0
Load and aggregate files from a Google Drive folder into a key-value dictionary workflow diagram

About this workflow

What does this template do? This workflow automates the process of retrieving all Google Docs from a specified Google Drive folder, extracting their content, and structuring the data into a unified key-value dictionary, where: - Key = The file name - Value = The content of the document (with normalized newlines) This is ideal for use cases such as knowledge ingestion, prompt context preparation, or populating a RAG (Retrieval-Augmented Generation) system with reference documents. Use Case Perfect for teams or individuals who maintain prompts, content, or reference material in Google Docs and want to integrate that data dynamically into automation or AI workflows. What the Workflow Does - โšก Triggered via Execute Workflow Trigger from another workflow - ๐Ÿ“ Retrieves all files from a specified Google Drive folder - ๐Ÿ“„ Downloads the full content of each Google Docs file - ๐Ÿงฉ Maps each file name to its content using a Set node - ๐Ÿง  Aggregates all entries into a single dictionary with Code node - ๐Ÿงพ Outputs a JSON object like: Apps & Services Used - Google Drive - Google Docs - n8n Code node Pre-requisites - A connected Google account with access to the target Drive folder - OAuth2 credentials for both: - Google Drive - Google Docs Customization Tips - Change Folder: Update the Google Drive node to select a specific folder rather than root - Support Other File Types: Replace or complement the Google Docs node to handle other formats (e.g., PDFs or text files) - Data Cleaning: Modify the Code node to adjust text normalization to your needs Additional Use Cases ๐Ÿง  Prompt Management for AI Workflows - Centralize your GPT prompt templates in Google Docs instead of hardcoding them in n8n - Easily manage prompt versions and edits directly from Google Drive - Dynamically load prompts into downstream nodes (like OpenAI or Hugging Face) without redeploying workflows ๐Ÿ“š Knowledge Base Loader for RAG Systems - Aggregate internal knowledge, FAQs, SOPs, or policy docs from Google Docs into a structured dictionary - Use the resulting object as the context source for Retrieval-Augmented Generation models ๐ŸŽ›๏ธ Dynamic Form Inputs or Question Sets - Maintain forms, surveys, or interview questions in Google Docs - Load the content into n8n for form generation, chatbot interaction, or customer intake flows ๐Ÿ“„ Client-Specific Config or Script Templates - For client onboarding workflows, load client-specific scripts or prompts from individual docs named after each client - Helps automate client-facing document generation or AI interactions ๐Ÿ“‹ Content Ingestion for Translation, Summarization, or Sentiment Analysis - Batch process internal documentation or user-submitted Google Docs - Trigger summarization, translation, or classification pipelines using the document contents ๐Ÿ”„ Document-to-Database Import - Automatically fetch and normalize Google Docs contents, ready to push into a database (e.g., Notion, Airtable, PostgreSQL)

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n โ†’ click the menu โ†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Automated content strategy with Google Trends, News, Firecrawl & Claude AI

Full walkthrough video: Automated trend monitoring for content strategy Who's it for Content creators, marketers, and social media managers who want to stay ahead of emerging trends and generate relevant content ideas based on data-driven insights. What it does This workflow automatically identifies trending topics related to your industry, collects recent news articles about these trends, and generates content suggestions. It transforms raw trend data into actionable editorial opportunities by

Free

Get content of a Google Doc, edit using ChatGPT and create a new doc

Periodically fetch contents of a Google Doc and edit using ChatGPT. The automation will then create a new Google Doc with the AI results.

Free

Text-to-image generator with Google Sheets & Drive integration using Flux AI

Text-to-Image Generator using n8n + Flux AI This n8n workflow automates image generation from text prompts using the Text-to-Image Flux AI API. It reads prompts from Google Sheets, generates images via API, uploads them to Google Drive, and logs the outcome. --- ๐ŸŒŸ Key Features - Integrates with Text-to-Image Flux AI on RapidAPI - Converts base64 image data to downloadable files - Stores images on Google Drive - Updates logs and errors back into Google Sheets - Skips prompts already processed ---

Free

Binance SM price-24hrStats-OrderBook-Kline tool

A powerful sub-agent that collects real-time market structure data from Binance for any trading pair โ€” including price, volume, order book depth, and candlestick snapshots across multiple timeframes (15m, 1h, 4h, 1d). --- ๐ŸŽฅ Watch Tutorial: []( ๐ŸŽฏ Purpose This workflow powers the Quant AI system with: โœ… Real-time price feed (/ticker/price) โœ… 24-hour stats (OHLC, % change, volume via /ticker/24hr) โœ… Live order book depth (/depth) โœ… Latest candlestick data (/klines) for all major intervals All o

Free

AI-Powered Employee Database Management via Telegram using OpenAI and Airtable

Who is this for? This workflow is perfect for: HR professionals seeking to automate employee and department management Startups and SMBs that want an AI-powered HR assistant on Telegram Internal operations teams that want to simplify onboarding and employee data tracking --- What problem is this workflow solving? Managing employee databases manually is error-prone and inefficientโ€”especially for growing teams. This workflow solves that by: Enabling natural language-based HR operations directl

Free

Transcribe long audio files beyond 25MB limit with FileFlows and OpenAI Whisper

Who's it for This template is designed for content creators, podcasters, businesses, and researchers who need to transcribe long audio recordings that exceed OpenAI Whisper's 25 MB file size limit (20 minutes of audio). How it works This workflow combines n8n, FileFlows, and OpenAI Whisper API to transcribe audio files of any length: 1. User uploads an MP3 file through a web form and provides an email address 2. n8n splits the file into 4 MiB chunks and uploads them to FileFlows 3. Fi

Free

Enrich IP addresses with country attribution using IPinfo and Slack alerts

Template Description IP Enrichment & Country Attribution is a lightweight cybersecurity automation that enriches IP addresses with geographic and network intelligence. It validates incoming IPs, filters out private or invalid addresses, and enriches public IPs using an open-source IP enrichment service. ๐Ÿ”„ How It Works 1. Receives an IP address via webhook (API or Slack). 2. Validates the IP format and rejects invalid input. 3. Checks for private or internal IP ranges. 4. Ignores private IPs wit

Free

Scheduled YouTube video uploads with Google Sheets & Drive integration

Description: Effortlessly automate YouTube video uploads with this ready-to-use n8n workflow. Integrated with Google Sheets, Google Drive, and YouTube API, this template streamlines your video publishing process based on scheduled metadata entries. Key Features: - ๐Ÿ—“๏ธ Scheduled Uploads (Monโ€“Fri at 9 AM, 12 PM, 3 PM) - ๐Ÿ“‹ Reads video metadata (title, description, filename) from Google Sheets - ๐Ÿ” Locates video files in Google Drive by filename - โฌ‡๏ธ Downloads and uploads videos to YouTube with the co

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint โ€” instant download
  • Setup guide PDF included
  • 5 downloads ยท valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

โ‚น2,499/ session
3 hrs ยท video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free