receipt_to_document
Extract data from receipt images and generate expense reports as PDF, DOCX, or ODT in one step, using AI extraction and customizable templates.
Instructions
Extract receipt data and generate an expense report document.
Combines AI extraction with document generation in a single step.
Args: image_base64: Base64-encoded receipt image or PDF. filename: Original filename. content_type: MIME type (default: image/jpeg). output_format: Output format – PDF, DOCX, or ODT (default: PDF). title: Document title (default: "Spesenbeleg"). template_name: Optional template for the expense report layout.
Returns: JSON with extracted data and base64-encoded document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_base64 | Yes | ||
| filename | No | receipt.jpg | |
| content_type | No | image/jpeg | |
| output_format | No | ||
| title | No | Spesenbeleg | |
| template_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |