# Time-off requests by email with manager approval

Employees email their vacation or leave requests to an address you give them. The dates and type of leave are pulled out and a manager or admin is asked to approve or reject. An approved request is posted to your HR system's webhook and the employee gets a reply saying it was approved; a rejected one gets a reply saying so. If nobody answers within three days, nothing is sent.

**Use cases:** HR and recruiting, Operations, Automation

**Tags:** time off, PTO, vacation request, leave request, holiday, manager approval, human in the loop, email, absence

[Create this agent](https://seclai.com/agent-examples/create/time_off_request_approval)

## How it starts

Trigger: email received.
Accepts files: Other files (ignored).

## What it needs

No knowledge base, memory bank or connection to create first.

## Steps

- Read the request
- Parse the request
- Manager approval
- Approved or rejected?
  - When: Approved, in parallel: Record the leave in your HR system
  - In parallel: Tell the employee it was approved
  - When: Rejected: Tell the employee it was not approved
  - Otherwise: No decision in time
- Show the decision
