Automate New Invoice Alerts via Gmail and Slack with n8n

Struggling to track new invoices in your Gmail inbox? This n8n workflow automatically detects invoice emails, extracts amounts using Mindee AI, and alerts your finance team via Slack and email, saving time and avoiding costly delays.
emailReadImap
if
mindee
+2
Workflow Identifier: 1632
NODES in Use: Email Read IMAP, IF, Mindee, Email Send, Slack

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow regularly checks a Gmail inbox for new emails containing the word “invoice” and processes attached invoices automatically.
It extracts the total amount from invoice files using Mindee’s Invoice API.
If the invoice amount is over $1,000, it sends an email alert to a finance manager for approval and posts a detailed notification to a Slack channel.
This makes sure high-value invoices get quick attention and lowers the chance of missed payments.


Who should use this workflow

This automation suits finance teams or accounts payable workers who handle many invoice emails daily.
It helps anyone wanting to save time by avoiding manual invoice searches and data extraction.
Users who need fast alerts on large invoices and want team notifications on Slack will benefit.


Tools and services used

  • Gmail with IMAP: To read incoming invoice emails.
  • Mindee Invoice API: AI-powered tool to extract invoice totals from attachments.
  • SMTP Email service: To send alert emails to finance managers.
  • Slack API: To post notifications to team Slack channels.
  • n8n workflow automation platform: To connect these services and automate the process.

How this workflow works — Inputs, Processing, Output

Inputs

  • New email messages in Gmail inbox.
  • Invoice attachments in email (usually PDFs).

Processing steps

  • The workflow scans Gmail inbox for new emails.
  • It filters emails whose body text includes the keyword “invoice”, ignoring case.
  • From matching emails, it takes the attached invoice file.
  • It sends the attachment to Mindee’s Invoice API to extract the total amount.
  • If the invoice amount is greater than $1,000, an alert email is sent to the finance manager.
  • The workflow posts a Slack message to the team channel with invoice details like sender, subject, amount, and date.

Output

  • Email alert to finance manager for high-value invoices.
  • Slack notification to accounts team for every invoice.

Beginner step-by-step: How to use this workflow in n8n

Step 1: Import the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor and select “Import from File”.
  3. Load the downloaded workflow file.

Step 2: Enter credentials and settings

  1. Add valid Gmail IMAP credentials for your email account.
  2. Input Mindee Invoice API Key to authenticate invoice data extraction.
  3. Fill in SMTP details (like Mailtrap or another service) to send notification emails.
  4. Provide Slack API token and set the Slack channel name you want the messages to go.
  5. Update any emails or channels in the nodes if your company info differs.

Step 3: Test and activate

  1. Run the workflow manually or send a test email with an invoice attachment to your Gmail.
  2. Check that the finance manager receives alert emails for invoices over $1000.
  3. Verify the Slack channel shows notifications for all invoices.
  4. Once confirmed, activate the workflow to run continuously.

By following these steps, the workflow will automate incoming invoice processing with minimal effort.
If you want to host n8n yourself, see self-host n8n options.


Common issues and edge cases

  • If no emails are fetched, check Gmail IMAP is enabled and credentials are correct.
  • If Mindee returns empty or invalid data, ensure invoice attachments are valid PDFs or images and the node refers to the right binary property.
  • If alerts do not send, verify SMTP email settings and Slack permissions including correct channel ID.
  • If invoice wording varies, the workflow might miss emails without “invoice” keyword.

Customization ideas

  • Change the email filter keyword to catch terms like “bill” or “statement”.
  • Adjust the invoice amount threshold to send alerts at different levels.
  • Add other notification channels such as Microsoft Teams or Telegram.
  • Log invoice data into Google Sheets for tracking history.
  • Create multi-criteria approval routes by adding more IF nodes based on due date or vendor.

Summary of results

✓ Saves approximately two hours daily in manual email processing.

✓ Reduces errors in missing invoice payments and late fees.

✓ Enables faster approvals for large invoices by notifying the finance manager.

→ Ensures all invoices are monitored and finance team stays informed on Slack.

→ Improves cash flow and vendor relationships by speeding invoice handling.


Frequently Asked Questions

Yes, by replacing Gmail IMAP credentials with Outlook IMAP details in the Email Read IMAP node.
Yes, each invoice processed uses Mindee API credits from the user account.
Check if invoice attachments are valid PDFs or supported files and confirm the correct binary property name is used in the Mindee node.
Verify the Slack API token has necessary permissions and the correct channel ID is set in the Slack node configuration.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free