π« The Pain Point
Every customer request needs a professional quotation PDF. You have product data in Excel but creating formatted quotes manually takes 30 minutes each.
π Agentic Solution
A Template-Based Quotation Generator that produces professional PDFs from data.
Key Features:
- Template System: Reusable quote layout.
- Auto-Calculation: Sum totals, apply discounts.
- Batch Generation: Create multiple quotes from Excel.
βοΈ Phase 1: Commander (Quick Fix)
For a single quote.
Prompt:
βI have product data for a quote. Write a Python script using reportlab to:
- Header: Company logo, name, address, quote number/date.
- Table: Product name, quantity, unit price, total.
- Footer: Subtotal, VAT (10%), Grand Total.
- Output: Save as
Quote_001.pdf.Accept data as JSON or from Excel. Print confirmation.β
Result: Professional quotation ready to send.
ποΈ Phase 2: Architect (Permanent Tool)
Engineering Prompt:
**Role:** Python Tool Developer
**Task:** Create a "Quotation PDF Generator".
**Requirements:**
1. **GUI:**
* Customer info inputs.
* Product table (add/remove rows).
* Template settings (logo, colors).
* Preview before save.
* Batch mode from Excel.
2. **Logic:**
* Use reportlab for PDF generation.
* Template with placeholders.
* Auto-numbering system.
* Calculate taxes.
3. **Deliverables:**
* `quote_gen.py`
* `run.bat`, `run.sh`
* `requirements.txt`
π§ Prompt Decoding
- reportlab: Pythonβs de facto standard for programmatic PDF creation.
π οΈ Instructions
- Install:
pip install reportlab - Copy Prompt β Customize template β Run.