# Match bank and ledger transactions with OpenAI embeddings, Postgres, and Slack

> Quick overview This workflow matches two transaction datasets (for example, bank transactions and ledger entries) using fuzzy scoring plus optional OpenAI-compatible embeddings, stores matches and review tasks in PostgreSQL, and sends uncertain matches to Slack for human approval via signed webhook links. How it works 1. Runs on a manual trigger, a 4-hour schedule, or a POST webhook to start a matching run. 2. Creates/updates the required PostgreSQL tables, loads prior match history, rejections, learned counterparty aliases, pending reviews, and the approval signing secret. 3. Fetches left and right records from two configured HTTP APIs, normalizes amounts to a base currency, de-duplicates by ID, and aborts the run as failed if either source response is invalid. 4. Generates candidate pairs with blocking (amount/date/reference/name tokens), calculates fuzzy similarity features, and selects which records need embeddings when fuzzy matching is not confident. 5. Looks up embeddings in a P

- **Domain**: `n8n-workflow-21503.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21503
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21503.n8n.io
- Documentation: https://n8n.io/workflows/21503
