{
  "openruna_format": "flow-graph-v1",
  "title": "BambooHR AI-Powered Company Policies and Benefits Chatbot",
  "slug": "bamboohr-ai-powered-company-policies-and-benefits-chatbot",
  "source_filename": "1352_Splitout_Filter_Automate_Triggered.json",
  "nodes": [
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Default Data Loader",
      "name": "Default Data Loader",
      "integration": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "kind": "action"
    },
    {
      "id": "Embeddings OpenAI",
      "name": "Embeddings OpenAI",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "Recursive Character Text Splitter",
      "name": "Recursive Character Text Splitter",
      "integration": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "kind": "action"
    },
    {
      "id": "Window Buffer Memory",
      "name": "Window Buffer Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Vector Store Tool",
      "name": "Vector Store Tool",
      "integration": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model1",
      "name": "OpenAI Chat Model1",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Embeddings OpenAI1",
      "name": "Embeddings OpenAI1",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "Employee Lookup Tool",
      "name": "Employee Lookup Tool",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model2",
      "name": "OpenAI Chat Model2",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model3",
      "name": "OpenAI Chat Model3",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model4",
      "name": "OpenAI Chat Model4",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Auto-fixing Output Parser",
      "name": "Auto-fixing Output Parser",
      "integration": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model5",
      "name": "OpenAI Chat Model5",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Structured Output Parser",
      "name": "Structured Output Parser",
      "integration": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "kind": "action"
    },
    {
      "id": "GET all files",
      "name": "GET all files",
      "integration": "bambooHr",
      "kind": "action"
    },
    {
      "id": "Filter out files from undesired categories",
      "name": "Filter out files from undesired categories",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Split out individual files",
      "name": "Split out individual files",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Filter out non-pdf files",
      "name": "Filter out non-pdf files",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Download file from BambooHR",
      "name": "Download file from BambooHR",
      "integration": "bambooHr",
      "kind": "action"
    },
    {
      "id": "Supabase Vector Store",
      "name": "Supabase Vector Store",
      "integration": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "kind": "action"
    },
    {
      "id": "Employee initiates a conversation",
      "name": "Employee initiates a conversation",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "Supabase Vector Store Retrieval",
      "name": "Supabase Vector Store Retrieval",
      "integration": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "kind": "action"
    },
    {
      "id": "AI-Powered HR Benefits and Company Policies Chatbot",
      "name": "AI-Powered HR Benefits and Company Policies Chatbot",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "Text Classifier",
      "name": "Text Classifier",
      "integration": "@n8n/n8n-nodes-langchain.textClassifier",
      "kind": "action"
    },
    {
      "id": "GET all employees",
      "name": "GET all employees",
      "integration": "bambooHr",
      "kind": "action"
    },
    {
      "id": "Filter out other employees",
      "name": "Filter out other employees",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Stringify employee record for response",
      "name": "Stringify employee record for response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "GET all employees (second path)",
      "name": "GET all employees (second path)",
      "integration": "bambooHr",
      "kind": "action"
    },
    {
      "id": "Extract departments",
      "name": "Extract departments",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Ensure uniqueness in department list",
      "name": "Ensure uniqueness in department list",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Extract department",
      "name": "Extract department",
      "integration": "@n8n/n8n-nodes-langchain.informationExtractor",
      "kind": "action"
    },
    {
      "id": "Retrieve all employees",
      "name": "Retrieve all employees",
      "integration": "bambooHr",
      "kind": "action"
    },
    {
      "id": "Filter out other departments",
      "name": "Filter out other departments",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Extract relevant employee fields",
      "name": "Extract relevant employee fields",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Identify most senior employee",
      "name": "Identify most senior employee",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "Format name for response",
      "name": "Format name for response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "HR AI Agent",
      "name": "HR AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "GET all files",
      "to": "Filter out files from undesired categories"
    },
    {
      "from": "Text Classifier",
      "to": "GET all employees"
    },
    {
      "from": "Text Classifier",
      "to": "GET all employees (second path)"
    },
    {
      "from": "GET all employees",
      "to": "Filter out other employees"
    },
    {
      "from": "Extract department",
      "to": "Retrieve all employees"
    },
    {
      "from": "Extract departments",
      "to": "Ensure uniqueness in department list"
    },
    {
      "from": "Retrieve all employees",
      "to": "Filter out other departments"
    },
    {
      "from": "Filter out non-pdf files",
      "to": "Download file from BambooHR"
    },
    {
      "from": "Filter out other employees",
      "to": "Stringify employee record for response"
    },
    {
      "from": "Split out individual files",
      "to": "Filter out non-pdf files"
    },
    {
      "from": "Download file from BambooHR",
      "to": "Supabase Vector Store"
    },
    {
      "from": "Filter out other departments",
      "to": "Extract relevant employee fields"
    },
    {
      "from": "Identify most senior employee",
      "to": "Format name for response"
    },
    {
      "from": "GET all employees (second path)",
      "to": "Extract departments"
    },
    {
      "from": "Extract relevant employee fields",
      "to": "Identify most senior employee"
    },
    {
      "from": "Employee initiates a conversation",
      "to": "HR AI Agent"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "GET all files"
    },
    {
      "from": "Ensure uniqueness in department list",
      "to": "Extract department"
    },
    {
      "from": "Filter out files from undesired categories",
      "to": "Split out individual files"
    },
    {
      "from": "AI-Powered HR Benefits and Company Policies Chatbot",
      "to": "Text Classifier"
    }
  ]
}