Templates / Reconcile and diagnose discrepancies between two CSV exports with Gemini

Reconcile and diagnose discrepancies between two CSV exports with Gemini

Ready for 3.0

by Oka Hironobu ✓ · 33 views · created 2026-08-13

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 18 nodes and runs when someone submits an n8n form (“Reconcile two exports that should agree”). Along the way it connects Google Gemini Chat Model.

How it runs

Trigger: When someone submits an n8n form (“Reconcile two exports that should agree”).

  1. Sort Out the Two Files (Code): runs custom JavaScript code
  2. Read the Source of Truth (Extract from File): extracts data from a file
  3. Read Your Records (Extract from File): extracts data from a file
  4. Reconcile the Two Sides (Compare Datasets): uses Compare Datasets
  5. Only in the Source (Edit Fields (Set)): sets 1 field: bucket
  6. Agrees (Edit Fields (Set)): sets 1 field: bucket
  7. Values Disagree (Edit Fields (Set)): sets 1 field: bucket
  8. Only in Your Records (Edit Fields (Set)): sets 1 field: bucket
  9. Assemble the Reconciliation (Code): runs custom JavaScript code
  10. Diagnose Why They Drifted (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini for Diagnosis; output parser: Diagnosis Schema

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

Services it uses

Google Gemini Chat Model

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.

Nodes used (11)

From the author

Quick Overview This workflow collects two CSV exports via an n8n form, reconciles them by a user-specified key and amount column, and uses Google Gemini to diagnose likely systemic causes of any drift, returning either a “balances” confirmation or a…

Excerpt from Oka Hironobu'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.