Triage invoice disputes from Gmail with OpenAI and Jira
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 15 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI and Jira Software.
How it runs
Trigger: On Gmail events.
- payments (Data table): get
- Invoice Data (Data table): get
- Pricing (Data table): get
- usage logs (Data table): get
- Invoice Items (Data table): get
- Merge Data (Code): runs custom JavaScript code
- Remove Duplicate & Normalise (Code): runs custom JavaScript code
- Classify Dispute (OpenAI): uses OpenAI
- Parse output (Code): runs custom JavaScript code
- Validate Action (Code): runs custom JavaScript code
…plus 4 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Nodes used (7)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Jira Software
n8n-nodes-base.jira
From the author
Quick Overview This workflow monitors a Gmail inbox for invoice dispute emails, pulls related invoice, payment, usage, pricing, and line-item data from n8n Data Tables, and uses OpenAI to classify the dispute before creating the appropriate Jira ticket and…