AI Agents

Analyze Gmail messages and organize them in Airtable with AI

38 nodes 346 176 Automatic trigger
Download

Workflow Description

An advanced automation template that receives emails from Gmail, analyzes them using an OpenAI-powered AI agent, extracts key data, and automatically transfers organized records to Airtable tables. This workflow streamlines email processing and data management for business operations.

How it works

  1. 1.Receive new Gmail messages via the email trigger
  2. 2.Analyze message content using an OpenAI-powered AI agent
  3. 3.Process and extract structured data from emails
  4. 4.Apply filtering and data formatting rules
  5. 5.Send processed records to Airtable tables

Use cases

  • Extract customer information from emails and store in a centralized database
  • Automatically categorize incoming messages by priority, sender, or topic
  • Create project records or sales leads from email data for team collaboration

Requirements

  • Active Gmail account with API access permissions enabled
  • Airtable account with pre-configured database and table structure
  • OpenAI API key to access language models for content analysis

Service Value

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

Apps Used

OpenAI Tool Output Parser Gmail Airtable AI Agent

Details

Trigger Automatic trigger
Nodes 38
Apps 6
Views 346
Downloads 176

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 (38)

/

OpenAI Chat Model

OpenAI

#1

Calculator

Tool Calculator

#2

Structured Output Parser

Output Parser Structured

#3

Add Label "Processed"

Gmail

#4

Active Routes Only

Filter

#5

Extract Route ID

Set

#6

Deactivate Route

Airtable

#7

Add Label "Error"

Gmail

#8

Send notification about deactivated route

Gmail

#9

Send notification about missing route

Gmail

#10

Get Route by ID

Airtable

#11

Create Notion Page

HTTP Request

#12

Gmail Trigger

Gmail

#13

Filter for unprocessed mails

Filter

#14

When clicking ‘Test workflow’

Manual Trigger

#15

Required labels

Filter

#16

Globals

Set

#17

Sticky Note

Sticky Note

#18

Sticky Note1

Sticky Note

#19

Sticky Note2

Sticky Note

#20

Sticky Note3

Sticky Note

#21

Sticky Note4

Sticky Note

#22

Sticky Note5

Sticky Note

#23

Sticky Note6

Sticky Note

#24

Sticky Note7

Sticky Note

#25

Sticky Note8

Sticky Note

#26

Sticky Note9

Sticky Note

#27

No Operation, do nothing

No Op

#28

Sticky Note10

Sticky Note

#29

Sticky Note11

Sticky Note

#30

Sticky Note12

Sticky Note

#31

Format Notion Page Blocks

Code

#32

Get all labels

Gmail

#33

Structured Output Parser1

Output Parser Structured

#34

Calculator1

Tool Calculator

#35

OpenAI Chat Model1

OpenAI

#36

Generate Actionable Task

Agent

#37

Get Summary & Meta Data

Agent

#38