Triage employee leave requests with Google Sheets, Groq API, and Gmail
Ready for 3.0What this workflow does
This workflow has 17 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets and Gmail. It also calls api.groq.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Request Fields (Edit Fields (Set)): sets 4 fields: Email, Start, End…
- Read Employees from Sheets (Google Sheets): uses Google Sheets
- Read Requests from Sheets (Google Sheets): uses Google Sheets
- Calculate Leave Metrics (Code): runs custom JavaScript code
- Check Approval Status (If): checks a condition and branches into true / false
- Return Success Response (Respond to Webhook): sends the response back to the webhook caller
- Return Error Response (Respond to Webhook): sends the response back to the webhook caller
- Post to Groq API (HTTP Request): calls api.groq.com (POST)
- Parse Groq API Response (Code): runs custom JavaScript code
- Append Request to Sheets (Google Sheets): append
…plus 6 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Groq + Google Sheets templates (156) · Other Groq + Gmail templates (125)
HTTP calls to: api.groq.com
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 (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail
From the author
Quick Overview This workflow receives leave requests via a webhook, validates them against employee and historical request data in Google Sheets, runs an AI check through the Groq API, then emails the manager for approval and updates Google Sheets and the…