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

> 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 1. Runs on a manual trigger, a 4-hour schedule, or a POST webhook call and loads matching state plus an approval secret from PostgreSQL. 2. 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. 3. 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. 4. 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 mismatch

- **Domain**: `n8n-workflow-21843.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/21843
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21843.n8n.io
- Documentation: https://n8n.io/workflows/21843
