Use this robust n8n workflow to automatically scan new emails for invoices, extract total amounts using Mindee AI, and send conditional Slack and email notifications.
Download this n8n workflow template and start using it instantly.
Finance and Accounts Payable (AP) departments.
Users looking for advanced n8n templates integrating AI document processing.
Teams needing conditional logic within their financial n8n workflow automation.
This comprehensive n8n workflow template solves the significant operational challenge of manually monitoring incoming emails for critical financial documents like invoices. By leveraging a specialized n8n node for IMAP reading combined with Mindee for accurate Optical Character Recognition (OCR) data extraction, this automation ensures that critical invoices are immediately flagged and processed.
The key value of this specific n8n workflow is its built-in conditional logic. It automatically escalates high-value invoices (over 1000) to management via a separate internal email alert, while notifying the general accounts team via Slack for all detected invoices. This demonstrates the power of custom application development using an interconnected n8n node sequence to create efficient, error-reducing n8n templates.
This n8n workflow operates through a structured sequence of checks and actions:
Check for new emails n8n node uses IMAP credentials (e.g., Gmail) to periodically scan the specified mailbox, acting as the primary n8n trigger for the flow.If email body contains invoice) checks if the email body text contains the word 'invoice' (case-insensitive).Extract the total amount n8n node utilizes the Mindee service to analyze the first attachment (attachment_0). This AI-powered n8n node accurately extracts structured data, including the invoice total amount.If Amount > 1000) evaluates the extracted amount. This crucial piece of n8n logic dictates the subsequent path.emailSend n8n node triggers, sending a dedicated notification email to the specified [email protected] address, ensuring rapid approval processes.Send new invoice notification Slack n8n node. This node sends a rich, structured notification to the #team-accounts channel, providing all critical metadata (subject, sender, date, and extracted amount), streamlining team awareness regardless of whether the high-value condition was met.To deploy this powerful n8n workflow, follow these steps:
Check for new emails n8n node with your appropriate IMAP or Gmail credentials.Extract the total amount n8n node.Send email to finance manager n8n node with valid SMTP credentials (like Mailtrap, as indicated in the template) to handle outgoing email alerts.Send new invoice notification n8n node. Check for new emails (emailReadImap n8n node)
Function: Acts as the polling n8n trigger, checking the Inbox for new emails using GMAIL credentials.
Key Configuration: Uses the resolved format and allows unauthorized certificates for flexible server connectivity.
If email body contains invoice (If n8n node)
Function: A core logic step that filters emails, ensuring the text content (converted to lowercase) contains the string "invoice".
Extract the total amount (Mindee n8n node)
Function: Performs OCR on the attached document (binaryPropertyName: attachment0) to accurately extract structured data specific to invoices.
If Amount > 1000 (If n8n node)
Function: Implements conditional routing based on numerical data, checking if the extracted totalincl amount is numerically larger than 1000.
Send email to finance manager (emailSend n8n node)
Function: Sends a specialized email alert for high-value invoices (over 1000), using attachment_0 to forward the original invoice.
Send new invoice notification (Slack n8n node)
* Function: The final action, sending a formatted notification to the #team-accounts channel. It dynamically pulls data (Amount, From, Subject, Date) from upstream n8n node outputs to create a rich notification.
Use this n8n workflow to instantly notify your team in Slack whenever a new product is created in WooCommerce, leveraging the n8n trigger for real-time updates.

Use this powerful n8n workflow template to automatically monitor the Epic Games Store for new free game releases. Features include Puppeteer scraping, retry logic, change detection, and rich Discord notifications.

Automate closing the loop on user feedback. This advanced n8n workflow uses semantic search, Supabase, and AI to draft personalized Gmail messages when features ship, leveraging RAG functionality.

Automate content enrichment in Notion using this powerful n8n workflow. It fetches linked URLs, generates AI summaries and tags via OpenAI, and updates database entries automatically.

Automate Notion using AI Agents with this powerful n8n workflow. Expose dozens of granular Notion API functions (Pages, Blocks, Databases) through a specialized n8n trigger.









































