Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HR Chatbot

This project implements a simple HR chatbot. The chatbot is designed to answer basic HR-related queries and also can handle leave requests.

Prerequisites

  • Node.js and npm: Make sure you have Node.js (version 16 or higher) and npm installed on your system. You can download them from https://nodejs.org/.
  • Python 3: You need Python 3 (version 3.7 or higher) installed. You can download it from https://www.python.org/downloads/.

Setup and Installation

  1. Clone the repository:

    git clone https://github.com/AvizRepo/hr-chatbot.git
    cd hr-chatbot
  2. Install Node.js dependencies:

    npm install
  3. Install Python dependencies:

    cd chatbot
    pip install -r requirements.txt

Running the Chatbot

  1. Start the Node.js server:

    node server.js

    The server will start on port 3000.

  2. Access the chatbot:

    Open your web browser and go to http://localhost:3000. Click on the chat icon in the bottom-right corner to interact with the chatbot.

Testing the Chatbot

To test the chatbot, open the chat interface in your browser and try the following:

  1. Ask predefined HR questions:

    • "How many leaves do I have left?"
    • "What is the work-from-home policy?"
    • "What is the procedure for applying for leave?"
    • "When is the payroll disbursed?"
  2. Submit a leave request:

    • "I want to take leave from 2024-05-10 to 2024-05-15" (or use natural language like "I want to take leave from May 10th to May 15th").
    • Confirm the leave request by typing "yes".

    The leave request will be simulated and the details will be written to the leave_requests.txt file.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages