Library / RAG & Knowledge Bases
RAG & Knowledge Bases
Answer HR Policy Questions from BambooHR with OpenAI
When a chat message arrives, an OpenAI agent searches policy documents stored in Supabase and BambooHR employee data to answer HR questions.
What it does
### AI Chatbot Operating Guidelines - When an employee asks for a contact person, first attempt to find the relevant contact in company_files. - If a contact person is found but their details (e.g., email or phone number) are missing, use the employee_lookup_tool to retrieve their contact details. - If no contact person is found: 1. Use the employee_lookup_tool with "HR" (or another relevant department) to retrieve the most senior person in that department. 2. If no senior contact is found, ask the employee for their name. 3. Use the employee_lookup_tool to retrieve their supervisor’s name. 4. Use the employee_lookup_tool to retrieve their supervisor’s details. 5. Provide the supervisor's contact information and recommend them as the best next point of contact.
The steps
- When clicking ‘Test workflow’
- Default Data Loader
- Embeddings OpenAI
- Recursive Character Text Splitter
- Window Buffer Memory
- OpenAI Chat Model
- Vector Store Tool
- OpenAI Chat Model1
- Embeddings OpenAI1
- Employee Lookup Tool
- OpenAI Chat Model2
- OpenAI Chat Model3
- OpenAI Chat Model4
- Auto-fixing Output Parser
39 steps in total.
Similar automations
RAG & Knowledge BasesAnswer HR Policy Questions with BambooHR, OpenAI and Supabase39 stepsRAG & Knowledge BasesBambooHR Company Policies and Benefits Chatbot with OpenAI48 stepsRAG & Knowledge BasesBambooHR Company Policies and Benefits Chatbot48 stepsCode, Git & Developer ToolsTest n8n Webhooks with PostBin Without Changing WEBHOOK_URL34 steps