GenAiHub

Last checked 16 November 2026 — responded normally.

Match bank transactions to ledger entries with OpenAI embeddings, Slack, and Postgres

Quick overview

Live
Open / InstallLast updated November 16, 2026

Description

Quick overview This workflow matches records from two HTTP APIs (for example, bank transactions and ledger entries) using fuzzy scoring and optional OpenAI-compatible embeddings, stores results in PostgreSQL, and sends ambiguous matches to Slack for signed-link human approval via n8n webhooks. How it works Runs on a manual trigger, a 4-hour schedule, or a POST webhook call and loads matching state plus an approval secret from PostgreSQL. Fetches the left and right record sets from two configured HTTP APIs, normalizes and de-duplicates them, and stops the run if either source fails. Generates candidate pairs using amount/date blocking, applies fuzzy similarity features (amount, date, counterparty, description, references, and learned aliases), and selects which items need embeddings. Loads cached vectors from PostgreSQL, calls an OpenAI-compatible embeddings endpoint only for missing texts, and fuses semantic similarity into the text score without overriding numeric mismatches. Performs one-to-one assignment, auto-matches only high-confidence non-ambiguous pairs, and creates a review queue with the top candidates and reasons for the rest. Saves the run summary, auto-matches, review items, and any new embedding vectors to PostgreSQL, then posts review requests to Slack with HMAC-signed, expiring approval links. Serves a GET review page and a POST decision endpoint that apply the reviewer’s approval or rejection in PostgreSQL and updates learned aliases to improve future matching. Setup Add a PostgreSQL credential (PostgreSQL 13+ recommended for UUID generation) and ensure the workflow can create/write the tm_* tables. Update the CONFIG block with your two source API URLs, headers/tokens, query parameters, and field mappings for left and right records. Provide a Slack incoming webhook URL and set approval.publicBaseUrl to your public n8n webhook base so the tm-review and tm-decide links resolve externally. If embeddings are enabled, set an OpenAI-compatible /embeddings URL, API key, model, and dimensions, or disable embeddings to run fuzzy-only. Activate the workflow so the production webhook URLs for transaction-matching, tm-review, and tm-decide are available to your callers and reviewers. An n8n automation workflow template by Oneclick AI Squad.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Oneclick AI Squad

Platform

web

Pricing model

free

Categories

  • Automation

Tags

  • n8n
  • workflow
  • http-request
  • postgres
  • code

Capabilities

  • 3 nodes

Information

TypeWorkflow
Sourcen8n
AddedOctober 30, 2026

Comments

?

Others in the same category, ranked by how often they are opened.