Skip to content
Developer & DevOps

Automate workflows triggered by incoming Gmail messages

40 nodes 566 160 Automatic trigger
Download

Loading workflow…

Workflow Description

Advanced Gmail automation that monitors incoming emails and executes complex workflows with conditional logic, data processing, and filtering. Enables automatic triggering of multi-step operations based on message content, sender, or other criteria, with flexible data transformation and external service integration.

How it works

  1. 1.Monitor new Gmail messages in real-time
  2. 2.Process and transform email data
  3. 3.Apply conditional filters to route messages
  4. 4.Execute logic-based actions
  5. 5.Aggregate results and send webhook responses

Use cases

  • Automatically create support tickets from customer emails
  • Route messages to external services based on content criteria

Requirements

  • Active Gmail account with API access
  • Basic understanding of conditional logic and data filtering

Service Value

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

Apps Used

Gmail

Details

Trigger Automatic trigger
Nodes 40
Apps 1
Views 566
Downloads 160

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

/

Gmail Trigger

Gmail

#1

Gmail - Extract Received Headers

Code

#2

Gmail - Extract Original From IP

Set

#3

Gmail - Original IP Found?

If

#4

Gmail - Query IP Quality Score API

HTTP Request

#5

Gmail - Query IP API

HTTP Request

#6

Gmail - Authentication-Results Header?

If

#7

Gmail - Received-SPF Header?

If

#8

Gmail - Extract Authentication-Results Header

Code

#9

Gmail - Extract Received-SPF Header

Code

#10

Gmail - Determine Auth Values

Set

#11

Gmail - Set SPF Value

Set

#12

Gmail - No SPF Found

Set

#13

Gmail - Format Output

Set

#14

Gmail - DKIM Signature Found

Set

#15

Gmail - DKIM-Signature Header?

If

#16

Gmail - No DKIM Signature Found

Set

#17

Gmail - Set DMARC Value

Set

#18

Gmail - Extract DMARC Header

Code

#19

Gmail - DMARC Header?

If

#20

Gmail - No DMARC Header

Set

#21

Set Gmail Headers Here

Set

#22

Format Individual Auth Outputs1

Set

#23

Format Combined Auth Output1

Set

#24

Gmail - Webhook

Webhook

#25

Gmail - Remove Extra Received Headers

Limit

#26

Gmail - Merge

Merge

#27

Gmail - Aggregate

Aggregate

#28

Gmail - Set Headers

Set

#29

Gmail - Respond to Webhook

Webhook

#30

Aggregate Received-SPF Headers1

Aggregate

#31

Set Gmail Webhook Headers Here

Set

#32

Sticky Note

Sticky Note

#33

Sticky Note2

Sticky Note

#34

Sticky Note3

Sticky Note

#35

Sticky Note4

Sticky Note

#36

Sticky Note5

Sticky Note

#37

Sticky Note6

Sticky Note

#38

Sticky Note1

Sticky Note

#39

Skip IP Check

No Op

#40
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime