WorkflowPostgreSQLOpen

Gmail to Vector Embeddings with PGVector and Ollama

Triggered manually or by an app event. Connects Code, Condition, Gmail, Loop, PostgreSQL, Split Out, Stop And Error. Bulk e-mail import Press the Test workflow button to run this once, and bulk import of all your e-mail IMPORTANT Specify your Gmail account creation date by editing the code node Edit this ⬇️ And specify your Gmail account creation date Activate the workflow And this trigger will ch

Front matter
name: Gmail to Vector Embeddings with PGVector and Ollama
description: Triggered manually or by an app event. Connects Code, Condition, Gmail, Loop, PostgreSQL, Split Out, Stop And Error. ## Bulk e-mail import Press the `Test workflow` button to run this once, and bulk import of all your e-mail ### IMPORTANT Specify your Gmail account creation date by editing the code node ## Edit this ⬇️ And specify your Gmail account creation date ## Activate the workflow And this trigger will check for new mail, every minute ## Magic here 🪄 #### (not really, just statistics) E-mail is stored in a `emails_metadata` structured table, and also fed to the [`nomic-embed-text`]({{ $env.WEBHOOK_URL
category: Automation
kind: Workflow
software: Code|Condition|Gmail|Loop|PostgreSQL|Split Out|Stop And Error

Gmail to Vector Embeddings with PGVector and Ollama

Triggered manually or by an app event. Connects Code, Condition, Gmail, Loop, PostgreSQL, Split Out, Stop And Error. ## Bulk e-mail import

Press the Test workflow button to run this once, and bulk import of all your e-mail

IMPORTANT

Specify your Gmail account creation date by editing the code node ## Edit this ⬇️ And specify your Gmail account creation date ## Activate the workflow And this trigger will check for new mail, every minute ## Magic here 🪄

(not really, just statistics)

E-mail is stored in a emails_metadata structured table, and also fed to the [nomic-embed-text]({{ $env.WEBHOOK_URL

Steps

  • Embeddings Ollama (noOp)
  • Default Data Loader (noOp)
  • Recursive Character Text Splitter (noOp)
  • Gmail Trigger (gmailTrigger)
  • Loop Over Items (splitInBatches)
  • Split Out (splitOut)
  • Was manually triggered? (if)
  • Manual Trigger (manualTrigger)
  • No Operation, do nothing (noOp)
  • Sticky Note (stickyNote)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Set before and after dates (set)
  • Extract email fields (set)
  • Sticky Note3 (stickyNote)
  • Store structured (postgres)
  • Store vectorized (noOp)
  • Create the table (postgres)
  • Explode interval into weeks (code)
  • Get a batch of messages (gmail)
  • Error Handler (stopAndError)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Splitout/1783_Splitout_Postgres_Automation_Triggered.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.