Leave requests by email: HR approval with leave balance
An employee emails a leave request. The AI reads dates and duration, the workflow looks up the leave balance in your Table (columns email, days_left), and HR approves with balance and dates in view. Approval adds an all-day event to the calendar and drafts the confirmation; a refusal drafts a kind answer.
- By
- Loop & Roll team · Official
- Copied
- 0 times
- Steps
- 10
- Version
- 1 · 18 October 2026
- Requires
- Loop & Roll 1.0.0 or later
Workflow graph
How it works
-
1
Leave request received
trigger.email -
2
Read the request
ai.extract -
3
Look up the leave balance
table.find -
4
HR approval
flow.approval -
5
Add the absence to the calendar
google_calendar.create_event -
6
Write the confirmation
ai.compose -
7
Save the confirmation as a draft
mail.send -
8
Write the refusal
ai.compose -
9
Save the refusal as a draft
mail.send -
10
Tell HR: no balance found
notify.send
What you will fill in after import
Nothing personal travels with a template: connections, mailboxes, tables and recipients are left blank for you to pick in your instance.
- Tables to choose
- Look up the leave balance · table
- Connections to choose
- Add the absence to the calendar · credential (gmail_oauth) OpenAI · connection (llm_provider)
- Mailboxes to choose
- Save the confirmation as a draft · mailbox Save the refusal as a draft · mailbox
- Secrets to fill in
- Tell HR: no balance found · webhookUrl
See also
More in Approvals
- Approvals Official Sensitive legal replies: partner review before release For each client email received by the firm, the AI summarises the issue and writes a cautious draft. Emails touching litigation, deadlines,... Microsoft Teams OpenAI
- Approvals Official Quotes above 10,000 EUR: double approval Reads each quote emailed for release (PDF). Above 10,000 EUR it needs two approvals in a row: sales manager, then finance director, who sees... OpenAI
- Approvals Official Purchase request: approval, then the order is sent A team member emails a purchase request. The AI extracts item, quantity, supplier, total and cost centre; the purchasing manager approves. O... OpenAI Tables