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…

The short answer

Gmail to Vector Embeddings with PGVector and Ollama is a n8n workflow for Personal Productivity. 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 is rated advanced and runs locally — free and private, with 8 custom nodes required.

Use case
Personal Productivity
Difficulty
advanced
Author
Alfonso Corretti
Updated
Jul 23, 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.

Frequently asked

What does the Gmail to Vector Embeddings with PGVector and Ollama workflow do?

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 is a n8n workflow built for Personal Productivity.

What do I need to run Gmail to Vector Embeddings with PGVector and Ollama?

Gmail to Vector Embeddings with PGVector and Ollama runs on n8n and needs 8 custom nodes. It runs entirely on your own machine.

Is Gmail to Vector Embeddings with PGVector and Ollama free to use?

Yes. Gmail to Vector Embeddings with PGVector and Ollama is a local, self-hosted n8n workflow — there are no per-run or API costs once your hardware is set up.

How hard is it to set up Gmail to Vector Embeddings with PGVector and Ollama?

Gmail to Vector Embeddings with PGVector and Ollama is rated advanced. Expect some configuration; review the required components first.