Skip to main content

Gmail to Zendesk: AI-enriched ticket creation with GPT-4o and Google Sheets logging

Workflow preview

Workflow preview
100%
Gmail to Zendesk: AI-enriched ticket creation with GPT-4o and Google Sheets logging 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 Turn incoming Gmail messages into structured Zendesk tickets, enriched by Azure OpenAI, and log key details to Google Sheets for tracking. Ideal for IT Support teams needing fast, consi...

Best for

  • Ticket Management automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, n8n-nodes-base.zendesk, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatazureopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent

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
Gmail to Zendesk: AI-enriched ticket creation with GPT-4o and Google Sheets logging
Workflow name
Gmail to Zendesk: AI-enriched ticket creation with GPT-4o and Google Sheets logging

Description

Turn incoming Gmail messages into structured Zendesk tickets, enriched by Azure OpenAI, and log key details to Google Sheets for tracking. Ideal for IT Support teams needing fast, consistent intake and documentation. ⚡

What This Template Does

  • Fetches new emails via Gmail Trigger. ✉️
  • Normalizes Gmail data and formats it for downstream steps.
  • Enriches and structures content with Azure OpenAI Chat Model and Output Parsers.
  • Creates Zendesk tickets from the processed data. 🎫
  • Appends or updates logs in Google Sheets for auditing and reporting. 📊

Key Benefits

  1. Saves time by automating ticket creation and logging. ⏱️
  2. Improves ticket quality with AI-driven normalization and structure.
  3. Ensures consistent records in Google Sheets for easy reporting.
  4. Reduces manual errors in IT Support intake. ✅

Features

  • Gmail-triggered intake flow for new messages.
  • AI enrichment using Azure OpenAI Chat Model with parsing and memory tooling.
  • Zendesk ticket creation (create: ticket) with structured fields.
  • Google Sheets logging (appendOrUpdate: sheet).
  • Modular design with Execute Workflow nodes for reuse and scaling.

Requirements

  • n8n instance (Cloud or self-hosted).
  • Gmail credentials configured in n8n for the Gmail Trigger.
  • Zendesk credentials with permission to create tickets.
  • Google Sheets credentials with access to the target spreadsheet (append/update enabled).
  • Azure OpenAI credentials configured for the Azure OpenAI Chat Model and associated parsing.

Target Audience

  • IT Support and Helpdesk teams handling email-based requests. 🛠️
  • Operations teams standardizing inbound email workflows.
  • Agencies and MSPs offering managed support intake.
  • Internal automation teams centralizing ticket capture and logging.

Step-by-Step Setup Instructions

  • Connect Gmail credentials in n8n and select the inbox/label for the Gmail Trigger.
  • Add Zendesk credentials and confirm ticket creation permissions.
  • Configure Google Sheets credentials and select the target sheet for logs.
  • Add Azure OpenAI credentials to the Azure OpenAI Chat Model node and verify parsing steps.
  • Import the workflow, assign credentials to each node, update any placeholders, and run a test.
  • Rename the final email/logging nodes descriptively (e.g., “Log to Support Sheet”) and schedule if needed.

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 - Gmail Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 2 - Create Zendesk Ticket

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

Block 3 - Format Sheet Data

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

Block 4 - Normalize Gmail Data

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

Block 5 - Azure OpenAI Chat Model

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

Block 6 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 7 - Log to Google Sheets

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

Block 8 - Sticky Note

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

Block 9 - Sticky Note1

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

Block 10 - Sticky Note2

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

Block 11 - AI Agent for Task Prioritization

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

Block 14 - Sticky Note5

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

3. Summary Table

Workflow Gmail to Zendesk: AI-enriched ticket creation with GPT-4o and Google Sheets logging
Complexity intermediate
Nodes 14
Categories Ticket Management, AI Chatbot
Author Rahul Joshi
Published 22 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8823/8823.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 Gmail to Zendesk: AI-enriched ticket creation with GPT-4o and Google Sheets logging do?

Description Turn incoming Gmail messages into structured Zendesk tickets, enriched by Azure OpenAI, and log key details to Google Sheets for tracking. Ideal for IT Support teams needing fast, consi...

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 Ticket Management, AI Chatbot use case.