Generate professional business documents (.docx) in Thai with TH Sarabun New font. Supports Quotations, Invoices, Billing Notes, Receipts, and Purchase Orders (PO). Use this skill whenever the user asks to create any of these business documents. It reads details from a JSON file and outputs a cleanly formatted docx.
This skill generates professional business documents in .docx format, suitable for Thai businesses. It automatically calculates totals, VAT, and formats the document with corporate colors and "TH Sarabun New" font.
You can specify the document type in the JSON under document.type. Supported types are:
QUOTATION (ใบเสนอราคา) - DefaultINVOICE (ใบแจ้งหนี้)BILLING_NOTE (ใบวางบิล)RECEIPT (ใบเสร็จรับเงิน)PURCHASE_ORDER or PO (ใบสั่งซื้อ)PURCHASE_REQUISITION or PR (ใบขออนุมัติสั่งซื้อ)PRICE_COMPARISON (จดหมายเปรียบเทียบราคาซัพพลายเออร์)document-data.jsonassets/document-template.jsondocument.typedocx is installed in the workspace (npm install docx).node <path_to_this_skill>/scripts/create-document.js document-data.json.docx file (default name Document_Output.docx or as specified in the JSON settings.outputFileName).See assets/document-template.json for the exact schema. Make sure to fill out:
company: The issuing company's detailscustomer: The receiving customer's details (or vendor if PO)document: type, docNo, date, issuer, paymentTermsitems: Array of items with description, qty, pricetaxRate: Number (e.g., 7 for 7% VAT)notes: Array of string notessettings: Color and font preferences.