{
  "openruna_format": "flow-graph-v1",
  "title": "1246_Extractfromfile_HTTP_Automation_Webhook",
  "slug": "1246-extractfromfile-http-automation-webhook",
  "source_filename": "1246_Extractfromfile_HTTP_Automation_Webhook.json",
  "nodes": [
    {
      "id": "Get All files",
      "name": "Get All files",
      "integration": "httpRequest",
      "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": "Extract Document PDF",
      "name": "Extract Document PDF",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "Embeddings OpenAI",
      "name": "Embeddings OpenAI",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "Create File record2",
      "name": "Create File record2",
      "integration": "supabase",
      "kind": "action"
    },
    {
      "id": "If",
      "name": "If",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Get All Files",
      "name": "Get All Files",
      "integration": "supabase",
      "kind": "action"
    },
    {
      "id": "Download",
      "name": "Download",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "OpenAI Chat Model1",
      "name": "OpenAI Chat Model1",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Embeddings OpenAI2",
      "name": "Embeddings OpenAI2",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model2",
      "name": "OpenAI Chat Model2",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Vector Store Tool1",
      "name": "Vector Store Tool1",
      "integration": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "kind": "action"
    },
    {
      "id": "Switch",
      "name": "Switch",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Insert into Supabase Vectorstore",
      "name": "Insert into Supabase Vectorstore",
      "integration": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "kind": "action"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Supabase Vector Store",
      "name": "Supabase Vector Store",
      "integration": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "If",
      "to": "Download"
    },
    {
      "from": "If",
      "to": "Loop Over Items"
    },
    {
      "from": "Merge",
      "to": "Create File record2"
    },
    {
      "from": "Switch",
      "to": "Merge"
    },
    {
      "from": "Switch",
      "to": "Extract Document PDF"
    },
    {
      "from": "Download",
      "to": "Switch"
    },
    {
      "from": "Aggregate",
      "to": "Get All files"
    },
    {
      "from": "Get All Files",
      "to": "Aggregate"
    },
    {
      "from": "Get All files",
      "to": "Loop Over Items"
    },
    {
      "from": "Loop Over Items",
      "to": "If"
    },
    {
      "from": "Create File record2",
      "to": "Insert into Supabase Vectorstore"
    },
    {
      "from": "Extract Document PDF",
      "to": "Merge"
    },
    {
      "from": "When chat message received",
      "to": "AI Agent"
    },
    {
      "from": "Insert into Supabase Vectorstore",
      "to": "Loop Over Items"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "Get All Files"
    }
  ]
}