AI Agents

Intelligent Gmail message analysis and social media posting

36 nodes 296 144 Automatic trigger
Download

Workflow Description

Advanced workflow that captures incoming emails through a web form, processes them in batches using Gemini AI, extracts key insights with an intelligent agent, and automatically posts summaries to X while storing email content in a vector database for future retrieval and analysis.

How it works

  1. 1.Receive emails via web form and split them into manageable batches for processing
  2. 2.Analyze email content using an AI agent powered by Google Gemini
  3. 3.Generate professional summaries and automatically publish them to X platform

Use cases

  • Convert large customer emails into social media posts automatically in real-time
  • Build a searchable knowledge base from incoming email data using vector embeddings
  • Reduce manual email summarization workload and accelerate content publishing

Requirements

  • Active Gmail account with full API access and authentication credentials
  • Google Gemini API key and configured LLM integration
  • X (Twitter) account with valid API credentials for posting

Service Value

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

Apps Used

Form Trigger Split In Batches Gemini Gmail AI Agent Twitter/X Vector Store Embeddings Document Default Data Loader Text Splitter Chat Trigger LLM Chain

Details

Trigger Automatic trigger
Nodes 36
Apps 12
Views 296
Downloads 144

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

/

On form submission4

Form Trigger

#1

Loop Over Items1

Split In Batches

#2

If2

If

#3

Aggregate1

Aggregate

#4

Google Gemini Chat Model5

Gemini Model

#5

split the binary item

Code

#6

Parsing the document

HTTP Request

#7

Check the parsing status

HTTP Request

#8

Provide the markdown

HTTP Request

#9

Google Gemini Chat Model6

Gemini Model

#10

Markdown

Markdown

#11

Gmail

Gmail

#12

Code

Code

#13

Convert to File

Convert To File

#14

AI Agent

Agent

#15

Google Gemini Chat Model

Gemini Model

#16

Information Extractor

Information Extractor

#17

Google Gemini Chat Model1

Gemini Model

#18

Convert to File4

Convert To File

#19

Pinecone Vector Store

Vector Store Pinecone

#20

Embeddings Mistral Cloud

Embeddings Mistral Cloud

#21

Default Data Loader

Document Default Data Loader

#22

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#23

When chat message received

Chat Trigger

#24

Question and Answer Chain

Chain Retrieval Qa

#25

Google Gemini Chat Model2

Gemini Model

#26

Vector Store Retriever

Retriever Vector Store

#27

Pinecone Vector Store1

Vector Store Pinecone

#28

Embeddings Mistral Cloud1

Embeddings Mistral Cloud

#29

AI Agent1

Agent

#30

Google Gemini Chat Model3

Gemini Model

#31

Sticky Note

Sticky Note

#32

Translator Agent

Agent

#33

Analyzer Agent

Agent

#34

Sticky Note1

Sticky Note

#35

Sticky Note2

Sticky Note

#36