{
"name": "Inbox: invoices and receipts",
"nodes": [
{ "id": "parse_1", "type": "parse", "mode": "flash" },
{
"id": "classify_1",
"type": "classify",
"categories": [
{ "id": "invoice", "name": "Invoice", "description": "A bill for goods or services with a total due" },
{ "id": "receipt", "name": "Receipt", "description": "Proof of a completed payment" }
]
},
{
"id": "extract_inv",
"type": "extract",
"extraction_schema": { "fields": [
{ "name": "invoice_number", "description": "Invoice identifier", "data_type": "string" },
{ "name": "total_amount", "description": "Grand total, including tax", "data_type": "float" },
{ "name": "due_date", "description": "Date payment is due", "data_type": "date" }
] }
},
{
"id": "extract_rec",
"type": "extract",
"extraction_schema": { "fields": [
{ "name": "merchant", "description": "Who was paid", "data_type": "string" },
{ "name": "amount_paid", "description": "Amount paid", "data_type": "float" }
] }
}
],
"edges": [
{ "source": "parse_1", "target": "classify_1" },
{ "source": "classify_1", "target": "extract_inv", "branch": "invoice" },
{ "source": "classify_1", "target": "extract_rec", "branch": "receipt" }
]
}