|
|
Leave Approval Agent
Author: Venkata Sudhakar
Processing leave requests manually across ShopMax India's 2,000-employee workforce creates bottlenecks for managers and HR. An intelligent leave approval agent can instantly check leave balances, flag policy violations, assess team coverage impact, and give the manager a clear approval recommendation.
This tutorial builds a Gemini ADK agent that validates a leave request against the employee's balance, checks if the team has minimum coverage during the requested period, and returns an approval recommendation with reasoning.
The below example shows a leave approval agent for ShopMax India in a business context.
It gives the following output,
Leave Request Evaluation - ShopMax India
Employee : Amit Sharma (EMP-101) | Team: Marketing
Request : 2 days Casual Leave
Balance : 5 days casual leave available
Team Coverage Check:
Team size: 3 | Already absent: 1 (Sunita Rao)
Remaining if approved: 2 (meets minimum of 2)
Recommendation: APPROVE
Reason: Sufficient balance and adequate team coverage maintained.
Remaining balance after approval: 3 casual leave days.
ShopMax India can expose this agent through a manager self-service portal where every leave request triggers an instant AI evaluation. Managers still make the final decision, but the agent eliminates the need to manually check spreadsheets for balances and team rosters, cutting leave processing time from hours to seconds.
|
|