Skip to content

Delivered for a client

WhatsApp payment-receipt verification, a 69-node n8n workflow

A 69-node n8n workflow delivered for a digital-products retailer (client not named). Customers send payment-receipt screenshots on WhatsApp; the workflow reads the amount and reference, checks them against an order ledger, catches duplicate submissions and replies, or routes the case to staff.

The problem

Staff were checking every receipt image by hand, matching reference numbers to records. It was slow and error-prone at peak times.

What it does

  1. A customer sends a receipt image on WhatsApp.
  2. The workflow extracts the amount and reference with OCR.
  3. It checks the order ledger and looks for a duplicate of the same transaction.
  4. Clear matches are confirmed or rejected automatically.
  5. Anything unclear is routed to staff with the full context.
  1. 01

    Receipt on WhatsApp

  2. 02

    OCR extraction

  3. 03

    Ledger check

  4. 04

    Duplicate detection

  5. 05

    Reply or staff review

Simplified workflow of the build.

How it is built

  • n8n (69 nodes)
  • Evolution API
  • OCR
  • Google Sheets API
  • PostgreSQL
  • Next.js
  • Docker / Traefik
Channel
WhatsApp Business number connected through Evolution API.
Extraction
OCR reads the amount and reference from the receipt image.
Verification
Details are cross-checked against a Google Sheets order ledger; duplicate-submission logic catches repeats.
Routing
Standard cases get an automatic reply. Ambiguous cases go to staff with context.
Staff panel
A chat inbox with a human-mode switch so staff can take over a conversation and reply manually.

Engineering decisions

  • Edge cases go to a person rather than being forced into an automatic decision.
  • Duplicate detection runs before any confirmation is sent.
  • Documentation and handover were delivered in the client's working language (Spanish).

Safeguards

  • Duplicate-submission checks.
  • Human-mode switch so staff can pause automation on any conversation.
  • Conversation logging in PostgreSQL for review.

Outcome and limits

Delivered with a written handover guide and workflow documentation, and accepted by the client. No time-saved or accuracy figures are published.

Receipt formats vary, so OCR results can be uncertain; that is why uncertain cases go to staff.

Related

Want something like this for your team? Tell me where the manual work is.

Last updated: