AI-Process Receipt
process_receiptExtract structured data from receipts: line items, merchant info, totals, and custom fields. Provide a receipt image or PDF and get machine-readable JSON output.
Instructions
AI-Process Receipt (processReceipt): extract structured receipt data via PDF4me POST /api/v2/ProcessReceipt. Body: docName, docContent, analyzeItems, extractMerchantInfo, calculateTotals (all booleans, defaults true), isAsync (true); optional receiptType (omit when empty or 'none'); customFieldKeys camelCase when keys present (list and/or CSV merged); optional profiles (sanitized like other process tools). Provide pdf_file_path (local .pdf/.png/.jpg/.jpeg). docName resolution: uses basename unless doc_name is set. receipt_type examples: meal, supplies, hotel, fuel and energy, transportation, communication, subscriptions, entertainment, training, healthcare, generic. 202 + Location poll; saves process_receipt.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_name | No | ||
| profiles | No | ||
| output_dir | No | ||
| receipt_type | No | ||
| analyze_items | No | ||
| pdf_file_path | No | ||
| calculate_totals | No | ||
| custom_field_keys | No | ||
| custom_field_keys_csv | No | ||
| extract_merchant_info | No |