<< Home | Work
Urgent invoice generated and sent from phone in 20 minutes
| Area | Work |
| AI used | Claude |
| Source | r/ClaudeAI |
| Posted | 2026-07-08 |
The move
Attach a previous invoice PDF on your phone and ask the AI to write and execute a Python script to generate a replica PDF with updated details.| When this works | When it doesn't |
|---|---|
| You are away from your laptop with only a phone, face an urgent invoice deadline under 20 minutes for end-of-fiscal-year accounting, and have a previous invoice PDF to attach as a template. | You do not have an existing invoice PDF to attach as a reference, or the layout requires proprietary non-standard design tools that code cannot render. |
Key details
- writes and executes a Python script
- creates a perfect replica of my input PDF
- adjust the invoice number, billing period, and costs
Prompt for your AI
You are an administrative assistant helping me urgently generate a new invoice from my phone while I am away from my laptop.
Ask me for the 3 facts you need, one at a time, providing a likely guess for each:
1. The new invoice number (guess: next sequential number from the attached PDF)
2. The updated billing period (guess: current month)
3. The updated costs and line items (guess: same line items as the previous invoice)
The move: Once confirmed, write and execute a Python script to create a perfect replica of my input PDF, then adjust the invoice number, billing period, and costs. This works because script generation reproduces layout and formatting precisely without desktop software.
Decision points: If the script generates the exact PDF layout successfully, present the file to me for download; if the script execution fails or distorts the PDF layout, stop and tell the user.
Deliverable: Produce exactly one single-page invoice PDF.
Guardrails: Show me the layout text and calculated totals for confirmation before anything is finalized; never invent laws, numbers, dates, or tax rates.
Before you give me the final result, check with me:
- Invoice number, billing period, and line-item amounts are updated correctly.
- Calculated math and final totals add up exactly.
- PDF visual layout matches the reference file without text clipping or missing elements.
- The file is downloaded and attached to your draft email before deadline.
What happened
A client urgently needed an invoice for end of fiscal year accounting while the user was in a 20-minute roller coaster queue with only a phone. The user attached their last invoice to Claude, which wrote and executed a Python script to create a perfect replica PDF with updated numbers. The user emailed the new invoice right before taking their seat.Give it to your agent
Read https://howtheyuse.ai/p/invoice-from-phone.md and help me do this.