Use this powerful n8n workflow to automatically scan Gmail for invoices, extract due dates and amounts using AI (OpenAI), and create immediate reminders in Google Tasks.
Download this n8n workflow template and start using it instantly.
This robust n8n workflow addresses the common administrative headache of missed payments or delayed expense tracking by automating the entire invoice monitoring process. By utilizing a scheduled n8n trigger, the system regularly pulls unread emails from Gmail. The core of this automation is the AI Agent n8n node, powered by OpenAI, which intelligently analyzes the email body and subject line to determine if it contains critical invoice details.
If an invoice is confirmed, this powerful n8n template automatically extracts crucial metadata like the due date, amount, and sender. Finally, it uses the extracted data to create an actionable reminder in Google Tasks, labels the original email in Gmail with 'Invoice', and marks it as read. This strategic n8n workflow guarantees that financial obligations are immediately converted into trackable tasks, minimizing manual intervention and maximizing compliance.
This comprehensive n8n workflow operates on a recurring schedule to monitor incoming financial documentation and convert it into actionable tasks.
isinvoice status, duedate, and amountdue.isinvoice field is true, the process follows the success path; otherwise, it stops for that item using the 'No Operation' n8n node.Invoice from {{sender}} – ${{amountdue}} due {{duedate}}.To set up and run this efficient n8n workflow template, follow these steps:
Invoice created in your Gmail account, as this n8n workflow relies on it for successful labeling. Schedule Trigger n8n trigger: Initiates the n8n workflow every hour (configurable), ensuring continuous monitoring of your inbox.
Get Unread Emails (Gmail n8n node): Filters and retrieves only unread emails, minimizing processing time and scope for the subsequent AI step.
AI Agent (n8n node): Acts as the intelligent decision-maker. It is configured with a specific instruction prompt to classify emails as invoices and utilize the OpenAI Chat Model (gpt-4o) and a Structured Output Parser for reliable JSON data extraction of critical fields like duedate and amountdue.
If (n8n node): Controls the flow based on the AI's classification. It checks if is_invoice is true before proceeding to the task creation path.
Create a task (Google Tasks n8n node): Executes the primary action of the n8n workflow, creating a reminder using dynamic data expressions that pull the sender, amount, and due date directly from the AI output.
Add Label to Email (Gmail n8n node): Tags the processed email with the 'Invoice' label, facilitating quick identification in your Gmail archive.
Use this secure n8n workflow template to manage Google Cloud Run authentication. It automatically checks token expiration with a 5-minute buffer and refreshes the JWT ID token only when necessary.

Use this powerful n8n workflow to automatically categorize and label incoming Gmail messages using OpenAI's GPT-4. Improve productivity with smart, AI-driven email sorting.

Use this efficient n8n workflow to automatically download Gmail invoice PDFs, upload them to Google Drive, and log key transaction data to Google Sheets. This n8n workflow simplifies financial record-keeping.

Use this powerful n8n workflow to automatically fetch Stripe invoices, filter those due within 7 days, and create Google Calendar reminders, ensuring timely payment tracking.

Use this powerful n8n workflow to automate billing. Retrieve 'Ready' invoices from Airtable, generate professional PDF documents using a specialized n8n node, and send them via email instantly.

Use this powerful n8n workflow to automatically classify and route new or updated Linear issues (bugs, features) to the correct team (Engineering, Product, Design) using a sophisticated GPT-4 AI agent. Eliminate manual triage and accelerate your development cycle with this high-efficiency n8n template.


Automation nerd fueled by good coffee, deep curiosity, and clean flows.







































