Complete AI Training

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

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

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

  1. Ask for any missing inputs before starting, especially {{xml_data}} and {{provision_rules}}.
  2. Design a Node.js app that fetches and parses {{xml_data}} to extract order details.
  3. 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.
  4. Generate one PDF summarizing the parsed order data as a table, and a second, separate invoice PDF using the library at {{repo_url}}.
  5. 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."