Templates / Triage employee leave requests with Google Sheets, Groq API, and Gmail

Triage employee leave requests with Google Sheets, Groq API, and Gmail

Ready for 3.0

by Chijioke Ogbonna ✓ · 0 views · created 2026-10-30 · HR, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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.

  1. Set Request Fields (Edit Fields (Set)): sets 4 fields: Email, Start, End…
  2. Read Employees from Sheets (Google Sheets): uses Google Sheets
  3. Read Requests from Sheets (Google Sheets): uses Google Sheets
  4. Calculate Leave Metrics (Code): runs custom JavaScript code
  5. Check Approval Status (If): checks a condition and branches into true / false
  6. Return Success Response (Respond to Webhook): sends the response back to the webhook caller
  7. Return Error Response (Respond to Webhook): sends the response back to the webhook caller
  8. Post to Groq API (HTTP Request): calls api.groq.com (POST)
  9. Parse Groq API Response (Code): runs custom JavaScript code
  10. Append Request to Sheets (Google Sheets): append

…plus 6 more steps. See the full node list below.

Services it uses

Google SheetsGmail

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)

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…

Excerpt from Chijioke Ogbonna's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.