Schedule email monitoring and AI-powered content classification workflow
Workflow Description
An automated workflow that runs on a defined schedule to monitor incoming Outlook emails, classify messages using Google Gemini's AI capabilities, and automatically publish summaries and insights to Twitter/X accounts without manual intervention.
How it works
- 1.Execute workflow on a predefined schedule
- 2.Retrieve new messages from Outlook inbox
- 3.Process emails in batches and classify them using Gemini
- 4.Extract attachments and convert data into formatted text
- 5.Publish analyses and summaries to Twitter/X
Use cases
- Automatically monitor and organize incoming emails by priority and topic
- Convert important emails into social media posts for wider audience reach
- Analyze customer sentiment and trends from email content for reporting
Requirements
- Active Outlook account with full inbox access permissions
- Google Gemini API key for classification
- Twitter/X account with publishing permissions
- Configured schedule for recurring execution (daily or weekly)
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (24)
Split Attachments
Code
Download Attachments
Microsoft Outlook
Parse Output
Set
For Each Message
Split In Batches
Message Ref
No Op
Message Classifier
If
Extract from File
Extract From File
Markdown
Markdown
Empty Response
Set
Wait
Wait
Filter Invoices
Filter
Has Invoice?
If
Schedule Trigger
Schedule Trigger
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Get Recent Messages
Microsoft Outlook
Model
Gemini Model
Sticky Note
Sticky Note
Microsoft Excel 365
Microsoft Excel
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Invoice Classifier With Gemini 2.0
HTTP Request
File-Based OCR with Gemini 2.0
HTTP Request
Sticky Note5
Sticky Note