Automatically Create Invoices from Gmail Labels with GPT-4O + QuickBooks — n8n Workflow
Overview
What It Does This workflow reads Gmail threads labeled Invoice Needed, extracts invoice and client details using an AI agent, and creates a draft invoice in QuickBooks Online. It then downloads the invoice as a PDF and drafts a reply email with the invoice attached — all automatically.
Perfect for freelancers, agencies, or small businesses looking to streamline client billing from email.
Prerequisites To use this workflow, you’ll need:
A Gmail OAuth2 credential A QuickBooks OAuth2 credential
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a scheduled trigger, running on a defined schedule.
- 2
Process
Data flows through 12 nodes, connecting agent, code, gmail.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (12)
Gmail
gmail
QuickBooks Online
quickbooks
Code
code
AI Agent
n8n-nodes-langchain.agent
OpenAI Chat Model
n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
n8n-nodes-langchain.outputParserStructured
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
automatically-create-invoices-from-gmail-labels-with-gpt-4o-quickbooksfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Rosh Ragel
@roshragel
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →