Templates / Sanitize Google Drive markdown text with a local Ollama model

Sanitize Google Drive markdown text with a local Ollama model

Ready for 3.0

by Tobi Adeleke · 77 views · created 2026-01-21 · Document Extraction, 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 AI workflow has 15 nodes and runs on Google Drive events (folder created). Along the way it connects Google Drive, Ollama Model and Google Sheets.

How it runs

Trigger: On Google Drive events (folder created).

  1. return_files_in_folder (HTTP Request): calls an HTTP API
  2. split_files_item (Split Out): splits a list into separate items
  3. select_markdown_files (Filter): keeps only the items that match a condition
  4. download_drive_files (Google Drive): download
  5. text_from_markdown (Extract from File): extracts data from a file (text)
  6. combine_all_text (Aggregate): combines items into one
  7. chunk_text_for_local_llm (Code): runs custom Python code
  8. Basic LLM Chain: sends a prompt to an LLM, with model: Ollama Model
  9. parse_json_text_with_flag (Edit Fields (Set)): sets 1 field: output
  10. log_text_with_pii_flag (optional) (Google Sheets): append

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

Services it uses

Google DriveOllama ModelGoogle Sheets

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 (12)

From the author

How it works - Downloads markdown documents from a Google Drive folder containing private information, uses the Ollama model to identify and extract sensitive data, and stores the sanitized text in a single combined markdown document. Setup Steps - Google…

Excerpt from Tobi Adeleke'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.