Triage Gmail support inquiries with Google Gemini, Calendar, Sheets, and Discord
Ready for 3.0Ready 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-10-19.
Worth a look
- Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (When Email Arrives)
Nodes used (10)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Code
n8n-nodes-base.code - Google Calendar
n8n-nodes-base.googleCalendar - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Discord
n8n-nodes-base.discord
What it does
Quick overview This workflow watches Gmail for unread “Inquiry Received” emails, uses Google Gemini to classify and summarize the inquiry and draft a reply, calculates an SLA deadline, then creates a Google Calendar event, logs the ticket in Google Sheets, and alerts a Discord channel for high-priority cases. How it works 1. Triggers every minute when an unread Gmail message arrives with the subject matching “Inquiry Received”. 2. Sends the email sender, subject, and body to Google Gemini to return structured JSON containing category, priority, a short summary, and a reply draft. 3. Calculates an SLA deadline based on priority (High: +4 hours, Medium: next day at 18:00, Low: +3 days at 18:00) and builds a task title and formatted deadline. 4. Creates a Google Calendar event from the received time to the SLA deadline with the inquiry details in the description. 5. Appends the ticket details (including the Calendar event link) to a specified Google Sheets worksheet. 6. Creates a Gmail draft reply in the original email thread using the AI-generated reply text. 7. Posts an urgent Discord alert when the inquiry priority is High. Setup 1. Add credentials for Gmail, Google Gemini (Google AI), Google Calendar, Google Sheets, and a Discord webhook connection. 2. Update the Gmail trigger search filter if you want different matching criteria than unread emails with subject “Inquiry Received”. 3. Set your Google Sheets document ID and sheet name, and ensure the sheet has columns for receivedat, priority, category, sender, subject, summary, deadline, and calendareventurl. 4. Confirm the target Google Calendar (default is your primary calendar) where the SLA events should be created. 5. Configure the Discord node to post to your desired incident/alerts channel via webhook.