plano/demos/hr_agent
Salman Paracha ff6e9bd9bd
add README for hr_agent (#224)
* add README for hr_agent

* fixed sample prompt for hr_agent in README

* added screenshot and updated README.md

---------

Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-261.local>
2024-10-24 18:21:52 -07:00
..
arch_config.yaml HR agent demo (#206) 2024-10-23 14:32:40 -07:00
docker-compose.yaml Update chatbot UI and update hallucination check (#218) 2024-10-24 14:11:53 -07:00
Dockerfile HR agent demo (#206) 2024-10-23 14:32:40 -07:00
image.png add README for hr_agent (#224) 2024-10-24 18:21:52 -07:00
main.py HR agent demo (#206) 2024-10-23 14:32:40 -07:00
README.md add README for hr_agent (#224) 2024-10-24 18:21:52 -07:00
requirements.txt HR agent demo (#206) 2024-10-23 14:32:40 -07:00
run_demo.sh HR agent demo (#206) 2024-10-23 14:32:40 -07:00
workforce_data.json HR agent demo (#206) 2024-10-23 14:32:40 -07:00

HR Agent Demo

This demo showcases how the Arch can be used to build an HR agent to manage workforce-related inquiries, workforce planning, and communication via Slack. It intelligently routes incoming prompts to the correct targets, providing concise and useful responses tailored for HR and workforce decision-making.

Available Functions:

  • HR Q/A: Handles general Q&A related to insurance policies.

    • Endpoint: /agent/hr_qa
  • Workforce Data Retrieval: Retrieves data related to workforce metrics like headcount, satisfaction, and staffing.

    • Endpoint: /agent/workforce
    • Parameters:
      • staffing_type (str, required): Type of staffing (e.g., contract, fte, agency).
      • region (str, required): Region for which the data is requested (e.g., asia, europe, americas).
      • point_in_time (int, optional): Time point for data retrieval (e.g., 0 days ago, 30 days ago).
  • Initiate Policy: Sends messages to a Slack channel

    • Endpoint: /agent/slack_message
    • Parameters:
      • slack_message (str, required): The message content to be sent

Starting the demo

  1. Please make sure the pre-requisites are installed correctly
  2. Start Arch
    sh run_demo.sh
    
  3. Navigate to http://localhost:18080/
  4. "Can you give me workforce data for asia?"

alt text