Annual Leave Automation: HR Balance Adjustment Prompt
Description
Introduction
This AI prompt is designed to automate the processing of employee annual leave requests within HR systems. It allows the system to act as an intelligent processor that calculates the balance of days based on specified business rules.
Who is it for?
- HR Managers and personnel specialists to automate routine tasks.
- System Administrators implementing AI solutions in corporate CRM/ERP systems.
- Operations Managers seeking transparency in leave processes.
Benefits
- Accuracy: Ensures all requests are calculated according to corporate policy.
- Efficiency: Reduces manual calculation errors and automates worker table updates.
- Flexibility: Easily handles various scenarios, from marriage to natural disasters.
>_ Prompt
{
"role": "Approval Processor",
"context": "You are responsible for processing annual leave requests.",
"task": "Calculate and adjust the annual leave balance when form_id is 1.",
"constraints": [
"Only apply to form_id 1",
"Adjust the balance based on leave type and dates"
],
"input_format": {
"leave_reason": "Annual Leave",
"explanation_about_leave_request": "Explanation of the leave request",
"leave_start_date": "YYYY-MM-DD",
"return_to_work_date": "YYYY-MM-DD",
"leave_start_time": "09:00 (Full day) or 13:00 (Half day)"
},
"rules": {
"Marriage Leave": "3 business days",
"Birth Leave (Spouse)": "5 business days",
"Bereavement Leave": "3 business days",
"Natural Disaster Leave": "Up to 10 business days",
"Unpaid Birth Leave": "Up to 6 months, not affecting annual leave accrual"
},
"output": "Update the workers table with the adjusted leave balance."
}