SuperAPI AI Directory

autonomous-hr-chatbot

autonomous-hr-chatbot is an autonomous HR agent prototype built with ChatGPT, LangChain, Pinecone, and Streamlit. It can use the tools at hand to answer human resources-related queries, such as querying attendance policies, employee data, and performing mathematical calculations. The project includes the original 2023 implementation and a 2026 updated version (v2/), the latter of which uses the OpenAI Responses API agent loop and no longer relies on LangChain and Pinecone. This repository mainly serves as a reference example for enterprise-grade autonomous agents.

Open website

About this tool

autonomous-hr-chatbot is an autonomous HR agent prototype designed to answer users' human resources queries through tools. The project was created by stepanogil, and the repository retains both the original 2023 implementation and the 2026 modernized updated version.

Purpose: This agent is aimed at enterprise HR scenarios and can autonomously call available tools to answer queries from employees or managers, such as querying attendance policies, retrieving employee data, performing calculations, etc.

Main capabilities:

  • Attendance policy query: Uses sample HR policy documents generated by ChatGPT, creates embeddings through OpenAI's text-embedding-ada-002 model, and stores them in a Pinecone index to enable policy question answering based on vector retrieval.
  • Employee data operations: Loads a CSV file containing virtual employee data (such as names, supervisors, remaining vacation days, etc.) as a pandas dataframe, which the LLM queries and operates on through LangChain's PythonAstREPLTool.
  • Calculator: Integrates LangChain's calculator chain module LLMMathChain for mathematical calculations.
  • Frontend interaction: Uses Streamlit and the streamlit_chat component to build the chat interface.

How to use:

  1. Install Python 3.10 (supports Windows and Mac).
  2. Clone the repository to a local directory.
  3. In the terminal, run pip install -r requirements.txt to install all dependency modules.
  4. Fill in your own API keys in the hr_agent_backend_local.py file (if you need to use the Azure version, you can modify hr_agent_backend_azure.py and uncomment it in frontend.py).
  5. In the terminal, run streamlit run hr_agent_frontent.py to start the application.
  6. Create a Pinecone account at pinecone.io (there is a free tier), and record the Pinecone API and environment values.
  7. Run the notebook 'store_embeddings_in_pinecone.ipynb', replacing it with your own Pinecone and OpenAI API keys (for the embedding model).

Applicable scenarios: Suitable as a prototype reference for enterprise autonomous agents, used to demonstrate how to combine LLMs, vector databases, and tool calls to build an HR assistant. It can also be used to learn how to integrate LangChain agents with tool modules.

Limitations:

  • The original version (2023) relies on LangChain, Pinecone, and ChatGPT/gpt-3.5-turbo.
  • The 2026 updated version (v2/) uses the OpenAI Responses API agent loop, no longer uses LangChain and Pinecone, and includes gpt-5.2 reasoning summaries.
  • The project is a prototype, uses virtual employee data and sample policy documents, and does not mention production environment deployment details.
  • Users need to provide their own OpenAI and Pinecone API keys.
  • Other technical components include Azure OpenAI Service, Azure Data Lake, Azure Data Factory, SAP HCM, etc., but detailed integration methods are not yet provided.