Process invoices & engineering emails with Gmail, AI analysis & Telegram alerts
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs on Gmail events. Along the way it connects Gmail, OpenRouter Chat Model and Telegram.
How it runs
Trigger: On Gmail events.
- Filter: keeps only the items that match a condition
- Get a message (Gmail): get
- Edit Fields (Edit Fields (Set)): sets 2 fields: attachments, message_id
- Edit Fields (Edit Fields (Set)): sets 2 fields: attachments_metadata, message_id
- Merge: merges the data from its input branches
- Debugged code to find attachment (Code): runs custom JavaScript code
- Split Out: splits a list into separate items
- Split Out: splits a list into separate items
- Extract from File: extracts data from a file (pdf)
- Convert Names to download files (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Nodes used (14)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Split Out
n8n-nodes-base.splitOut - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Filter
n8n-nodes-base.filter - Remove Duplicates
n8n-nodes-base.removeDuplicates - Telegram
n8n-nodes-base.telegram
From the author
Automate admin tasks for manufacturing companies by processing emails, extracting key data from invoices & purchase orders, and delivering instant alerts via Gmail and Telegram. 📝 Description This workflow automatically: Fetches incoming emails from Gmail…