AI Agents

Automated workflow

24 nodes 215 117 Scheduled trigger
Download

Workflow Description

A scheduled automation workflow that retrieves emails from Outlook, processes them in batches, analyzes content using AI, applies conditional logic to filter results, and automatically publishes approved content to Twitter/X based on predefined criteria.

How it works

  1. 1.Collect emails from Outlook according to scheduled trigger timing
  2. 2.Split incoming email data into manageable batches for processing
  3. 3.Analyze message content using Google Gemini AI for classification and insights
  4. 4.Evaluate results against conditional filters to determine publish-worthiness
  5. 5.Post qualified content to Twitter/X accounts automatically

Use cases

  • Automatically curate and share relevant email-sourced news and updates to social media audiences
  • Batch-process incoming emails for classification and strategic distribution across channels

Requirements

  • Active Outlook and Twitter/X accounts with proper API permissions
  • Valid Google Gemini API key configured in n8n environment

Service Value

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

Apps Used

Outlook Split In Batches If Gemini Twitter/X

Details

Trigger Scheduled trigger
Nodes 24
Apps 5
Views 215
Downloads 117

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

/

Split Attachments

Code

#1

Download Attachments

Microsoft Outlook

#2

Parse Output

Set

#3

For Each Message

Split In Batches

#4

Message Ref

No Op

#5

Message Classifier

If

#6

Extract from File

Extract From File

#7

Markdown

Markdown

#8

Empty Response

Set

#9

Wait

Wait

#10

Filter Invoices

Filter

#11

Has Invoice?

If

#12

Schedule Trigger

Schedule Trigger

#13

Sticky Note1

Sticky Note

#14

Sticky Note2

Sticky Note

#15

Get Recent Messages

Microsoft Outlook

#16

Model

Gemini Model

#17

Sticky Note

Sticky Note

#18

Microsoft Excel 365

Microsoft Excel

#19

Sticky Note3

Sticky Note

#20

Sticky Note4

Sticky Note

#21

Invoice Classifier With Gemini 2.0

HTTP Request

#22

File-Based OCR with Gemini 2.0

HTTP Request

#23

Sticky Note5

Sticky Note

#24