Route procurement helpdesk tickets from Gmail with Groq and Slack
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets, Groq Chat Model and Slack. It also calls jsonplaceholder.typicode.com over HTTP.
How it runs
Trigger: On Gmail events.
- Extract Email & Ticket Details (Code): runs custom JavaScript code
- Check Existing Ticket Thread (Google Sheets): uses Google Sheets
- Is This a New Ticket? (If): checks a condition and branches into true / false
- AI Procurement Ticket Classifier (AI Agent): runs an AI agent, with model: Groq Chat Model
- Smart Routing & SLA Engine (Code): runs custom JavaScript code
- Check Escalation Rules (If): checks a condition and branches into true / false
- Send Slack Escalation Alert (Slack): uses Slack
- Create Standard Support Ticket (HTTP Request): calls jsonplaceholder.typicode.com
- Create Escalated Support Ticket (HTTP Request): calls jsonplaceholder.typicode.com
- Prepare Ticket Assignment Data (Edit Fields (Set)): sets or maps fields
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: jsonplaceholder.typicode.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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (New Procurement Email Trigger).
Nodes used (10)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Slack
n8n-nodes-base.slack - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail
From the author
Quick Overview This workflow monitors a Gmail inbox for procurement requests, uses Groq (Llama 3.1) to classify and route each ticket with SLA logic, escalates high-risk items to Slack, creates a ticket via HTTP, sends an auto-reply from Gmail, and logs the…