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
Automate invoice alerts with Gmail and n8n

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

Learn how to Build this Workflow with AI:

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.


Automate invoice alerts with Gmail and n8n

Visit through Desktop to Interact with the Workflow.

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.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.