Automate Zendesk Support Replies with GPT-4o-mini, Google Sheets & Gmail

Go to Workflow
0 views
Built by Rahul Joshi Rahul Joshi
Created on June 05, 2026

Description

Description
This workflow automates Zendesk ticket handling with AI-powered auto-replies. It pulls in new support tickets, checks against a Google Sheets FAQ database, and generates accurate responses using GPT-4o-mini. If the question matches an FAQ, the system replies with the predefined answer; otherwise, it drafts a polite, professional custom response. Finally, the workflow formats and sends the reply via Gmail, ensuring customers always receive quick and reliable support.

What This Template Does (Step-by-Step)
🎫 Fetch Latest Zendesk Ticket
Retrieves and filters tickets, keeping only the most recent one.
πŸ“‹ Load FAQ Knowledge Base (Google Sheets)
Provides predefined answers for common support queries.
πŸ”€ Merge Ticket + FAQs
Combines ticket details and FAQ list into one clean dataset.
🧹 Prepare Data for AI
Restructures merged data into JSON with two sections: ticket + faqs.
πŸ€– Generate Support Reply (Azure OpenAI GPT-4o-mini)
If ticket matches FAQ β†’ sends exact predefined answer.
If no match β†’ crafts a polite AI-generated reply.
πŸ“§ Fetch Requester Email (Zendesk)
Resolves requester_id into a usable customer email.
πŸ”— Merge Reply + User Info
Joins AI reply with customer’s email into one dataset.
πŸ“ Format for Gmail
Creates a ready-to-send JSON: to, subject, body.
πŸ“¨ Send Auto-Reply (Gmail)
Delivers the response directly to the customer’s inbox.

Prerequisites

Zendesk account & API credentials
Google Sheet with FAQ list (questions + answers)
n8n instance (cloud or self-hosted)
Azure OpenAI API key (GPT-4o-mini)
Gmail API credentials (for reply delivery)
1
Step-by-Step Setup
Connect Zendesk API β†’ Pull latest tickets.
Configure Google Sheets β†’ Load FAQ dataset.
Merge both streams (ticket + FAQs) β†’ Prepare JSON.
Use LLM (Azure OpenAI GPT-4o-mini) β†’ Match against FAQ or generate AI response.
Fetch Requester Email from Zendesk.
Merge AI reply + email address.
Format structured JSON for Gmail.
Send final email via Gmail OAuth2.

Customization Ideas
⚑ Add Slack/Teams notification for each reply sent.
πŸ“Š Log all ticket + AI replies into Airtable/Notion for tracking.
🎨 Personalize tone of AI responses (friendly, formal, technical).
πŸ“‚ Add auto-tagging in Zendesk (e.g., β€œAI handled” vs β€œFAQ match”).
πŸ” Extend workflow to escalate unresolved queries to human agents.

Key Benefits
βœ… Always-on support replies β€” no waiting time
βœ… Accurate FAQ answers + fallback to AI-generated responses
βœ… Seamless Gmail integration for customer communication
βœ… Reduces manual ticket load on agents
βœ… Fully customizable for tone, logging, and escalation

Perfect For
🎯 Customer support teams handling repetitive queries
πŸ“ˆ Growing startups needing scalable support
πŸ€– Businesses wanting AI + FAQ hybrid support
πŸ“© Any company using Zendesk + Gmail for customer service

Nodes Used (6)

Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Google Sheets
n8n-nodes-base.googleSheets
Zendesk
n8n-nodes-base.zendesk