Invoice Details
INV-41
Invoice Information
PurchasePier Park
Not provided
Not provided
Not provided
SUPA VALU, LTD.
Not provided
$0.00
Original Images
Page 1
Skype_Picture_2024_04_30T04_40_17_521Z.jpeg
120.8 KB
Page 2
SV Inv to text_page-0001.jpg
758.5 KB
[
{
"text": "{\n \"invoice_number\": \"00274334\",\n \"invoice_date\": \"2024-04-29\",\n \"vendor_name\": \"Rite Way FOOD MARKETS\",\n \"line_items\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"\",\n \"unit\": \"EA\",\n \"description\": \"POPCORNERS KETTLE CORN 10Z\",\n \"quantity_shipped\": 1,\n \"unit_price\": 0.99,\n \"extended_price\": 0.99\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"\",\n \"unit\": \"EA\",\n \"description\": \"PEANUT BUTTER CRUNCHY JIFF\",\n \"quantity_shipped\": 1,\n \"unit_price\": 4.99,\n \"extended_price\": 4.99\n }\n }\n ]\n}",
"question": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations.",
"chatId": "5f718797-c8f7-4636-870c-1db1c5288dbf",
"chatMessageId": "bee3031c-1a10-463c-b4f9-fb73ecc0c71d",
"executionId": "2cd28656-2f1d-419f-8975-a252549c33eb",
"agentFlowExecutedData": [
{
"nodeId": "startAgentflow_0",
"nodeLabel": "Start",
"data": {
"id": "startAgentflow_0",
"name": "startAgentflow",
"input": {
"question": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations."
},
"output": {
"question": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations."
},
"state": []
},
"previousNodeIds": [],
"status": "FINISHED"
},
{
"nodeId": "llmAgentflow_0",
"nodeLabel": "Extract & Analyze Invoice",
"data": {
"id": "llmAgentflow_0",
"name": "llmAgentflow",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"type": "stored-file",
"name": "Skype_Picture_2024_04_30T04_40_17_521Z.jpeg",
"mime": "image\/jpeg"
}
]
},
{
"role": "user",
"content": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations."
},
{
"role": "user",
"content": "Invoice Analyzer Instructions\n=============================\n\nYou are a comprehensive invoice analyzer. Your task is to extract and structure all relevant information from invoice documents with high accuracy and consistency from Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations. or \n\nProcessing Guidelines\n---------------------\n\n### Multi-Invoice Documents\n\n* **Separate Analysis**: If a document contains multiple invoices, each invoice individually and present results separately\n \n* **Clear Identification**: Number each invoice (Invoice 1, Invoice 2, etc.) when multiple invoices are present\n \n* **Page Continuations**: Recognize when invoices span multiple pages and consolidate information appropriately\n \n\n### Data Extraction Requirements\n\nExtract the following information for each invoice:\n\n#### Essential Invoice Details\n\n* **Invoice Number**: Unique identifier for the invoice\n \n* **Invoice Date**: Date the invoice was issued\n \n* **Due Date**: Payment due date (if specified)\n \n* **Purchase Order Number**: Reference number (if present)\n \n\n#### Vendor\/Supplier Information\n\n* **Company Name**: Full legal name of the billing entity\n \n* **Address**: Complete billing address\n \n* **Contact Information**: Phone, email, website (if available)\n \n* **Tax ID\/Registration Numbers**: VAT, GST, EIN, or other tax identifiers\n \n\n#### Customer\/Bill-to Information\n\n* **Company Name**: Full name of the entity being billed\n \n* **Address**: Complete billing\/shipping address\n \n* **Contact Person**: If specified\n \n\n#### Financial Details\n\n* **Line Items**: Each product\/service with:\n \n * Description\n \n * Quantity\n \n * Unit price\n \n * Total amount per line\n \n* **Subtotal**: Pre-tax amount\n \n* **Tax Information**:\n \n * Tax rate(s)\n \n * Tax amount(s)\n \n * Tax type (VAT, GST, sales tax, etc.)\n \n* **Discounts**: Any applied discounts or credits\n \n* **Total Amount**: Final amount due\n \n* **Currency**: Specified currency\n \n\n#### Payment Information\n\n* **Payment Terms**: Net 30, due on receipt, etc.\n \n* **Payment Methods**: Accepted payment options\n \n* **Bank Details**: If provided for wire transfers\n \n\n#### Additional Information\n\n* **Notes\/Comments**: Any special instructions or terms\n \n* **Reference Numbers**: Order numbers, contract references\n \n* **Shipping Information**: If different from billing address\n \n\nOutput Format\n-------------\n\nPresent extracted information in a structured format:\n\n INVOICE [Number if multiple]\n ========================\n Invoice Number: [number]\n Date: [date]\n Due Date: [date]\n PO Number: [if applicable]\n \n VENDOR:\n Name: [company name]\n Address: [full address]\n Contact: [phone\/email]\n Tax ID: [if present]\n \n CUSTOMER:\n Name: [company name] \n Address: [full address]\n \n LINE ITEMS:\n 1. [Description] | Qty: [X] | Unit: $[amount] | Total: $[amount]\n 2. [Description] | Qty: [X] | Unit: $[amount] | Total: $[amount]\n [continue for all items]\n \n FINANCIAL SUMMARY:\n Subtotal: $[amount]\n Tax ([rate]%): $[amount]\n Total: $[amount]\n Currency: [currency]\n \n PAYMENT TERMS: [terms]\n NOTES: [any additional information]\n \n\nQuality Standards\n-----------------\n\n* **Accuracy**: Double-check all numerical values and dates\n \n* **Completeness**: Flag any missing critical information\n \n* **Consistency**: Use standardized date formats (YYYY-MM-DD) and currency notation\n \n* **Clarity**: If text is unclear or illegible, note as \"\\[UNCLEAR\\]\" rather than guessing\n \n* **Validation**: Cross-reference totals to ensure mathematical accuracy\n \n\nError Handling\n--------------\n\n* If information is partially visible or cut off, extract what's readable and note limitations\n \n* For poor quality images, indicate which fields may be unreliable\n \n* If no invoice is detected in the document, clearly state this finding"
}
],
"llmModel": "chatGoogleGenerativeAI",
"llmEnableMemory": true,
"llmMemoryType": "allMessages",
"llmUserMessage": "Invoice Analyzer Instructions\n=============================\n\nYou are a comprehensive invoice analyzer. Your task is to extract and structure all relevant information from invoice documents with high accuracy and consistency from Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations. or \n\nProcessing Guidelines\n---------------------\n\n### Multi-Invoice Documents\n\n* **Separate Analysis**: If a document contains multiple invoices, each invoice individually and present results separately\n \n* **Clear Identification**: Number each invoice (Invoice 1, Invoice 2, etc.) when multiple invoices are present\n \n* **Page Continuations**: Recognize when invoices span multiple pages and consolidate information appropriately\n \n\n### Data Extraction Requirements\n\nExtract the following information for each invoice:\n\n#### Essential Invoice Details\n\n* **Invoice Number**: Unique identifier for the invoice\n \n* **Invoice Date**: Date the invoice was issued\n \n* **Due Date**: Payment due date (if specified)\n \n* **Purchase Order Number**: Reference number (if present)\n \n\n#### Vendor\/Supplier Information\n\n* **Company Name**: Full legal name of the billing entity\n \n* **Address**: Complete billing address\n \n* **Contact Information**: Phone, email, website (if available)\n \n* **Tax ID\/Registration Numbers**: VAT, GST, EIN, or other tax identifiers\n \n\n#### Customer\/Bill-to Information\n\n* **Company Name**: Full name of the entity being billed\n \n* **Address**: Complete billing\/shipping address\n \n* **Contact Person**: If specified\n \n\n#### Financial Details\n\n* **Line Items**: Each product\/service with:\n \n * Description\n \n * Quantity\n \n * Unit price\n \n * Total amount per line\n \n* **Subtotal**: Pre-tax amount\n \n* **Tax Information**:\n \n * Tax rate(s)\n \n * Tax amount(s)\n \n * Tax type (VAT, GST, sales tax, etc.)\n \n* **Discounts**: Any applied discounts or credits\n \n* **Total Amount**: Final amount due\n \n* **Currency**: Specified currency\n \n\n#### Payment Information\n\n* **Payment Terms**: Net 30, due on receipt, etc.\n \n* **Payment Methods**: Accepted payment options\n \n* **Bank Details**: If provided for wire transfers\n \n\n#### Additional Information\n\n* **Notes\/Comments**: Any special instructions or terms\n \n* **Reference Numbers**: Order numbers, contract references\n \n* **Shipping Information**: If different from billing address\n \n\nOutput Format\n-------------\n\nPresent extracted information in a structured format:\n\n INVOICE [Number if multiple]\n ========================\n Invoice Number: [number]\n Date: [date]\n Due Date: [date]\n PO Number: [if applicable]\n \n VENDOR:\n Name: [company name]\n Address: [full address]\n Contact: [phone\/email]\n Tax ID: [if present]\n \n CUSTOMER:\n Name: [company name] \n Address: [full address]\n \n LINE ITEMS:\n 1. [Description] | Qty: [X] | Unit: $[amount] | Total: $[amount]\n 2. [Description] | Qty: [X] | Unit: $[amount] | Total: $[amount]\n [continue for all items]\n \n FINANCIAL SUMMARY:\n Subtotal: $[amount]\n Tax ([rate]%): $[amount]\n Total: $[amount]\n Currency: [currency]\n \n PAYMENT TERMS: [terms]\n NOTES: [any additional information]\n \n\nQuality Standards\n-----------------\n\n* **Accuracy**: Double-check all numerical values and dates\n \n* **Completeness**: Flag any missing critical information\n \n* **Consistency**: Use standardized date formats (YYYY-MM-DD) and currency notation\n \n* **Clarity**: If text is unclear or illegible, note as \"\\[UNCLEAR\\]\" rather than guessing\n \n* **Validation**: Cross-reference totals to ensure mathematical accuracy\n \n\nError Handling\n--------------\n\n* If information is partially visible or cut off, extract what's readable and note limitations\n \n* For poor quality images, indicate which fields may be unreliable\n \n* If no invoice is detected in the document, clearly state this finding",
"llmReturnResponseAs": "assistantMessage",
"llmStructuredOutput": [
{
"key": "invoice_number",
"type": "string",
"enumValues": "",
"jsonSchema": "",
"description": "Invoice Number"
},
{
"key": "invoice_date",
"type": "string",
"enumValues": "",
"jsonSchema": "",
"description": "invoice date"
},
{
"key": "vendor_name",
"type": "string",
"enumValues": "",
"jsonSchema": "",
"description": "vendor name"
},
{
"key": "line_items",
"type": "jsonArray",
"enumValues": "",
"jsonSchema": "{ \"type\": \"object\", \"properties\": { \"product_code\": { \"type\": \"string\", \"description\": \"Product identification code\" }, \"unit\": { \"type\": \"string\", \"description\": \"Unit of measurement (EA, LB, etc.)\" }, \"description\": { \"type\": \"string\", \"description\": \"Product description\" }, \"quantity_shipped\": { \"type\": \"number\", \"description\": \"Quantity that was actually shipped\" }, \"unit_price\": { \"type\": \"number\", \"description\": \"Price per unit\" }, \"extended_price\": { \"type\": \"number\", \"description\": \"Total price for this line item\" } } }",
"description": "Used to get the product lines"
}
],
"llmModelConfig": {
"credential": "",
"modelName": "gemini-2.5-flash",
"customModelName": "",
"temperature": "0.2",
"streaming": true,
"maxOutputTokens": "",
"topP": "",
"topK": "",
"safetySettings": "",
"baseUrl": "",
"allowImageUploads": true,
"llmModel": "chatGoogleGenerativeAI"
}
},
"output": {
"content": "{\n \"invoice_number\": \"00274334\",\n \"invoice_date\": \"2024-04-29\",\n \"vendor_name\": \"Rite Way FOOD MARKETS\",\n \"line_items\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"\",\n \"unit\": \"EA\",\n \"description\": \"POPCORNERS KETTLE CORN 10Z\",\n \"quantity_shipped\": 1,\n \"unit_price\": 0.99,\n \"extended_price\": 0.99\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"\",\n \"unit\": \"EA\",\n \"description\": \"PEANUT BUTTER CRUNCHY JIFF\",\n \"quantity_shipped\": 1,\n \"unit_price\": 4.99,\n \"extended_price\": 4.99\n }\n }\n ]\n}",
"timeMetadata": {
"start": 1756208355593,
"end": 1756208372114,
"delta": 16521
},
"invoice_number": "00274334",
"invoice_date": "2024-04-29",
"vendor_name": "Rite Way FOOD MARKETS",
"line_items": [
{
"type": "object",
"properties": {
"product_code": "",
"unit": "EA",
"description": "POPCORNERS KETTLE CORN 10Z",
"quantity_shipped": 1,
"unit_price": 0.99,
"extended_price": 0.99
}
},
{
"type": "object",
"properties": {
"product_code": "",
"unit": "EA",
"description": "PEANUT BUTTER CRUNCHY JIFF",
"quantity_shipped": 1,
"unit_price": 4.99,
"extended_price": 4.99
}
}
]
},
"state": [],
"chatHistory": [
{
"role": "user",
"content": [
{
"type": "stored-file",
"name": "Skype_Picture_2024_04_30T04_40_17_521Z.jpeg",
"mime": "image\/jpeg"
}
]
},
{
"role": "user",
"content": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations."
},
{
"role": "assistant",
"content": "{\n \"invoice_number\": \"00274334\",\n \"invoice_date\": \"2024-04-29\",\n \"vendor_name\": \"Rite Way FOOD MARKETS\",\n \"line_items\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"\",\n \"unit\": \"EA\",\n \"description\": \"POPCORNERS KETTLE CORN 10Z\",\n \"quantity_shipped\": 1,\n \"unit_price\": 0.99,\n \"extended_price\": 0.99\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"\",\n \"unit\": \"EA\",\n \"description\": \"PEANUT BUTTER CRUNCHY JIFF\",\n \"quantity_shipped\": 1,\n \"unit_price\": 4.99,\n \"extended_price\": 4.99\n }\n }\n ]\n}",
"name": "extract_&_analyze_invoice"
}
]
},
"previousNodeIds": [
"startAgentflow_0"
],
"status": "FINISHED"
}
],
"sessionId": "5f718797-c8f7-4636-870c-1db1c5288dbf"
},
{
"text": "{\n \"invoice_number\": \"559341\",\n \"invoice_date\": \"2025-01-27\",\n \"vendor_name\": \"SUPA VALU,LTD.\",\n \"line_items\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"0660421\",\n \"unit\": \"EA\",\n \"description\": \"WORTHINGTON DINNER ROAST\",\n \"quantity_shipped\": 0,\n \"unit_price\": 19.1,\n \"extended_price\": 0\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"1212601\",\n \"unit\": \"EA\",\n \"description\": \"SPINACH CHOPPED FROZEN\",\n \"quantity_shipped\": 1,\n \"unit_price\": 5.6,\n \"extended_price\": 5.6\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"1217181\",\n \"unit\": \"EA\",\n \"description\": \"PLANTAN SWEET SLICED\",\n \"quantity_shipped\": 1,\n \"unit_price\": 12.47,\n \"extended_price\": 12.47\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2225601\",\n \"unit\": \"PK\",\n \"description\": \"PITA WHEAT TOUFAYAN\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.95,\n \"extended_price\": 2.95\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2803401\",\n \"unit\": \"LB\",\n \"description\": \"POTATO WHITE\",\n \"quantity_shipped\": 4,\n \"unit_price\": 1.36,\n \"extended_price\": 5.85\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2804801\",\n \"unit\": \"PD\",\n \"description\": \"SWEET POTATO USA YAM\",\n \"quantity_shipped\": 4,\n \"unit_price\": 1.09,\n \"extended_price\": 5.12\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2815201\",\n \"unit\": \"EA\",\n \"description\": \"KALE\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.3,\n \"extended_price\": 2.3\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2819201\",\n \"unit\": \"LB\",\n \"description\": \"BEET ROOT\",\n \"quantity_shipped\": 3,\n \"unit_price\": 1.57,\n \"extended_price\": 5.18\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2819801\",\n \"unit\": \"EA\",\n \"description\": \"BROCCOLI\",\n \"quantity_shipped\": 1,\n \"unit_price\": 4.21,\n \"extended_price\": 4.21\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2823601\",\n \"unit\": \"PD\",\n \"description\": \"CARROTS BULK\",\n \"quantity_shipped\": 6,\n \"unit_price\": 1.45,\n \"extended_price\": 8.7\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2830401\",\n \"unit\": \"LB\",\n \"description\": \"GARLIC JUMBO\",\n \"quantity_shipped\": 1,\n \"unit_price\": 4.05,\n \"extended_price\": 4.46\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2840601\",\n \"unit\": \"PD\",\n \"description\": \"PEPPER RED BELL\",\n \"quantity_shipped\": 1,\n \"unit_price\": 3.87,\n \"extended_price\": 5.03\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2844702\",\n \"unit\": \"EA\",\n \"description\": \"SCALLION BUNCH 1EA\",\n \"quantity_shipped\": 1,\n \"unit_price\": 1.33,\n \"extended_price\": 1.33\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"3005601\",\n \"unit\": \"EA\",\n \"description\": \"TOFU (FIRM 2\/PC)\",\n \"quantity_shipped\": 0,\n \"unit_price\": 2.7,\n \"extended_price\": 2.7\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4003401\",\n \"unit\": \"EA\",\n \"description\": \"BARILLA SPAGHETTI #7\",\n \"quantity_shipped\": 1,\n \"unit_price\": 7.93,\n \"extended_price\": 7.93\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4011151\",\n \"unit\": \"EA\",\n \"description\": \"QUINOA TRI-COLOR\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.27,\n \"extended_price\": 2.27\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4024801\",\n \"unit\": \"EA\",\n \"description\": \"SALT IODIZED\",\n \"quantity_shipped\": 3,\n \"unit_price\": 3.28,\n \"extended_price\": 9.84\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4808471\",\n \"unit\": \"EA\",\n \"description\": \"COCONUT MILK 1X13.5Z\",\n \"quantity_shipped\": 1,\n \"unit_price\": 8.33,\n \"extended_price\": 8.33\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"5021611\",\n \"unit\": \"EA\",\n \"description\": \"TUMERIC GROUND\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.03,\n \"extended_price\": 2.03\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24741\",\n \"unit\": \"PK\",\n \"description\": \"BLACK EYE PEAS\",\n \"quantity_shipped\": 2,\n \"unit_price\": 2.03,\n \"extended_price\": 2.03\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24761\",\n \"unit\": \"EA\",\n \"description\": \"LENTILS\",\n \"quantity_shipped\": 2,\n \"unit_price\": 2.1,\n \"extended_price\": 4.2\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24781\",\n \"unit\": \"EA\",\n \"description\": \"CHIC PEAS DRY\",\n \"quantity_shipped\": 2,\n \"unit_price\": 2.07,\n \"extended_price\": 4.14\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24791\",\n \"unit\": \"EA\",\n \"description\": \"BLACK BEANS DRY\",\n \"quantity_shipped\": 1,\n \"unit_price\": 1.91,\n \"extended_price\": 1.91\n }\n }\n ]\n}",
"question": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations.",
"chatId": "b217e572-79d1-4526-b34a-7f7ca2762e0e",
"chatMessageId": "e3ad9ba8-d025-4cb8-9cdc-ba1cf490bb33",
"executionId": "acdcfc73-9f57-4ffd-8ef8-0e0881f1e5a6",
"agentFlowExecutedData": [
{
"nodeId": "startAgentflow_0",
"nodeLabel": "Start",
"data": {
"id": "startAgentflow_0",
"name": "startAgentflow",
"input": {
"question": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations."
},
"output": {
"question": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations."
},
"state": []
},
"previousNodeIds": [],
"status": "FINISHED"
},
{
"nodeId": "llmAgentflow_0",
"nodeLabel": "Extract & Analyze Invoice",
"data": {
"id": "llmAgentflow_0",
"name": "llmAgentflow",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"type": "stored-file",
"name": "SV Inv to text_page-0001.jpg",
"mime": "image\/jpeg"
}
]
},
{
"role": "user",
"content": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations."
},
{
"role": "user",
"content": "Invoice Analyzer Instructions\n=============================\n\nYou are a comprehensive invoice analyzer. Your task is to extract and structure all relevant information from invoice documents with high accuracy and consistency from Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations. or \n\nProcessing Guidelines\n---------------------\n\n### Multi-Invoice Documents\n\n* **Separate Analysis**: If a document contains multiple invoices, each invoice individually and present results separately\n \n* **Clear Identification**: Number each invoice (Invoice 1, Invoice 2, etc.) when multiple invoices are present\n \n* **Page Continuations**: Recognize when invoices span multiple pages and consolidate information appropriately\n \n\n### Data Extraction Requirements\n\nExtract the following information for each invoice:\n\n#### Essential Invoice Details\n\n* **Invoice Number**: Unique identifier for the invoice\n \n* **Invoice Date**: Date the invoice was issued\n \n* **Due Date**: Payment due date (if specified)\n \n* **Purchase Order Number**: Reference number (if present)\n \n\n#### Vendor\/Supplier Information\n\n* **Company Name**: Full legal name of the billing entity\n \n* **Address**: Complete billing address\n \n* **Contact Information**: Phone, email, website (if available)\n \n* **Tax ID\/Registration Numbers**: VAT, GST, EIN, or other tax identifiers\n \n\n#### Customer\/Bill-to Information\n\n* **Company Name**: Full name of the entity being billed\n \n* **Address**: Complete billing\/shipping address\n \n* **Contact Person**: If specified\n \n\n#### Financial Details\n\n* **Line Items**: Each product\/service with:\n \n * Description\n \n * Quantity\n \n * Unit price\n \n * Total amount per line\n \n* **Subtotal**: Pre-tax amount\n \n* **Tax Information**:\n \n * Tax rate(s)\n \n * Tax amount(s)\n \n * Tax type (VAT, GST, sales tax, etc.)\n \n* **Discounts**: Any applied discounts or credits\n \n* **Total Amount**: Final amount due\n \n* **Currency**: Specified currency\n \n\n#### Payment Information\n\n* **Payment Terms**: Net 30, due on receipt, etc.\n \n* **Payment Methods**: Accepted payment options\n \n* **Bank Details**: If provided for wire transfers\n \n\n#### Additional Information\n\n* **Notes\/Comments**: Any special instructions or terms\n \n* **Reference Numbers**: Order numbers, contract references\n \n* **Shipping Information**: If different from billing address\n \n\nOutput Format\n-------------\n\nPresent extracted information in a structured format:\n\n INVOICE [Number if multiple]\n ========================\n Invoice Number: [number]\n Date: [date]\n Due Date: [date]\n PO Number: [if applicable]\n \n VENDOR:\n Name: [company name]\n Address: [full address]\n Contact: [phone\/email]\n Tax ID: [if present]\n \n CUSTOMER:\n Name: [company name] \n Address: [full address]\n \n LINE ITEMS:\n 1. [Description] | Qty: [X] | Unit: $[amount] | Total: $[amount]\n 2. [Description] | Qty: [X] | Unit: $[amount] | Total: $[amount]\n [continue for all items]\n \n FINANCIAL SUMMARY:\n Subtotal: $[amount]\n Tax ([rate]%): $[amount]\n Total: $[amount]\n Currency: [currency]\n \n PAYMENT TERMS: [terms]\n NOTES: [any additional information]\n \n\nQuality Standards\n-----------------\n\n* **Accuracy**: Double-check all numerical values and dates\n \n* **Completeness**: Flag any missing critical information\n \n* **Consistency**: Use standardized date formats (YYYY-MM-DD) and currency notation\n \n* **Clarity**: If text is unclear or illegible, note as \"\\[UNCLEAR\\]\" rather than guessing\n \n* **Validation**: Cross-reference totals to ensure mathematical accuracy\n \n\nError Handling\n--------------\n\n* If information is partially visible or cut off, extract what's readable and note limitations\n \n* For poor quality images, indicate which fields may be unreliable\n \n* If no invoice is detected in the document, clearly state this finding"
}
],
"llmModel": "chatGoogleGenerativeAI",
"llmEnableMemory": true,
"llmMemoryType": "allMessages",
"llmUserMessage": "Invoice Analyzer Instructions\n=============================\n\nYou are a comprehensive invoice analyzer. Your task is to extract and structure all relevant information from invoice documents with high accuracy and consistency from Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations. or \n\nProcessing Guidelines\n---------------------\n\n### Multi-Invoice Documents\n\n* **Separate Analysis**: If a document contains multiple invoices, each invoice individually and present results separately\n \n* **Clear Identification**: Number each invoice (Invoice 1, Invoice 2, etc.) when multiple invoices are present\n \n* **Page Continuations**: Recognize when invoices span multiple pages and consolidate information appropriately\n \n\n### Data Extraction Requirements\n\nExtract the following information for each invoice:\n\n#### Essential Invoice Details\n\n* **Invoice Number**: Unique identifier for the invoice\n \n* **Invoice Date**: Date the invoice was issued\n \n* **Due Date**: Payment due date (if specified)\n \n* **Purchase Order Number**: Reference number (if present)\n \n\n#### Vendor\/Supplier Information\n\n* **Company Name**: Full legal name of the billing entity\n \n* **Address**: Complete billing address\n \n* **Contact Information**: Phone, email, website (if available)\n \n* **Tax ID\/Registration Numbers**: VAT, GST, EIN, or other tax identifiers\n \n\n#### Customer\/Bill-to Information\n\n* **Company Name**: Full name of the entity being billed\n \n* **Address**: Complete billing\/shipping address\n \n* **Contact Person**: If specified\n \n\n#### Financial Details\n\n* **Line Items**: Each product\/service with:\n \n * Description\n \n * Quantity\n \n * Unit price\n \n * Total amount per line\n \n* **Subtotal**: Pre-tax amount\n \n* **Tax Information**:\n \n * Tax rate(s)\n \n * Tax amount(s)\n \n * Tax type (VAT, GST, sales tax, etc.)\n \n* **Discounts**: Any applied discounts or credits\n \n* **Total Amount**: Final amount due\n \n* **Currency**: Specified currency\n \n\n#### Payment Information\n\n* **Payment Terms**: Net 30, due on receipt, etc.\n \n* **Payment Methods**: Accepted payment options\n \n* **Bank Details**: If provided for wire transfers\n \n\n#### Additional Information\n\n* **Notes\/Comments**: Any special instructions or terms\n \n* **Reference Numbers**: Order numbers, contract references\n \n* **Shipping Information**: If different from billing address\n \n\nOutput Format\n-------------\n\nPresent extracted information in a structured format:\n\n INVOICE [Number if multiple]\n ========================\n Invoice Number: [number]\n Date: [date]\n Due Date: [date]\n PO Number: [if applicable]\n \n VENDOR:\n Name: [company name]\n Address: [full address]\n Contact: [phone\/email]\n Tax ID: [if present]\n \n CUSTOMER:\n Name: [company name] \n Address: [full address]\n \n LINE ITEMS:\n 1. [Description] | Qty: [X] | Unit: $[amount] | Total: $[amount]\n 2. [Description] | Qty: [X] | Unit: $[amount] | Total: $[amount]\n [continue for all items]\n \n FINANCIAL SUMMARY:\n Subtotal: $[amount]\n Tax ([rate]%): $[amount]\n Total: $[amount]\n Currency: [currency]\n \n PAYMENT TERMS: [terms]\n NOTES: [any additional information]\n \n\nQuality Standards\n-----------------\n\n* **Accuracy**: Double-check all numerical values and dates\n \n* **Completeness**: Flag any missing critical information\n \n* **Consistency**: Use standardized date formats (YYYY-MM-DD) and currency notation\n \n* **Clarity**: If text is unclear or illegible, note as \"\\[UNCLEAR\\]\" rather than guessing\n \n* **Validation**: Cross-reference totals to ensure mathematical accuracy\n \n\nError Handling\n--------------\n\n* If information is partially visible or cut off, extract what's readable and note limitations\n \n* For poor quality images, indicate which fields may be unreliable\n \n* If no invoice is detected in the document, clearly state this finding",
"llmReturnResponseAs": "assistantMessage",
"llmStructuredOutput": [
{
"key": "invoice_number",
"type": "string",
"enumValues": "",
"jsonSchema": "",
"description": "Invoice Number"
},
{
"key": "invoice_date",
"type": "string",
"enumValues": "",
"jsonSchema": "",
"description": "invoice date"
},
{
"key": "vendor_name",
"type": "string",
"enumValues": "",
"jsonSchema": "",
"description": "vendor name"
},
{
"key": "line_items",
"type": "jsonArray",
"enumValues": "",
"jsonSchema": "{ \"type\": \"object\", \"properties\": { \"product_code\": { \"type\": \"string\", \"description\": \"Product identification code\" }, \"unit\": { \"type\": \"string\", \"description\": \"Unit of measurement (EA, LB, etc.)\" }, \"description\": { \"type\": \"string\", \"description\": \"Product description\" }, \"quantity_shipped\": { \"type\": \"number\", \"description\": \"Quantity that was actually shipped\" }, \"unit_price\": { \"type\": \"number\", \"description\": \"Price per unit\" }, \"extended_price\": { \"type\": \"number\", \"description\": \"Total price for this line item\" } } }",
"description": "Used to get the product lines"
}
],
"llmModelConfig": {
"credential": "",
"modelName": "gemini-2.5-flash",
"customModelName": "",
"temperature": "0.2",
"streaming": true,
"maxOutputTokens": "",
"topP": "",
"topK": "",
"safetySettings": "",
"baseUrl": "",
"allowImageUploads": true,
"llmModel": "chatGoogleGenerativeAI"
}
},
"output": {
"content": "{\n \"invoice_number\": \"559341\",\n \"invoice_date\": \"2025-01-27\",\n \"vendor_name\": \"SUPA VALU,LTD.\",\n \"line_items\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"0660421\",\n \"unit\": \"EA\",\n \"description\": \"WORTHINGTON DINNER ROAST\",\n \"quantity_shipped\": 0,\n \"unit_price\": 19.1,\n \"extended_price\": 0\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"1212601\",\n \"unit\": \"EA\",\n \"description\": \"SPINACH CHOPPED FROZEN\",\n \"quantity_shipped\": 1,\n \"unit_price\": 5.6,\n \"extended_price\": 5.6\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"1217181\",\n \"unit\": \"EA\",\n \"description\": \"PLANTAN SWEET SLICED\",\n \"quantity_shipped\": 1,\n \"unit_price\": 12.47,\n \"extended_price\": 12.47\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2225601\",\n \"unit\": \"PK\",\n \"description\": \"PITA WHEAT TOUFAYAN\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.95,\n \"extended_price\": 2.95\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2803401\",\n \"unit\": \"LB\",\n \"description\": \"POTATO WHITE\",\n \"quantity_shipped\": 4,\n \"unit_price\": 1.36,\n \"extended_price\": 5.85\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2804801\",\n \"unit\": \"PD\",\n \"description\": \"SWEET POTATO USA YAM\",\n \"quantity_shipped\": 4,\n \"unit_price\": 1.09,\n \"extended_price\": 5.12\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2815201\",\n \"unit\": \"EA\",\n \"description\": \"KALE\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.3,\n \"extended_price\": 2.3\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2819201\",\n \"unit\": \"LB\",\n \"description\": \"BEET ROOT\",\n \"quantity_shipped\": 3,\n \"unit_price\": 1.57,\n \"extended_price\": 5.18\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2819801\",\n \"unit\": \"EA\",\n \"description\": \"BROCCOLI\",\n \"quantity_shipped\": 1,\n \"unit_price\": 4.21,\n \"extended_price\": 4.21\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2823601\",\n \"unit\": \"PD\",\n \"description\": \"CARROTS BULK\",\n \"quantity_shipped\": 6,\n \"unit_price\": 1.45,\n \"extended_price\": 8.7\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2830401\",\n \"unit\": \"LB\",\n \"description\": \"GARLIC JUMBO\",\n \"quantity_shipped\": 1,\n \"unit_price\": 4.05,\n \"extended_price\": 4.46\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2840601\",\n \"unit\": \"PD\",\n \"description\": \"PEPPER RED BELL\",\n \"quantity_shipped\": 1,\n \"unit_price\": 3.87,\n \"extended_price\": 5.03\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2844702\",\n \"unit\": \"EA\",\n \"description\": \"SCALLION BUNCH 1EA\",\n \"quantity_shipped\": 1,\n \"unit_price\": 1.33,\n \"extended_price\": 1.33\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"3005601\",\n \"unit\": \"EA\",\n \"description\": \"TOFU (FIRM 2\/PC)\",\n \"quantity_shipped\": 0,\n \"unit_price\": 2.7,\n \"extended_price\": 2.7\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4003401\",\n \"unit\": \"EA\",\n \"description\": \"BARILLA SPAGHETTI #7\",\n \"quantity_shipped\": 1,\n \"unit_price\": 7.93,\n \"extended_price\": 7.93\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4011151\",\n \"unit\": \"EA\",\n \"description\": \"QUINOA TRI-COLOR\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.27,\n \"extended_price\": 2.27\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4024801\",\n \"unit\": \"EA\",\n \"description\": \"SALT IODIZED\",\n \"quantity_shipped\": 3,\n \"unit_price\": 3.28,\n \"extended_price\": 9.84\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4808471\",\n \"unit\": \"EA\",\n \"description\": \"COCONUT MILK 1X13.5Z\",\n \"quantity_shipped\": 1,\n \"unit_price\": 8.33,\n \"extended_price\": 8.33\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"5021611\",\n \"unit\": \"EA\",\n \"description\": \"TUMERIC GROUND\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.03,\n \"extended_price\": 2.03\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24741\",\n \"unit\": \"PK\",\n \"description\": \"BLACK EYE PEAS\",\n \"quantity_shipped\": 2,\n \"unit_price\": 2.03,\n \"extended_price\": 2.03\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24761\",\n \"unit\": \"EA\",\n \"description\": \"LENTILS\",\n \"quantity_shipped\": 2,\n \"unit_price\": 2.1,\n \"extended_price\": 4.2\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24781\",\n \"unit\": \"EA\",\n \"description\": \"CHIC PEAS DRY\",\n \"quantity_shipped\": 2,\n \"unit_price\": 2.07,\n \"extended_price\": 4.14\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24791\",\n \"unit\": \"EA\",\n \"description\": \"BLACK BEANS DRY\",\n \"quantity_shipped\": 1,\n \"unit_price\": 1.91,\n \"extended_price\": 1.91\n }\n }\n ]\n}",
"timeMetadata": {
"start": 1756208372653,
"end": 1756208398803,
"delta": 26150
},
"invoice_number": "559341",
"invoice_date": "2025-01-27",
"vendor_name": "SUPA VALU,LTD.",
"line_items": [
{
"type": "object",
"properties": {
"product_code": "0660421",
"unit": "EA",
"description": "WORTHINGTON DINNER ROAST",
"quantity_shipped": 0,
"unit_price": 19.1,
"extended_price": 0
}
},
{
"type": "object",
"properties": {
"product_code": "1212601",
"unit": "EA",
"description": "SPINACH CHOPPED FROZEN",
"quantity_shipped": 1,
"unit_price": 5.6,
"extended_price": 5.6
}
},
{
"type": "object",
"properties": {
"product_code": "1217181",
"unit": "EA",
"description": "PLANTAN SWEET SLICED",
"quantity_shipped": 1,
"unit_price": 12.47,
"extended_price": 12.47
}
},
{
"type": "object",
"properties": {
"product_code": "2225601",
"unit": "PK",
"description": "PITA WHEAT TOUFAYAN",
"quantity_shipped": 1,
"unit_price": 2.95,
"extended_price": 2.95
}
},
{
"type": "object",
"properties": {
"product_code": "2803401",
"unit": "LB",
"description": "POTATO WHITE",
"quantity_shipped": 4,
"unit_price": 1.36,
"extended_price": 5.85
}
},
{
"type": "object",
"properties": {
"product_code": "2804801",
"unit": "PD",
"description": "SWEET POTATO USA YAM",
"quantity_shipped": 4,
"unit_price": 1.09,
"extended_price": 5.12
}
},
{
"type": "object",
"properties": {
"product_code": "2815201",
"unit": "EA",
"description": "KALE",
"quantity_shipped": 1,
"unit_price": 2.3,
"extended_price": 2.3
}
},
{
"type": "object",
"properties": {
"product_code": "2819201",
"unit": "LB",
"description": "BEET ROOT",
"quantity_shipped": 3,
"unit_price": 1.57,
"extended_price": 5.18
}
},
{
"type": "object",
"properties": {
"product_code": "2819801",
"unit": "EA",
"description": "BROCCOLI",
"quantity_shipped": 1,
"unit_price": 4.21,
"extended_price": 4.21
}
},
{
"type": "object",
"properties": {
"product_code": "2823601",
"unit": "PD",
"description": "CARROTS BULK",
"quantity_shipped": 6,
"unit_price": 1.45,
"extended_price": 8.7
}
},
{
"type": "object",
"properties": {
"product_code": "2830401",
"unit": "LB",
"description": "GARLIC JUMBO",
"quantity_shipped": 1,
"unit_price": 4.05,
"extended_price": 4.46
}
},
{
"type": "object",
"properties": {
"product_code": "2840601",
"unit": "PD",
"description": "PEPPER RED BELL",
"quantity_shipped": 1,
"unit_price": 3.87,
"extended_price": 5.03
}
},
{
"type": "object",
"properties": {
"product_code": "2844702",
"unit": "EA",
"description": "SCALLION BUNCH 1EA",
"quantity_shipped": 1,
"unit_price": 1.33,
"extended_price": 1.33
}
},
{
"type": "object",
"properties": {
"product_code": "3005601",
"unit": "EA",
"description": "TOFU (FIRM 2\/PC)",
"quantity_shipped": 0,
"unit_price": 2.7,
"extended_price": 2.7
}
},
{
"type": "object",
"properties": {
"product_code": "4003401",
"unit": "EA",
"description": "BARILLA SPAGHETTI #7",
"quantity_shipped": 1,
"unit_price": 7.93,
"extended_price": 7.93
}
},
{
"type": "object",
"properties": {
"product_code": "4011151",
"unit": "EA",
"description": "QUINOA TRI-COLOR",
"quantity_shipped": 1,
"unit_price": 2.27,
"extended_price": 2.27
}
},
{
"type": "object",
"properties": {
"product_code": "4024801",
"unit": "EA",
"description": "SALT IODIZED",
"quantity_shipped": 3,
"unit_price": 3.28,
"extended_price": 9.84
}
},
{
"type": "object",
"properties": {
"product_code": "4808471",
"unit": "EA",
"description": "COCONUT MILK 1X13.5Z",
"quantity_shipped": 1,
"unit_price": 8.33,
"extended_price": 8.33
}
},
{
"type": "object",
"properties": {
"product_code": "5021611",
"unit": "EA",
"description": "TUMERIC GROUND",
"quantity_shipped": 1,
"unit_price": 2.03,
"extended_price": 2.03
}
},
{
"type": "object",
"properties": {
"product_code": "GY24741",
"unit": "PK",
"description": "BLACK EYE PEAS",
"quantity_shipped": 2,
"unit_price": 2.03,
"extended_price": 2.03
}
},
{
"type": "object",
"properties": {
"product_code": "GY24761",
"unit": "EA",
"description": "LENTILS",
"quantity_shipped": 2,
"unit_price": 2.1,
"extended_price": 4.2
}
},
{
"type": "object",
"properties": {
"product_code": "GY24781",
"unit": "EA",
"description": "CHIC PEAS DRY",
"quantity_shipped": 2,
"unit_price": 2.07,
"extended_price": 4.14
}
},
{
"type": "object",
"properties": {
"product_code": "GY24791",
"unit": "EA",
"description": "BLACK BEANS DRY",
"quantity_shipped": 1,
"unit_price": 1.91,
"extended_price": 1.91
}
}
]
},
"state": [],
"chatHistory": [
{
"role": "user",
"content": [
{
"type": "stored-file",
"name": "SV Inv to text_page-0001.jpg",
"mime": "image\/jpeg"
}
]
},
{
"role": "user",
"content": "Analyze this invoice image and extract key information. Return ONLY a valid JSON object with the following structure: {\"invoice_number\": \"string\", \"invoice_date\": \"YYYY-MM-DD\", \"vendor_name\": \"string\", \"total_amount\": number, \"line_items\": [{\"product_code\": \"string\", \"description\": \"string\", \"quantity_shipped\": number, \"unit_price\": number, \"extended_price\": number, \"unit\": \"string\"}]}. Do not include any other text or explanations."
},
{
"role": "assistant",
"content": "{\n \"invoice_number\": \"559341\",\n \"invoice_date\": \"2025-01-27\",\n \"vendor_name\": \"SUPA VALU,LTD.\",\n \"line_items\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"0660421\",\n \"unit\": \"EA\",\n \"description\": \"WORTHINGTON DINNER ROAST\",\n \"quantity_shipped\": 0,\n \"unit_price\": 19.1,\n \"extended_price\": 0\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"1212601\",\n \"unit\": \"EA\",\n \"description\": \"SPINACH CHOPPED FROZEN\",\n \"quantity_shipped\": 1,\n \"unit_price\": 5.6,\n \"extended_price\": 5.6\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"1217181\",\n \"unit\": \"EA\",\n \"description\": \"PLANTAN SWEET SLICED\",\n \"quantity_shipped\": 1,\n \"unit_price\": 12.47,\n \"extended_price\": 12.47\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2225601\",\n \"unit\": \"PK\",\n \"description\": \"PITA WHEAT TOUFAYAN\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.95,\n \"extended_price\": 2.95\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2803401\",\n \"unit\": \"LB\",\n \"description\": \"POTATO WHITE\",\n \"quantity_shipped\": 4,\n \"unit_price\": 1.36,\n \"extended_price\": 5.85\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2804801\",\n \"unit\": \"PD\",\n \"description\": \"SWEET POTATO USA YAM\",\n \"quantity_shipped\": 4,\n \"unit_price\": 1.09,\n \"extended_price\": 5.12\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2815201\",\n \"unit\": \"EA\",\n \"description\": \"KALE\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.3,\n \"extended_price\": 2.3\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2819201\",\n \"unit\": \"LB\",\n \"description\": \"BEET ROOT\",\n \"quantity_shipped\": 3,\n \"unit_price\": 1.57,\n \"extended_price\": 5.18\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2819801\",\n \"unit\": \"EA\",\n \"description\": \"BROCCOLI\",\n \"quantity_shipped\": 1,\n \"unit_price\": 4.21,\n \"extended_price\": 4.21\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2823601\",\n \"unit\": \"PD\",\n \"description\": \"CARROTS BULK\",\n \"quantity_shipped\": 6,\n \"unit_price\": 1.45,\n \"extended_price\": 8.7\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2830401\",\n \"unit\": \"LB\",\n \"description\": \"GARLIC JUMBO\",\n \"quantity_shipped\": 1,\n \"unit_price\": 4.05,\n \"extended_price\": 4.46\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2840601\",\n \"unit\": \"PD\",\n \"description\": \"PEPPER RED BELL\",\n \"quantity_shipped\": 1,\n \"unit_price\": 3.87,\n \"extended_price\": 5.03\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"2844702\",\n \"unit\": \"EA\",\n \"description\": \"SCALLION BUNCH 1EA\",\n \"quantity_shipped\": 1,\n \"unit_price\": 1.33,\n \"extended_price\": 1.33\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"3005601\",\n \"unit\": \"EA\",\n \"description\": \"TOFU (FIRM 2\/PC)\",\n \"quantity_shipped\": 0,\n \"unit_price\": 2.7,\n \"extended_price\": 2.7\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4003401\",\n \"unit\": \"EA\",\n \"description\": \"BARILLA SPAGHETTI #7\",\n \"quantity_shipped\": 1,\n \"unit_price\": 7.93,\n \"extended_price\": 7.93\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4011151\",\n \"unit\": \"EA\",\n \"description\": \"QUINOA TRI-COLOR\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.27,\n \"extended_price\": 2.27\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4024801\",\n \"unit\": \"EA\",\n \"description\": \"SALT IODIZED\",\n \"quantity_shipped\": 3,\n \"unit_price\": 3.28,\n \"extended_price\": 9.84\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"4808471\",\n \"unit\": \"EA\",\n \"description\": \"COCONUT MILK 1X13.5Z\",\n \"quantity_shipped\": 1,\n \"unit_price\": 8.33,\n \"extended_price\": 8.33\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"5021611\",\n \"unit\": \"EA\",\n \"description\": \"TUMERIC GROUND\",\n \"quantity_shipped\": 1,\n \"unit_price\": 2.03,\n \"extended_price\": 2.03\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24741\",\n \"unit\": \"PK\",\n \"description\": \"BLACK EYE PEAS\",\n \"quantity_shipped\": 2,\n \"unit_price\": 2.03,\n \"extended_price\": 2.03\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24761\",\n \"unit\": \"EA\",\n \"description\": \"LENTILS\",\n \"quantity_shipped\": 2,\n \"unit_price\": 2.1,\n \"extended_price\": 4.2\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24781\",\n \"unit\": \"EA\",\n \"description\": \"CHIC PEAS DRY\",\n \"quantity_shipped\": 2,\n \"unit_price\": 2.07,\n \"extended_price\": 4.14\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"product_code\": \"GY24791\",\n \"unit\": \"EA\",\n \"description\": \"BLACK BEANS DRY\",\n \"quantity_shipped\": 1,\n \"unit_price\": 1.91,\n \"extended_price\": 1.91\n }\n }\n ]\n}",
"name": "extract_&_analyze_invoice"
}
]
},
"previousNodeIds": [
"startAgentflow_0"
],
"status": "FINISHED"
}
],
"sessionId": "b217e572-79d1-4526-b34a-7f7ca2762e0e"
}
]