Skip to main content

Route Gmail support emails to Zendesk with spam filtering and duplicate checks

Workflow preview

Workflow preview
100%
Route Gmail support emails to Zendesk with spam filtering and duplicate checks preview
Open on n8n.io

1. Workflow Overview

(Retail Automation) Gmail Trigger → Spam Filter → Duplicate Check → Zendesk Ticket Creation This workflow automatically converts incoming support emails from Gmail into structured Zendesk tickets. ...

Best for

  • Ticket Management automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.zendesk, n8n-nodes-base.merge, n8n-nodes-base.if, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Route Gmail support emails to Zendesk with spam filtering and duplicate checks
Workflow name
Route Gmail support emails to Zendesk with spam filtering and duplicate checks

(Retail Automation) Gmail Trigger → Spam Filter → Duplicate Check → Zendesk Ticket Creation

This workflow automatically converts incoming support emails from Gmail into structured Zendesk tickets. It filters spam, extracts key customer details, auto-tags issues, prevents duplicate tickets and creates clean, actionable support tickets in Zendesk.

Quick Implementation Steps

  1. Connect your Gmail support inbox to the Gmail Trigger.
  2. Configure spam keywords and domains in the Spam Detection node.
  3. Map email fields in the Set node.
  4. Connect your Zendesk account.
  5. Activate the workflow.

What It Does

This workflow listens for new emails arriving in a Gmail support inbox and immediately processes them through a clean automation pipeline. Spam or suspicious emails are filtered early to keep the support system noise-free.

Valid emails are normalized by extracting customer details such as name, email, subject, message content and thread ID. The workflow automatically tags tickets based on keywords like “refund” or “damaged” for better prioritization.

Before creating a new ticket, the workflow checks existing Zendesk tickets to avoid duplicates. Only genuine, new requests are converted into Zendesk tickets with all required fields populated.

Who’s It For

  • Customer support teams using Gmail and Zendesk
  • Small to mid-sized businesses handling email-based support
  • Operations teams looking to reduce manual ticket creation
  • Support managers who want clean, duplicate-free ticket queues

Requirements

  • n8n instance (self-hosted or cloud)
  • Gmail account with access to the support inbox
  • Zendesk account with API access enabled
  • OAuth credentials for Gmail and Zendesk

How It Works & How To Set Up

Step-by-Step Setup

  1. Gmail Trigger Connect your Gmail account and monitor the support inbox for new emails.

  2. Spam Detection & Filtering Configure spam keywords and disposable email domains. Spam emails are stopped immediately.

  3. Extract & Normalize Email Data (Set Node) Extract customer name, email, subject, message snippet, thread ID, received time and initial tags.

  4. Auto-Tag Ticket Based on Email Content Scan the email body and apply tags like refund, damaged or late_delivery.

  5. Fetch Existing Zendesk Tickets Retrieve current tickets to provide historical context.

  6. Merge & Detect Duplicates Compare email subject with existing tickets to detect duplicates.

  7. Create Zendesk Ticket If no duplicate is found, create a new Zendesk ticket with structured data.

How To Customize Nodes

  • Spam Detection Node: Add or remove keywords and domains.
  • Tagging Code Node: Extend keyword-to-tag mappings.
  • Set Node: Map additional email fields if needed.
  • Zendesk Node: Adjust priority, status or add custom fields.

Add-ons

  • Route VIP customers to priority queues.
  • Assign tickets based on keywords or tags.
  • Fetch order details from an eCommerce system.
  • Send Slack or Email notifications to agents.

Use Case Examples

  • Converting customer order issues into Zendesk tickets.
  • Filtering marketing or spam emails automatically.
  • Preventing duplicate tickets from email replies.
  • Auto-tagging refund and damaged item requests.
  • Centralizing Gmail-based support into Zendesk.

(There are many more ways this workflow can be extended.)

Troubleshooting Guide

Issue Possible Cause Solution
Tickets not created Duplicate detected Check subject matching logic
Spam emails passing through Missing keywords Add more spam keywords/domains
Empty fields in Zendesk Incorrect Set mappings Verify field expressions
OAuth errors Expired credentials Reconnect Gmail/Zendesk account

Need Help?

Need help setting this up or extending it further?

Our n8n workflow development experts at WeblineIndia can help you customize this workflow, add advanced automations or even build similar n8n workflows tailored to your business needs. Reach out to our experts to get started faster and smarter.

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 - New Support Email Trigger

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

Block 2 - Spam Detection & Filtering

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

Block 3 - Extract & Normalize Email Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Auto-Tag Ticket Based on Email Content

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

Block 5 - Zendesk – Fetch Existing Tickets

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

Block 6 - Merge Email With Existing Tickets

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

Block 7 - Detect Duplicate Ticket by Subject

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

Block 8 - Is This a New Ticket?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Create Zendesk Support Ticket

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

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note4

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

Block 15 - Sticky Note5

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

3. Summary Table

Workflow Route Gmail support emails to Zendesk with spam filtering and duplicate checks
Complexity advanced
Nodes 15
Categories Ticket Management
Author WeblineIndia
Published 10 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13280/13280.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 Route Gmail support emails to Zendesk with spam filtering and duplicate checks do?

(Retail Automation) Gmail Trigger → Spam Filter → Duplicate Check → Zendesk Ticket Creation This workflow automatically converts incoming support emails from Gmail into structured Zendesk tickets. ...

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 use case.