bKash & Nagad Payment Reconciliation — Match Mobile-Money Payments to Orders Automatically
Bangladesh & worldwide · public demo on fake data
Bangladeshi shops confirm bKash and Nagad payments by reading SMS one by one and ticking orders in a sheet. This system parses the payment SMS (English or Bangla, Bangla digits too), catches duplicate TrxIDs, matches each payment to an order by reference, phone or amount, and writes the owner summary plus polite Bangla reminders for unpaid or underpaid orders.
Role: Solo build: process design, n8n workflows and sub-workflows, prompts, rules engine, rate limiting, hosting and documentation
- 4 n8n workflows
- 3 AI steps
- Free AI models
- Live public demo
What I built
- Main · Reconcile (public form): Takes pasted SMS and the order list (pre-filled fake samples), validates them and renders the reconciliation board.
- SW1 · Parse SMS: Regular expressions for bKash-style and Nagad-style messages, Bangla digit conversion, unparsed lines kept for review.
- SW2 · Match payments to orders: Duplicate TrxID detection, then matching by order reference, sender phone and amount, with exact, underpaid, overpaid, unmatched and unpaid states.
- SW3 · Summary + customer messages: Free LLM writes the owner summary in English and Bangla and a Bangla SMS for each unpaid or underpaid order.
- Hours of SMS checking become a one-click report
- Duplicate screenshots and wrong amounts are caught before the parcel ships
Free-model demo: This public demo runs on free AI models, so accuracy is limited. With paid, better models the output is much better.
এই ডেমোতে ফ্রি AI মডেল ব্যবহার করা হয়েছে, তাই নির্ভুলতা সীমিত। পেইড ও উন্নত মডেল ব্যবহার করলে আউটপুট অনেক ভালো হবে।
Project status
Live public demo with sample data. Bangladesh-first automation built and hosted by me on self-hosted n8n. It runs on free AI models (Groq gpt-oss, OpenRouter free models), uses only fake sample data and is rate-limited. The workflow exports are public on GitHub.
The problem
Personal and merchant bKash or Nagad numbers receive dozens of payments a day. Customers forget the reference, pay a different amount or send the screenshot twice. Staff match them manually, mistakes cost money, and nobody follows up on the unpaid ones.
Architecture
4 n8n workflows, 3 AI steps (highlighted) and plain rules everywhere else, so the result is predictable and auditable.
The workflows
- Main · Reconcile (public form): Takes pasted SMS and the order list (pre-filled fake samples), validates them and renders the reconciliation board.
- SW1 · Parse SMS: Regular expressions for bKash-style and Nagad-style messages, Bangla digit conversion, unparsed lines kept for review.
- SW2 · Match payments to orders: Duplicate TrxID detection, then matching by order reference, sender phone and amount, with exact, underpaid, overpaid, unmatched and unpaid states.
- SW3 · Summary + customer messages: Free LLM writes the owner summary in English and Bangla and a Bangla SMS for each unpaid or underpaid order.
Try the live demo
No sign-up needed. Use sample or fake data only.
- Open the demo: SMS and orders are pre-filled with fake data containing typical problems.
- Press Reconcile and read the board: duplicates, a short payment, a payment without reference and an unpaid order.
- Edit the sample lines to test your own cases (fake numbers only).
What it changes
- Hours of SMS checking become a one-click report
- Duplicate screenshots and wrong amounts are caught before the parcel ships
- Unpaid customers get a polite Bangla reminder automatically
- In production: SMS forwarded from the merchant phone, merchant statements or payment gateway webhooks
Tech stack
n8n, Sub-workflows, bKash, Nagad, Payment reconciliation, Bangla, Groq gpt-oss (free)
FAQ
Does this connect to my bKash account?
No. The demo only reads pasted sample text. In production it reads SMS forwarded from the merchant phone (for example with an SMS forwarder app), merchant statements or the payment gateway webhook, never your PIN.
Are these the exact bKash and Nagad SMS formats?
The sample messages are illustrative. Real deployments tune the parser to the formats on your number and keep an AI fallback for unusual lines.
Can it update WooCommerce orders?
Yes. Matched orders can be marked paid in WooCommerce, Shopify or a Google Sheet, and the courier step can start automatically.
Does it work for Rocket and Upay too?
Yes. Each wallet is one more parser rule; the matching logic stays the same.
Why is the demo output not perfect?
This public demo runs on free AI models (Groq gpt-oss and OpenRouter free models), so accuracy is limited. With paid, better models the output is much better.