Automated Invoice Payment Tracking with OCR, Cloud AI, Slack & Notion DB
# How it Works This workflow automates Invoice & Payment tracking (with Approvals) across Notion and Slack. - **Ingest** - You drop invoices/receipts (PDF/IMG/JSON) into the flow. - **Extract** - OCR + parsing pulls out key fields (invoice no, vendor, currency, totals, receipt paid amount/date). - **De-dup & Match** - We canonicalize vendor + invoice_no and search Notion: - Primary match: Invoice No (+ optional Currency / Vendor (Canon)). - Fallback: uses document Amount Total and dates. - **Decide the action** - **create_unpaid** - new invoice (no payment). - **create_paid** - new invoice fully paid (unverified). - **create_partial** - new invoice with a first partial payment. - **update_partial** - add a partial to an existing invoice. - **update_mark_paid** - mark existing invoice paid in full. - **manual_review** - currency mismatch / overpayment / ambiguous. - **archive** - push to archive logs (from manual review). - **Slack approvals (one-click)** - A message shows previous paid, this receipt, new total, and Approve buttons (links to a Wait for Webhook resumeUrl). Reviewer picks: Approve Partial / Mark Paid / Manual Review / Archive. - **Notion updates** - We only write editable fields: Paid Amount (number), Status (select), Last Payment Date (date). - Formulas (e.g., Amount Total, Amount Due) recompute automatically. - Receipts are saved in a Receipts DB and related back to the invoice. - **Notifications & duplicates** - If duplicates are detected, Slack posts a simple list with clickable invoice names. - **Archiving** - From Manual Review, Archive goes straight to Archived Invoice DB (and optional Archived Source File DB) as a log entry - no pre-checks needed. # Set up Steps Prerequisites 1. Notion DB 2. 4 Slack Channels (**Invoice Input**, **Notification**, **Manual Review**, **Duplicate Alert (Optional)**) 3. AI Model (We use **Claude 3.5 Haiku**, Feel free to use the Latest Model) 4. OCR Parsing (We Used **ocr.space**, Feel Free to Change into any OCR Parsing you have) - **Create Notion DBs:** - **Invoice DB**: Title `Invoice No`; Number `Paid Amount` (editable); Select `Status`; Dates (`Issue/Due/Last Payment Date`); Formulas: - `Amount Total = round(Subtotal - Discount Amount + Tax Total, 2)` - `Amount Due = max(0, round(Amount Total - Paid Amount, 2))` - **Receipts DB**: `Invoice No`, `Vendor`, `Paid Amount` (number), `Currency` (select), `Paid Date` (date), `Receipt No`, `Source URL`; Relation to Invoice. - **Archived Invoice DB**: `Invoice No`, `Vendor`, `Reason`, `Source URL`, `Original Page ID`, `Archived At` (date). - *(Optional)* Source File / Archived Source File DBs. - Share all DBs with your Notion integration (*Add connections*). - **Add credentials in n8n:** Notion (integration token) and Slack (bot token). Invite the bot to your channel. - **Import the workflow/template:** Set each Notion node's **Database ID** and each Slack node's **Channel/Credential**. - **Map updates:** In the Invoice **Update Page** node, map **Paid Amount**, **Status**, **Last Payment Date**. In **Create Receipt**, map `Invoice` relation + receipt fields. - **Test:** Run with a sample invoice/receipt → click a Slack button → verify Invoice/Receipt updates in Notion → try Archive from Manual Review.
- Platform
- n8n
- Category
- Finance & Accounting
- Price
- $24.99
- Creator
- Han
- if
- code
- wait
- slack
- notion
- switch
- aggregate
- stickyNote
- httpRequest
- errorTrigger
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Finance & Accounting workflows
- Automate Invoice Creation and Delivery with AI$9.99
- Automated Multi-Modal Expense Tracking via Telegram$24.99
- Automate Invoice Processing and Notifications with AI and Google Drive$14.99
- Automate Invoice Processing from Telegram to SAP with OCR and Google Sheets$14.99
- Compare Multi-Period Financial Data from Google Sheets with DeepSeek AI Analysis$14.99
- Automate Invoice Processing and Validation with OCR, AI, and Google Sheets$14.99
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.