Documentation

← All agent examples

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.

HR and recruiting
Operations
Automation
time off
PTO
vacation request
leave request
holiday
manager approval
human in the loop
email
absence

How it starts

When an email arrives.

Accepts files: Other files (ignored)

What it needs

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

Steps

Read the request

Prompt Call

Parse the request

Extract Content

Manager approval

Human-in-the-Loop

Approved or rejected?

Switch

When: Approved, in parallel:

Record the leave in your HR system

Webhook Call

In parallel:

Tell the employee it was approved

Send Email

When: Rejected:

Tell the employee it was not approved

Send Email

Otherwise:

No decision in time

Text

Show the decision

Display Result