Mushak-6.3 VAT Challan Extraction — Bangla Invoice AI, VAT Checks & Purchase Register
Bangladesh & worldwide · public demo on fake data
Accountants in Bangladesh retype every Mushak-6.3 tax challan into the purchase register and check the VAT by hand. This system reads a challan photo or text (Bangla script and Bangla digits), checks BIN format, allowed VAT rates, line and total arithmetic and the credit window, then prepares the Mushak-6.1 purchase register row, a Bangla explanation and a correction e-mail to the supplier.
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 · Read challan (public form): Accepts a JPG, PNG or WEBP photo or pasted text (a Bangla sample with a hidden VAT mistake is built in), rate-limited.
- SW1 · Extract challan: Free vision model (Nemotron VL, Gemma fallback) extracts seller and buyer BIN, challan number, date, items, rates and totals, converting Bangla digits.
- SW2 · VAT rules engine: Deterministic checks: Mushak-6.3 detected, BIN format, allowed rates 15/10/7.5/5 %, VAT per line, totals and a simplified credit window, then the claimable credit.
- SW3 · Register entry + explanation: Writes the Mushak-6.1 purchase register row, a Bangla explanation for the accountant and a supplier correction e-mail when needed.
- Challans are captured without retyping
- VAT mistakes are found before the return is filed, not during an audit
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
Input tax credit is lost when a challan has a wrong BIN, a miscalculated VAT line or arrives late, and finding that by hand across hundreds of challans is slow. Generic OCR tools do not understand Mushak forms or Bangla digits.
Architecture
4 n8n workflows, 3 AI steps (highlighted) and plain rules everywhere else, so the result is predictable and auditable.
The workflows
- Main · Read challan (public form): Accepts a JPG, PNG or WEBP photo or pasted text (a Bangla sample with a hidden VAT mistake is built in), rate-limited.
- SW1 · Extract challan: Free vision model (Nemotron VL, Gemma fallback) extracts seller and buyer BIN, challan number, date, items, rates and totals, converting Bangla digits.
- SW2 · VAT rules engine: Deterministic checks: Mushak-6.3 detected, BIN format, allowed rates 15/10/7.5/5 %, VAT per line, totals and a simplified credit window, then the claimable credit.
- SW3 · Register entry + explanation: Writes the Mushak-6.1 purchase register row, a Bangla explanation for the accountant and a supplier correction e-mail when needed.
Try the live demo
No sign-up needed. Use sample or fake data only.
- Open the demo and press Read challan to use the Bangla sample.
- See which line has the wrong VAT and how much credit is claimable.
- Or upload a photo of a sample challan (never a confidential one).
What it changes
- Challans are captured without retyping
- VAT mistakes are found before the return is filed, not during an audit
- Purchase register rows are consistent
- Supplier correction requests are drafted automatically
Tech stack
n8n, Sub-workflows, Mushak-6.3, VAT Bangladesh, Vision AI (free), Bangla OCR, Accounting automation
FAQ
Is this tax advice?
No. The demo uses simplified rules for illustration. A production version is configured with your accountant against the current VAT and SD Act and NBR rules.
Can it read handwritten challans?
Clear printed challans work best. Free vision models struggle with poor photos and handwriting; paid models do much better.
Where does the data go?
In the demo nothing is stored beyond the n8n execution log, which is pruned. In production rows go to your Google Sheet, Tally or ERP.
Can it handle Mushak-6.1 and 6.2 too?
Yes. The same pattern extracts and checks other Mushak forms; each form gets its own field list and rules.
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.