AI-Invoice Parser
process_invoiceExtract structured invoice data from PDF or image files via AI-powered parsing, returning key fields like invoice number, vendor, and total.
Instructions
AI-Invoice Parser: extract structured invoice data from a document via PDF4me POST /api/v2/ProcessInvoice (async: 202 + Location poll until JSON result). Provide pdf_file_path (local .pdf/.png/.jpg/.jpeg read as Base64). doc_name: logical document name for the API (e.g. invoice.pdf); optional (defaults to the file basename). Optional custom_field_keys: non-empty list of extra field names for the model to extract; omit the parameter when you have no custom keys (empty lists are not sent). Saves the full API JSON to process_invoice.json and returns key fields (invoiceNumber, vendorName, total, success, …).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_name | No | ||
| output_dir | No | ||
| pdf_file_path | No | ||
| custom_field_keys | No |