Skip to content
FlowHubFluxonLab
A
AI Automationfree

Answer HR policy and benefits questions with BambooHR, OpenAI and Supabase

by Redowan Ahmed Farhanadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentAuto-fixing Output ParserAuto-fixing Output ParserBambooHRBambooHRBBasic LLM ChainCall n8n Workflow ToolCall n8n Workflow ToolDDefault Data LoaderEmbeddings OpenAIEmbeddings OpenAIInformation ExtractorInformation ExtractorOpenAI Chat ModelOpenAI Chat ModelRecursive Character Text SplitterRecursive Character Text SplitterSSimple MemoryStructured Output ParserStructured Output ParserSupabase Vector StoreSupabase Vector StoreText ClassifierText ClassifierVector Store Question Answer ToolVector Store Question Answer Tool
Share Post Share
MaWhen clicking ‘Test workflow’When clicking ‘…DDDefault Data LoaderDefault Data Lo…Embeddings OpenAIEmbeddings Open…TSRecursive Character Text SplitterRecursive Chara…MBWindow Buffer MemoryWindow Buffer M…OpenAI Chat ModelOpenAI Chat Mod…TVVector Store ToolVector Store To…OpenAI Chat Model1OpenAI Chat Mod…Embeddings OpenAI1Embeddings Open…TWEmployee Lookup ToolEmployee Lookup…OpenAI Chat Model2OpenAI Chat Mod…OpenAI Chat Model3OpenAI Chat Mod…OpenAI Chat Model4OpenAI Chat Mod…OPAuto-fixing Output ParserAuto-fixing Out…OpenAI Chat Model5OpenAI Chat Mod…OPStructured Output ParserStructured Outp…BHGET all filesFiFilter out files from undesired categoriesFilter out file…SOSplit out individual filesSplit out indiv…FiFilter out non-pdf filesFilter out non-…BHDownload file from BambooHRDownload file f…VSSupabase Vector StoreSupabase Vector…ChEmployee initiates a conversationEmployee initia…VSSupabase Vector Store RetrievalSupabase Vector…EWAI-Powered HR Benefits and Company Policies ChatbotAI-Powered HR B…TCText ClassifierBHGET all employeesGET all employe…FiFilter out other employeesFilter out othe…SeStringify employee record for responseStringify emplo…BHGET all employees (second path)GET all employe…AgExtract departmentsExtract departm…SeEnsure uniqueness in department listEnsure uniquene…IEExtract departmentExtract departm…BHRetrieve all employeesRetrieve all em…FiFilter out other departmentsFilter out othe…AgExtract relevant employee fieldsExtract relevan…CLIdentify most senior employeeIdentify most s…SeFormat name for responseFormat name for…AgHR AI Agent123456789
1/5
FLOWS
STEPS · 9
Run manually by an operator

Quick Overview This workflow ingests company policy PDFs from BambooHR into a Supabase vector database and provides an employee chat interface that answers policy and benefits questions using OpenAI, with an additional employee/department lookup powered by BambooHR employee data. How it works Starts a manual run to fetch files from BambooHR and keep only PDFs in the “Company Files” category. Downloads each selected PDF, splits it into chunks, generates OpenAI embeddings, and inserts the content into a Supabase vector table for retrieval. Exposes a chat trigger where employees submit questions to an HR assistant. Uses OpenAI with conversation memory and retrieves relevant policy content from the Supabase vector store to ground responses. When a question requires a contact person, looks up employee details in BambooHR by exact name or finds the most senior person in a requested department using an OpenAI-assisted department extraction and ranking step. Returns the final answer to the chat, including policy-based guidance and any retrieved employee contact details.

Tags

n8nreference-onlyagentbamboo-hrchain-llmdocument-default-data-loaderembeddings-open-aiinformation-extractorlm-chat-open-aimemory-buffer-windowoutput-parser-autofixingoutput-parser-structuredtext-classifiertext-splitter-recursive-character-text-splittertool-vector-storetool-workflowvector-store-supabase
Connects
AAI AgentautofixingoutputparserAuto-fixing Output ParserbamboohrBambooHRBBasic LLM Chaincalln8nworkflowtoolCall n8n Workflow ToolDDefault Data Loader
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes39
AddedJun 30, 2026

Related workflows

See all AI Automation
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
autofixingoutputparserBopenaichatmodelstructuredoutputparser
free

Force AI to use a specific output format

This workflow is for anyone looking to automatically fetch, validate, and parse complex language-based queries into a structured format. Its unique capability lies in not only processing language but also fixing invalid outputs before structuring them. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
ACembeddingsopenaiopenaichatmodel
free

Handle WhatsApp sales inquiries with OpenAI, Pinecone, Google Calendar, and Slack

Quick overview This workflow handles inbound WhatsApp Business messages with an OpenAI-powered sales agent that uses Pinecone RAG for product answers and Google Calendar tools for scheduling, then either replies on WhatsApp or hands the conversation to Slack, with Slack-based error alerts. How it works Triggers on every inbound WhatsApp Business message and checks whether the payload contains a text body. Drops non-text messages (such as images or voice notes) and continues only with text conversations. Uses an OpenAI chat model with per-customer session memory to generate a concise sales reply and decide whether a human handoff is needed. Lets the agent query a Pinecone-backed product catalog via OpenAI embeddings to answer pricing, specs, and availability questions. Lets the agent check availability and book appointments in Google Calendar when the customer requests scheduling. Parses the agent’s HANDOFF flag and either posts the customer message plus draft reply to a Slack channel or sends the reply back to the customer on WhatsApp. Sends a Slack alert to an ops channel if any step in the workflow fails. Setup Connect WhatsApp Business Cloud credentials and set the WhatsApp Phon

by Redowan Ahmed Farhan