Templates / Categorize Google Drive files with OpenAI and log results in Google Sheets

Categorize Google Drive files with OpenAI and log results in Google Sheets

Ready for 3.0

by Javed Iqbal ✓ · 1 views · created 2026-10-08 · File Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 59 nodes and runs on a schedule (every minute) (plus 2 other triggers). Along the way it connects Google Sheets, Google Drive and Slack. It also calls googleapis.com over HTTP.

How it runs

Trigger: On a schedule (every minute) (plus 2 other triggers).

  1. Set Configuration Variables (Edit Fields (Set)): sets 31 fields: SOURCE_FOLDER_ID, DESTINATION_ROOT_FOLDER_ID, LOG_SPREADSHEET_ID…
  2. E1 - Format Workflow Failure (Code): runs custom JavaScript code
  3. Read Logs from Sheets (Google Sheets): uses Google Sheets
  4. E2 - Send Failure Alert (Slack) (Slack): uses Slack
  5. If: checks a condition and branches into true / false
  6. D1 - Build Daily Summary (Code): runs custom JavaScript code
  7. Fetch Google Drive Files (HTTP Request): calls googleapis.com
  8. D2 - Send Daily Summary (Slack) (Slack): uses Slack
  9. Select Files for Processing (Code): runs custom JavaScript code
  10. D3 - Send Daily Summary (Email) (Send Email): sends an email over SMTP

…plus 45 more steps. See the full node list below.

Services it uses

Google SheetsGoogle DriveSlack

HTTP calls to: googleapis.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (15)

From the author

Quick overview This workflow polls a Google Drive “Incoming” folder, uses an OpenAI-compatible Chat Completions API to classify files into predefined categories, moves them into matching subfolders under an “Organized” root, and appends an audit log row to…

Excerpt from Javed Iqbal's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.