Leave requests checked, decided and on the calendar

by AGNTOfficialAgent template

GmailGoogle CalendarGoogle Sheets

When someone emails to request time off, an agent checks their remaining balance and who else on the team is away, prepares the decision for the manager, then replies, logs the leave and blocks the calendar once the manager says yes.

Get this template

Opens in AGNT and takes about a minute.

3
Tools connected
~10 min
Setup, 4 steps
Local
Runs on your machine
Per category
You approve
Any model
Uses the one you have

What the agent actually does

Everything the manager needs, in one place

Days requested, balance remaining after the request, and who else is off on those dates. The manager decides in seconds instead of opening three tools.

The manager decides, always

The agent prepares; it never approves or declines. Each request waits for the manager’s yes or no, with an optional note.

Logged and visible

Approved leave is written to the leave sheet and added to the shared team calendar, so the balance stays right and everyone can see who is away.

The tools this job needs

Gmail

Where the work arrives. The inbox most operations still start in. The agent watches it and reads what turns up in full, rather than matching a rule against a subject line.

Google Calendar

Context the agent pulls in before deciding. The shared clock your workflows can read and write. It is read, not just referenced — which is what lets the decision account for it.

Google Sheets

Where the result lands. The database every team already has open. Nothing is written here until the agent has formed a view and, where you asked for it, you have approved it.

The brief it works from

This is the actual instruction set the template installs — what the agent is told to do, and what it is told never to do. Every line of it is yours to edit in AGNT after install.

Read the full brief

You prepare leave requests for managers to decide, and record the outcome.

Find requests

Search Gmail where the user said leave requests arrive for unprocessed requests. Read each: who, which dates, full or half days, and any reason they chose to give.

Check

From the leave sheet: the person’s allowance, days taken and balance after this request (count working days only; half days as 0.5). From the shared team calendar: who else on the same team is away on those dates. From the policy tab if there is one: notice rules and blackout periods.

Prepare the decision

Show the manager: the request, balance before and after, clashes, and any policy rule it breaks. Ask approve or decline, with an optional note.

After the decision

Draft the reply to the person with the decision and the manager’s note; send it only when the user approves the reply. If approved, append the leave to the sheet and create an all-day event on the shared team calendar titled with the person’s name and "out of office".

Boundaries

Never approve or decline on your own. Never record leave that was not approved. Never include the person’s stated reason in the calendar or in any shared place. Never process sick leave or anything involving health; direct it to HR.

Shown exactly as it ships. The agent inherits whichever model you already use.

Leave requests are simple, and handled badly

Requesting a few days off should take a minute. In practice the request arrives by email, the manager checks a spreadsheet for the balance, scrolls the shared calendar for clashes, replies, and someone eventually updates the sheet and the calendar — or does not. Holidays then collide, balances drift and people are not sure whether their leave was approved. Putting the checking and the record-keeping in one flow removes almost all of that.

The decision stays human

Approving leave involves judgement the data does not hold: a deadline that week, a colleague covering, a personal situation. The agent never decides. It sets out the facts — the dates, the balance, the clashes, any policy rule such as a minimum notice period — and asks the manager. Only after the manager’s answer does it reply to the person, in a tone you choose, with the decision and any note.

One source of truth for time off

Once approved, the leave goes onto the leave sheet with the dates and days, and onto the shared team calendar as an all-day block. The next request sees the updated balance and the new absence automatically. That single record is also what the timesheet and payroll agents read, so time off is entered once and respected everywhere.

Common questions

Can it approve leave automatically?

No. Every request waits for the manager’s decision.

What about sick leave?

This agent handles planned leave. Sick leave involves health information and should go through your usual HR route.

Does it understand half days?

Yes, when the request says so. It counts half days as 0.5 against the balance.

What if the balance would go negative?

The summary says so clearly before the manager decides, with the balance before and after the request.

Can people request leave by Slack instead of email?

Requests are read from email. If your team asks in Slack, ask them to forward the request or send it to the leave address, so there is a written record the agent can work from.

Give AI a job. Get the proof.

The AGNT briefing

Stay in the loop.

New agents, workflows and field notes. Sign up for AGNT updates.

By subscribing, you agree to receive AGNT updates. Unsubscribe any time. Privacy policy.