RMG Buyer PO to TNA Automation — Garment Order Follow-up for Bangladesh Factories
Bangladesh & worldwide · public demo on fake data
Merchandisers in Bangladesh's garment industry rebuild a TNA (Time and Action) sheet by hand for every buyer PO and chase buyers, mills and the floor by e-mail. This system extracts the PO from the buyer's e-mail, back-schedules the TNA from the ex-factory date and sewing capacity with a green, amber or red risk rating, and writes the buyer acknowledgement, mill booking e-mail, team tasks and weekly update.
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 · Build TNA (public form): Accepts the buyer e-mail (a fictional PO is pre-filled) and sewing capacity, then renders order data, TNA and e-mails.
- SW1 · Extract PO: Free LLM extracts buyer, PO, style, fabric, quantity by colour, size ratio, FOB price, terms, ex-factory date and what is still missing.
- SW2 · TNA calendar: Deterministic back-scheduling of 14 milestones from lab dip to ex-factory using standard knit lead times and capacity, with buffer days and a RAG rating.
- SW3 · Follow-ups: Writes the buyer acknowledgement with open questions, the fabric mill booking e-mail, team tasks, a weekly update and a Bangla brief for the floor.
- A TNA in a minute instead of an hour per PO
- Unrealistic ex-factory dates are flagged on day one
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
A late lab dip or fabric booking silently pushes the ex-factory date, and the buyer hears about it too late. TNA sheets are copied from old orders, lead times are not checked against capacity, and missing PO details are discovered after production starts.
Architecture
4 n8n workflows, 3 AI steps (highlighted) and plain rules everywhere else, so the result is predictable and auditable.
The workflows
- Main · Build TNA (public form): Accepts the buyer e-mail (a fictional PO is pre-filled) and sewing capacity, then renders order data, TNA and e-mails.
- SW1 · Extract PO: Free LLM extracts buyer, PO, style, fabric, quantity by colour, size ratio, FOB price, terms, ex-factory date and what is still missing.
- SW2 · TNA calendar: Deterministic back-scheduling of 14 milestones from lab dip to ex-factory using standard knit lead times and capacity, with buffer days and a RAG rating.
- SW3 · Follow-ups: Writes the buyer acknowledgement with open questions, the fabric mill booking e-mail, team tasks, a weekly update and a Bangla brief for the floor.
Try the live demo
No sign-up needed. Use sample or fake data only.
- Open the demo: a fictional buyer PO e-mail is pre-filled.
- Change the ex-factory date or capacity and see the risk rating change.
- Use the generated e-mails as a template for real orders.
What it changes
- A TNA in a minute instead of an hour per PO
- Unrealistic ex-factory dates are flagged on day one
- Missing PO details are asked before production, not after
- In production: buyer e-mails read from the merchandising inbox, TNA written to Google Sheets or the ERP with daily reminders
Tech stack
n8n, Sub-workflows, RMG, Garments, TNA, Merchandising, Groq gpt-oss (free)
FAQ
Can it read PO PDFs?
Yes in production: the PDF text is extracted first. The demo accepts pasted e-mail text.
Are the lead times fixed?
No. Lead times per milestone, product type and buyer are a small table you control; the demo uses typical knit values.
Can it remind people before a milestone is late?
Yes. A daily schedule checks every open TNA and alerts the responsible merchandiser and manager.
Does it work for woven and sweater orders?
Yes, with a different milestone template per product category.
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.