n8n

Gmail to Vector Embeddings with PGVector and Ollama

Who is this for? Everyone! Did you dream of asking an AI "what hotel did I stay in for holidays last summer?" or "what were my marks last semester like?". Dream no more, as vector…

Use case
Personal Productivity
Difficulty
advanced
Author
Alfonso Corretti
Updated
Jun 7, 2026

Required custom nodes

  • postgres
  • splitInBatches
  • gmail
  • gmailTrigger
  • code
  • manualTrigger
  • textSplitterRecursiveCharacterTextSplitter
  • splitOut

Gmail to Vector Embeddings with PGVector and Ollama

A working n8n automation that runs against a local model via Ollama - 1,892 views on the n8n template library. Who is this for? Everyone! Did you dream of asking an AI "what hotel did I stay in for holidays last summer?" or "what were my marks last semester like?". Dream no more, as vector…

What it does

Who is this for? Everyone! Did you dream of asking an AI "what hotel did I stay in for holidays last summer?" or "what were my marks last semester like?". Dream no more, as vector… It chains 15 nodes, integrating postgres, splitInBatches, gmail, gmailTrigger.

Requirements

  • n8n (self-hosted, free) to run the workflow
  • Ollama serving a local model
  • A GPU with enough VRAM for your chosen model (see best model per GPU)

Import it

Open the workflow on the n8n template library and click Use workflow to import it into your self-hosted n8n, then point its model node at your local Ollama endpoint (http://localhost:11434).

Use it with

n8n · Ollama


Workflow by Alfonso Corretti on the n8n template library. We link to the original to import; credit and the workflow JSON belong to its author.