๐ŸŽฏ Automated email classification & response system with Gmail, GPT, and Sheets

โšก 1,407 views ยท ๐ŸŽฏ AI Summarization & Classification

Description

Email Automation Workflow Template

This n8n template demonstrates how to automate email classification, labeling, draft generation, and logging using Gmail, OpenAI, and Google Sheets.
Use cases include customer support management, sales inquiry handling, and keeping track of incoming emails efficiently in a structured way.


Good to know


How it works

  1. The workflow is triggered by new emails in Gmail.
  2. Emails are classified into categories: Support, Sales, Complaints, Information, or Other.
  3. Based on the classification:
    • Support and Sales emails โ†’ Draft response generated with OpenAI and labeled in Gmail.
    • Complaints, Information, and Other โ†’ Emails labeled accordingly.
  4. All processed emails and generated outputs are logged in Google Sheets (Logs).
  5. Any workflow errors are captured in the Errors sheet for debugging.

How to use


Requirements


Customizing this workflow

๐Ÿ”— Nodes Used

Google Sheets, Gmail, Gmail Trigger, OpenAI Chat Model, OpenAI, Text Classifier

๐Ÿ“ฅ Import

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

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup