Extract and store invoice details from documents — vendor, date, amount, line items, tax, payment terms. Saves structured JSON to vault. Triggers: "get-invoice-details" | "extract invoice" | "parse invoice" | "invoice details" | "read invoice" | "analyze this invoice" | "process this invoice" | "analyse cette facture" | "extract this invoice" | "get invoice data".
Let:
V := ~/.roxabi-vault/invoices
Goal: Extract structured data from an invoice → store as JSON in V.
$ARGUMENTS.python3 plugins/get-invoice-details/scripts/extract.py --input "<file_path>"
vendor | invoice_number | date (ISO 8601) | due_date (ISO 8601) | currency (3-letter) | subtotal | | | (array of ) | | ("pending" | "paid" | "overdue")taxtotalline_items{description, quantity, unit_price, amount}payment_termsstatusmkdir -p -m 700 ~/.roxabi-vault/invoices
V/<invoice_number>.json.vault_healthy() → index in vault database. ∄ → save JSON only, inform user.Display extracted details in readable format. Confirm save location. Report vault indexing status (indexed ∨ vault unavailable).
$ARGUMENTS
Edit PDFs with natural-language instructions using the nano-pdf CLI.