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

Go to Workflow
0 views
Built by Rahul Joshi Rahul Joshi
Created on September 19, 2025

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