Automatic Invoice Detection & Reminder Creation with Gmail & Google Tasks
Last edited 58 days ago
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
Who is this for?
This workflow is for anyone who receives invoices by email and wants to stay on top of payment deadlines without manual tracking.
What problem is this workflow solving?
Invoices often get buried in your inbox. This workflow uses AI to find them, extracts key details, and adds a task to remind you to pay before it’s overdue.
No more missed payments. No more manual tracking.
How it works?
- This workflow is triggered on a schedule (By default, every hour).
- It checks your Gmail inbox for unread messages.
- Each email is passed to an AI agent (using OpenAI), which decides whether it’s an invoice.
- If an invoice is found:
- A task is created in your Google Tasks with the payment reminder and due date.
- The email is labeled (for tracking) and marked as read.
- If not an invoice:
- The email is skipped (no action taken).
How to set up?
-
Connect these services in your n8n credentials:
- Gmail (OAuth2)
- OpenAI
- Google Tasks
-
Create Gmail label
Go to Gmail and create a label namedInvoice. This label will be applied to processed invoice emails. -
Choose your Google Task list
In the task creation node, select the correct task list for your reminders. -
Set the schedule
In the Schedule Trigger node, choose how often it should check your inbox.
How to customize this workflow to your needs?
-
Change the Gmail label
Update the label applied to emails after they are processed. -
Edit the AI prompt
Adjust the system prompt in the OpenAI node if your invoices follow a unique format. -
Update the task format
Modify the task title and notes to suit how you like your reminders to look. -
Adjust the schedule
Run it more or less frequently based on how many invoices you receive.
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!





