Skip to main content

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

Workflow preview

Workflow preview
100%
Automate Zendesk Support replies with GPT-4o-mini, Google Sheets & Gmail preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatazureopenai, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger, n8n-nodes-base.zendesk, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.chainllm

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rahul Joshi.

Original n8n.io source

1.1 Workflow description

Title
Automate Zendesk Support replies with GPT-4o-mini, Google Sheets & Gmail
Workflow name
Automate Zendesk Support replies with GPT-4o-mini, Google Sheets & Gmail

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Azure OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - lmChatAzureOpenAi
Config choices
Version 1

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Test Start

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 14 - Fetch Zendesk Tickets

Type / Role
n8n-nodes-base.zendesk - zendesk
Config choices
Version 1

Block 15 - Select Latest Ticket

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Load FAQ List

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 17 - Merge Ticket & FAQs

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 18 - Prepare Data for AI

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Generate Support Reply

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 21 - Fetch Requester Email

Type / Role
n8n-nodes-base.zendesk - zendesk
Config choices
Version 1

Block 22 - Merge Reply & User Info

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 23 - Format Email for Gmail

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 24 - Send Auto-Reply

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Automate Zendesk Support replies with GPT-4o-mini, Google Sheets & Gmail
Complexity advanced
Nodes 24
Categories Support Chatbot, AI Chatbot
Author Rahul Joshi
Published 19 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8744/8744.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate Zendesk Support replies with GPT-4o-mini, Google Sheets & Gmail do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.