Blog
Booth AI
STABLE

Invoice To Schema

This node extracts information from an invoice document (provided in PDF, PNG, or JPEG format) and converts it into a JSON string that adheres to a specified Pydantic schema named Invoice

Usage

Inputs: - Invoice URL: A URL pointing to the invoice document. The document can be in PDF, PNG, or JPEG format. - Invoice Schema: A Pydantic model named Invoice that defines the schema for parsing the invoice data. Outputs: - JSON string: A JSON string containing the extracted information from the invoice, formatted according to the Invoice schema.

Inputs
Invoice Url
URL of invoice
Invoice Schema
Pydantic Schema JSON
Api Key
OpenAI API Key
Temperature
Temperature
Outputs
Value
The output string