Automate employee leave approvals with GPT, Gmail & Calendar integration
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when someone submits an n8n form (“Leave Request Form”). Along the way it connects OpenAI Chat Model, Gmail and Google Calendar.
How it runs
Trigger: When someone submits an n8n form (“Leave Request Form”).
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Send message and wait for response (Gmail): send and wait for a reply
- If: checks a condition and branches into true / false
- Send a message (Gmail): uses Gmail
- Booking Agent (AI Agent): runs an AI agent, with model: OpenAI; 2 tools (Get Events, Check Availability); output parser: Output Parser
- Send a message (Gmail): uses Gmail
Services it uses
Other OpenAI + Gmail templates (1,623) · Other Google Calendar + Gmail templates (239) · Other Google Calendar + OpenAI templates (184)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Google Calendar Tool
n8n-nodes-base.googleCalendarTool
From the author
How it works This workflow automates the complete employee leave approval process from submission to final resolution. Employees submit leave requests through a form, which are summarized professionally using AI and sent for approval via email. The workflow…