This workflow is designed for HR teams and payroll department to automate the monthly process of calculating employee attendance, salary deductionsm and personalized email notification. It seamlessly integrates Google Sheets, internal attendance data and GPT-4 (via AI Agent) to generate complete monthly payroll reports with professional summaries for each employees.
Before using this workflow, ensure you have:
EmpId Name Date InTime OutTime HoursWorked Status
EmpId Name OriginalSalary TotalMissingHours TotalAbsentDays Deduction FinalSalary EmpEmail
The workflow fetches all employee attendace logs and thier corresponding salary, name and email details from Google Sheets.
The workflow computes total worked hours per day, missing hours and identifies absent days, It then calculates the total missing hours and absences for the entire month.
Each employee's hourly and daily rate is determined from thier salary, and deductions are calculated based on missing hours and absences.
A structured JSON dataset is generated combining attendace summary, deductions and final salary amounts.
Using AI Agent GPT-4 creates a professional, HR-friendly summary paragraph for each employee's email report.
Each employee receives a personalized email with thier final salary summary and monthly attendance report.
Email delivery details and summary text are stored in new Google Sheet for audit and HR tracking.