{
  "openruna_format": "flow-graph-v1",
  "title": "Gmail to Vector Embeddings with PGVector and Ollama",
  "slug": "gmail-to-vector-embeddings-with-pgvector-and-ollama",
  "source_filename": "1783_Splitout_Postgres_Automation_Triggered.json",
  "nodes": [
    {
      "id": "Embeddings Ollama",
      "name": "Embeddings Ollama",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOllama",
      "kind": "action"
    },
    {
      "id": "Default Data Loader",
      "name": "Default Data Loader",
      "integration": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "kind": "action"
    },
    {
      "id": "Recursive Character Text Splitter",
      "name": "Recursive Character Text Splitter",
      "integration": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "kind": "action"
    },
    {
      "id": "Gmail Trigger",
      "name": "Gmail Trigger",
      "integration": "gmail",
      "kind": "trigger"
    },
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Split Out",
      "name": "Split Out",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Was manually triggered?",
      "name": "Was manually triggered?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Manual Trigger",
      "name": "Manual Trigger",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "No Operation, do nothing",
      "name": "No Operation, do nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Set before and after dates",
      "name": "Set before and after dates",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Extract email fields",
      "name": "Extract email fields",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Store structured",
      "name": "Store structured",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "Store vectorized",
      "name": "Store vectorized",
      "integration": "@n8n/n8n-nodes-langchain.vectorStorePGVector",
      "kind": "action"
    },
    {
      "id": "Create the table",
      "name": "Create the table",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "Explode interval into weeks",
      "name": "Explode interval into weeks",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Get a batch of messages",
      "name": "Get a batch of messages",
      "integration": "gmail",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Split Out",
      "to": "Loop Over Items"
    },
    {
      "from": "Gmail Trigger",
      "to": "Extract email fields"
    },
    {
      "from": "Manual Trigger",
      "to": "Create the table"
    },
    {
      "from": "Loop Over Items",
      "to": "Set before and after dates"
    },
    {
      "from": "Create the table",
      "to": "Explode interval into weeks"
    },
    {
      "from": "Store structured",
      "to": "Store vectorized"
    },
    {
      "from": "Store structured",
      "to": "Loop Over Items"
    },
    {
      "from": "Store vectorized",
      "to": "Was manually triggered?"
    },
    {
      "from": "Extract email fields",
      "to": "Store structured"
    },
    {
      "from": "Get a batch of messages",
      "to": "Extract email fields"
    },
    {
      "from": "Was manually triggered?",
      "to": "No Operation, do nothing"
    },
    {
      "from": "Was manually triggered?",
      "to": "Loop Over Items"
    },
    {
      "from": "Set before and after dates",
      "to": "Get a batch of messages"
    },
    {
      "from": "Explode interval into weeks",
      "to": "Split Out"
    }
  ]
}