🎫 Draft and label Gmail support and sales replies with OpenAI

⚑ 59 views · 🎫 Ticket Management & Triage

Description

Quick overview

Automatically triage incoming Gmail messages and prepare AI-generated replies with OpenAI while keeping a human in control.

This workflow monitors unread emails in your Gmail inbox, classifies each message as Support, Sales, Information, or Other, and routes it through the appropriate processing path.

How it works

  1. Monitor Gmail:
  1. Load Gmail labels:
  1. Normalize the email:
  1. Classify with OpenAI:
  1. Route by category:
  1. Generate a reply:
  1. Validate the AI response:
  1. Create the Gmail draft:
  1. Apply Gmail labels:

Setup

  1. Import the workflow: Download or copy the template into your n8n instance.
  2. Connect Gmail:
  1. Connect OpenAI:
  1. Configure your business information:
  1. Review the AI instructions:
  1. Test the workflow:
  1. Activate the workflow:

Requirements

Customization

Additional info

Human-in-the-loop by design

This workflow creates drafts instead of sending emails automatically.

AI-generated responses can therefore be reviewed, edited, or discarded before anything reaches the recipient.

This is intentional and makes the workflow suitable for assisting with business email without giving the AI autonomous control over outgoing communication.

Free Edition

This is the Free Edition of the Email Automation System.

It contains the core email automation pipeline:

Gmail β†’ Classification β†’ Specialized AI Agent β†’ Validation β†’ Draft β†’ Label

A Pro Edition is available for users who need a more complete production-oriented system with advanced configuration, logging, analytics, evaluation, monitoring, and error-handling capabilities.

Production use

Test the workflow with representative emails before connecting it to an important production inbox.

AI-generated content may be incorrect or incomplete. Always review drafts carefully, especially for financial, legal, contractual, security-sensitive, or other high-impact communications.

Need help setting it up?

I can install, configure, and customize the system for your environment and business requirements.

πŸ”— Nodes Used

Google Sheets, Gmail, Gmail Trigger, AI Agent, OpenAI Chat Model, Structured Output Parser

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup