AI Agents

Gmail automation

19 nodes 229 128 Automatic trigger
Download

Workflow Description

Build an intelligent agent that retrieves emails from Gmail, analyzes their content using advanced language models, extracts key information, and processes messages automatically to streamline email management and increase productivity.

How it works

  1. 1.Receive emails from Gmail when manual trigger activates
  2. 2.Split lengthy email content into processable chunks
  3. 3.Analyze message content using LLM chain and AI agent
  4. 4.Search for additional context using Wikipedia tool when needed
  5. 5.Extract structured data and key information from emails
  6. 6.Automatically save processed results and action items

Use cases

  • Automatically summarize and categorize long email threads
  • Extract action items and deadlines from work-related messages
  • Organize inbox through intelligent content analysis and classification

Requirements

  • Active Gmail account with API access enabled
  • OpenAI API key for language model integration
  • Basic familiarity with n8n automation workflows

Service Value

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

Apps Used

Document Json Input Loader Text Splitter LLM Chain OpenAI Tool Gmail Output Parser AI Agent

Details

Trigger Automatic trigger
Nodes 19
Apps 8
Views 229
Downloads 128

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

/

When clicking "Execute Workflow"

Manual Trigger

#1

Podcast Episode Transcript

Code

#2

Workflow Input to JSON Document

Document Json Input Loader

#3

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#4

Sticky Note

Sticky Note

#5

Topics

Item Lists

#6

Summarize Transcript

Chain Summarization

#7

GPT 4 - Extract

OpenAI

#8

Wikipedia1

Tool Wikipedia

#9

Sticky Note1

Sticky Note

#10

Send Digest

Gmail

#11

Sticky Note3

Sticky Note

#12

Format topic text & title

Code

#13

Structured Output Parser

Output Parser Structured

#14

Extract Topics & Questions

LLM Chain

#15

GPT3.5 - Research

OpenAI

#16

GPT3.5 - Summarize

OpenAI

#17

Sticky Note4

Sticky Note

#18

Research & Explain Topics

Agent

#19