Templates / Triage invoice disputes from Gmail with OpenAI and Jira

Triage invoice disputes from Gmail with OpenAI and Jira

Ready for 3.0

by WeblineIndia ✓ · 6 views · created 2026-09-08 · Invoice Processing, AI Summarization

Ready 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.

  1. payments (Data table): get
  2. Invoice Data (Data table): get
  3. Pricing (Data table): get
  4. usage logs (Data table): get
  5. Invoice Items (Data table): get
  6. Merge Data (Code): runs custom JavaScript code
  7. Remove Duplicate & Normalise (Code): runs custom JavaScript code
  8. Classify Dispute (OpenAI): uses OpenAI
  9. Parse output (Code): runs custom JavaScript code
  10. Validate Action (Code): runs custom JavaScript code

…plus 4 more steps. See the full node list below.

Services it uses

GmailOpenAIJira Software

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)

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…

Excerpt from WeblineIndia's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.