# Manage employee leave requests with Google Forms, Sheets, Gmail and Gemini

> Quick overview This workflow collects employee leave requests via an n8n Form, checks leave balances stored in Google Sheets, emails managers for approval through Gmail (with a Google Gemini-generated message), and updates request status and balances in Google Sheets based on the manager’s email reply. How it works 1. Receives a leave request submission from an n8n Form with employee, manager, date range, leave type, and reason. 2. Looks up the employee in a Google Sheets “Employee Data” spreadsheet and calculates requested days and whether sufficient leave balance exists. 3. If the balance is insufficient, sends a rejection email to the employee via Gmail. 4. If the balance is sufficient, uses Google Gemini to draft a manager approval email and sends it to the manager via Gmail. 5. Stores or updates the leave request in a Google Sheets “Leave Requests” spreadsheet with a generated request ID, status “Pending”, and the Gmail thread ID. 6. Polls Gmail for the manager’s reply, extracts A

- **Domain**: `n8n-workflow-20784.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/20784
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20784.n8n.io
- Documentation: https://n8n.io/workflows/20784
