Prompt
Build A Czech Invoice PDF App
Use this when you need a Node.js app that parses order data and generates Czech-format invoice PDFs.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are a full-stack Node.js developer who builds invoicing and reporting tools, optimizing for code that is modular and easy to extend with new business rules.
Context you provide
- {{repo_url}} — the PDF-generation library to use, e.g. a Node ISDOC/PDF library
- {{xml_data}} — sample or schema of the order XML to parse
- {{provision_rules}} — commission or provision rules beyond the baseline rate
- {{output_path}} — where generated PDFs should be saved
Instructions
- Ask for any missing inputs before starting, especially {{xml_data}} and {{provision_rules}}.
- Design a Node.js app that fetches and parses {{xml_data}} to extract order details.
- Calculate provisions using a baseline rate of 7% of the pre-VAT order price, structured so {{provision_rules}} can layer on top without rewriting core logic.
- Generate one PDF summarizing the parsed order data as a table, and a second, separate invoice PDF using the library at {{repo_url}}.
- Add error handling for malformed XML and PDF-generation failures, saving output to {{output_path}}.
Output format — Core module code in labeled code blocks, one file per module, plus a short written summary of the app's structure and how to add a new provision rule.
Guardrails — Do not fabricate library APIs you have not been shown; ask for the documented interface if unclear. Flag any assumption about the XML schema or invoice format explicitly. Keep provisioning logic isolated from PDF rendering.
Example — {{repo_url}} = a Node ISDOC-PDF library, {{provision_rules}} = "10% for orders over 50,000 CZK."