AI Agents

Filter and classify Gmail messages with AI automatically

14 nodes 223 123 Automatic trigger
Download

Workflow Description

An automation that receives new emails, analyzes them using an AI agent powered by OpenAI, extracts structured data, and automatically categorizes or organizes messages based on content without manual intervention.

How it works

  1. 1.Receive new message from Gmail
  2. 2.Process text with AI agent connected to OpenAI
  3. 3.Analyze content and extract structured data
  4. 4.Classify message by type or priority
  5. 5.Execute appropriate action (organize or forward)

Use cases

  • Automatically sort sales and support emails by priority and topic
  • Extract data from invoices and proposals and organize into tables
  • Intelligently filter unimportant messages and spam
  • Route customer emails to the correct team without manual work

Requirements

  • Active Gmail account with API access permission
  • Valid OpenAI API key to run language models
  • Clear format specification for data you want to extract from messages

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

AI Agent OpenAI Output Parser Gmail

Details

Trigger Automatic trigger
Nodes 14
Apps 4
Views 223
Downloads 123

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (14)

/

If

If

#1

Check the format

Code

#2

AI Agent

Agent

#3

OpenAI Chat Model

OpenAI

#4

Structured Output Parser

Output Parser Structured

#5

Reply

Gmail

#6

Extract the HTML

Code

#7

Sticky Note1

Sticky Note

#8

Sticky Note

Sticky Note

#9

Sticky Note2

Sticky Note

#10

HTML from binary

Extract From File

#11

Email Trigger

Gmail

#12

Download Attachment

Gmail

#13

Sticky Note3

Sticky Note

#14