🎯 Extrahierte Felder (AI-Rohdaten)
▼
{
"invoice_number": null,
"vendor_name": "Lidl",
"vendor_address": "Feldstraße 29, 63179 Obertshausen",
"vendor_tax_id": "DE813388807",
"invoice_date": "2026-02-28",
"due_date": null,
"net_amount": 92.04,
"vat_amount": 8.52,
"gross_amount": 100.56,
"vat_rate": 19,
"currency": "EUR",
"description": null,
"type": "outgoing",
"document_type": "receipt",
"line_items": [
{
"description": "Gurken",
"amount": 1.29,
"quantity": 1
},
{
"description": "Kiwi",
"amount": 1.99,
"quantity": 1
},
{
"description": "Paprika Mix",
"amount": 2.39,
"quantity": 1
},
{
"description": "Trauben dunkel",
"amount": 1.69,
"quantity": 1
},
{
"description": "Del.Wien.Würst. i.N.",
"amount": 6.79,
"quantity": 1
},
{
"description": "Pfälzer Leberwurst",
"amount": 1.69,
"quantity": 1
},
{
"description": "Hummus HP Natur",
"amount": 1.49,
"quantity": 1
},
{
"description": "Sahne-Pudding Vanil.",
"amount": 1.49,
"quantity": 2
},
{
"description": "Sahne-Pudding Schoko",
"amount": 1.49,
"quantity": 1
},
{
"description": "Del.Kochhinterschin.",
"amount": 1.49,
"quantity": 2
},
{
"description": "Ziegenkäse m. Rinde",
"amount": 2.59,
"quantity": 1
},
{
"description": "Blätterteig",
"amount": 0.95,
"quantity": 2
},
{
"description": "4-Käse-Mischung",
"amount": 1.99,
"quantity": 1
},
{
"description": "Pizzakombi Teig",
"amount": 1.99,
"quantity": 1
},
{
"description": "Müller Fruchtb.Brom.",
"amount": 0.89,
"quantity": 1
},
{
"description": "Barista Hafer Drink",
"amount": 1.25,
"quantity": 1
},
{
"description": "Diamant Rübenzucker",
"amount": 0.99,
"quantity": 1
},
{
"description": "Sonnenblumenöl",
"amount": 1.69,
"quantity": 1
},
{
"description": "Ceylon Assamtee",
"amount": 0.99,
"quantity": 1
},
{
"description": "Erdnussbutter Creamy",
"amount": 1.79,
"quantity": 1
},
{
"description": "Schw. Himbeere",
"amount": 2.69,
"quantity": 1
},
{
"description": "Bioland Eier OKT 6er",
"amount": 3.29,
"quantity": 1
},
{
"description": "Bio vegan Aubergine",
"amount": 1.25,
"quantity": 1
},
{
"description": "Haferflocken Zart",
"amount": 0.69,
"quantity": 1
},
{
"description": "Kaffee Mild & Fein",
"amount": 6.49,
"quantity": 1
},
{
"description": "Lipton Peach",
"amount": 1.29,
"quantity": 6
},
{
"description": "Mineralwasser",
"amount": 0.29,
"quantity": 6
},
{
"description": "Coca Cola",
"amount": 0.99,
"quantity": 12
},
{
"description": "Nuts Royal",
"amount": 2.99,
"quantity": 2
},
{
"description": "Katjes GrünOhr Hase",
"amount": 1.39,
"quantity": 2
},
{
"description": "Katjeswunderl.pink",
"amount": 1.39,
"quantity": 2
},
{
"description": "Weizen Sandwi. Toast",
"amount": 1.09,
"quantity": 1
},
{
"description": "Chicken NuggetsXXL",
"amount": 7.79,
"quantity": 1
},
{
"description": "Fr. Bratw. XXL",
"amount": 4.99,
"quantity": 1
}
],
"unresolved_entities": [],
"warnings": [
"Kassenbon erkannt, aber keine Belegnummer gefunden."
],
"confidence": 0.95,
"classification_confidence": 0.95,
"classification_source": "ai"
}
🤖 Vollständige AI-Response (JSON)
▼
{
"id": "chatcmpl-DIUFVN8NwlXulQydWPAJiZuJFfRDI",
"object": "chat.completion",
"created": 1773298553,
"model": "gpt-4o-mini-2024-07-18",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "{\n \"invoice_number\": null,\n \"vendor_name\": \"Lidl\",\n \"vendor_address\": \"Feldstraße 29, 63179 Obertshausen\",\n \"vendor_tax_id\": \"DE813388807\",\n \"invoice_date\": \"2026-02-28\",\n \"due_date\": null,\n \"net_amount\": 92.04,\n \"vat_amount\": 8.52,\n \"gross_amount\": 100.56,\n \"vat_rate\": 19.0,\n \"currency\": \"EUR\",\n \"description\": null,\n \"type\": \"outgoing\",\n \"document_type\": \"receipt\",\n \"line_items\": [\n {\n \"description\": \"Gurken\",\n \"amount\": 1.29,\n \"quantity\": 1\n },\n {\n \"description\": \"Kiwi\",\n \"amount\": 1.99,\n \"quantity\": 1\n },\n {\n \"description\": \"Paprika Mix\",\n \"amount\": 2.39,\n \"quantity\": 1\n },\n {\n \"description\": \"Trauben dunkel\",\n \"amount\": 1.69,\n \"quantity\": 1\n },\n {\n \"description\": \"Del.Wien.Würst. i.N.\",\n \"amount\": 6.79,\n \"quantity\": 1\n },\n {\n \"description\": \"Pfälzer Leberwurst\",\n \"amount\": 1.69,\n \"quantity\": 1\n },\n {\n \"description\": \"Hummus HP Natur\",\n \"amount\": 1.49,\n \"quantity\": 1\n },\n {\n \"description\": \"Sahne-Pudding Vanil.\",\n \"amount\": 1.49,\n \"quantity\": 2\n },\n {\n \"description\": \"Sahne-Pudding Schoko\",\n \"amount\": 1.49,\n \"quantity\": 1\n },\n {\n \"description\": \"Del.Kochhinterschin.\",\n \"amount\": 1.49,\n \"quantity\": 2\n },\n {\n \"description\": \"Ziegenkäse m. Rinde\",\n \"amount\": 2.59,\n \"quantity\": 1\n },\n {\n \"description\": \"Blätterteig\",\n \"amount\": 0.95,\n \"quantity\": 2\n },\n {\n \"description\": \"4-Käse-Mischung\",\n \"amount\": 1.99,\n \"quantity\": 1\n },\n {\n \"description\": \"Pizzakombi Teig\",\n \"amount\": 1.99,\n \"quantity\": 1\n },\n {\n \"description\": \"Müller Fruchtb.Brom.\",\n \"amount\": 0.89,\n \"quantity\": 1\n },\n {\n \"description\": \"Barista Hafer Drink\",\n \"amount\": 1.25,\n \"quantity\": 1\n },\n {\n \"description\": \"Diamant Rübenzucker\",\n \"amount\": 0.99,\n \"quantity\": 1\n },\n {\n \"description\": \"Sonnenblumenöl\",\n \"amount\": 1.69,\n \"quantity\": 1\n },\n {\n \"description\": \"Ceylon Assamtee\",\n \"amount\": 0.99,\n \"quantity\": 1\n },\n {\n \"description\": \"Erdnussbutter Creamy\",\n \"amount\": 1.79,\n \"quantity\": 1\n },\n {\n \"description\": \"Schw. Himbeere\",\n \"amount\": 2.69,\n \"quantity\": 1\n },\n {\n \"description\": \"Bioland Eier OKT 6er\",\n \"amount\": 3.29,\n \"quantity\": 1\n },\n {\n \"description\": \"Bio vegan Aubergine\",\n \"amount\": 1.25,\n \"quantity\": 1\n },\n {\n \"description\": \"Haferflocken Zart\",\n \"amount\": 0.69,\n \"quantity\": 1\n },\n {\n \"description\": \"Kaffee Mild & Fein\",\n \"amount\": 6.49,\n \"quantity\": 1\n },\n {\n \"description\": \"Lipton Peach\",\n \"amount\": 1.29,\n \"quantity\": 6\n },\n {\n \"description\": \"Mineralwasser\",\n \"amount\": 0.29,\n \"quantity\": 6\n },\n {\n \"description\": \"Coca Cola\",\n \"amount\": 0.99,\n \"quantity\": 12\n },\n {\n \"description\": \"Nuts Royal\",\n \"amount\": 2.99,\n \"quantity\": 2\n },\n {\n \"description\": \"Katjes GrünOhr Hase\",\n \"amount\": 1.39,\n \"quantity\": 2\n },\n {\n \"description\": \"Katjeswunderl.pink\",\n \"amount\": 1.39,\n \"quantity\": 2\n },\n {\n \"description\": \"Weizen Sandwi. Toast\",\n \"amount\": 1.09,\n \"quantity\": 1\n },\n {\n \"description\": \"Chicken NuggetsXXL\",\n \"amount\": 7.79,\n \"quantity\": 1\n },\n {\n \"description\": \"Fr. Bratw. XXL\",\n \"amount\": 4.99,\n \"quantity\": 1\n }\n ],\n \"unresolved_entities\": [],\n \"warnings\": [],\n \"confidence\": 0.95\n}",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 1656,
"completion_tokens": 1239,
"total_tokens": 2895,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"service_tier": "default",
"system_fingerprint": "fp_7e09045385",
"_meta": {
"system_prompt": "Du bist ein Buchhaltungsassistent. Analysiere den folgenden OCR-Text einer Rechnung und extrahiere die strukturierten Daten.\nAntworte ausschließlich mit einem JSON-Objekt mit diesen Feldern:\n- invoice_number (string|null)\n- vendor_name (string|null)\n- vendor_address (string|null)\n- vendor_tax_id (string|null)\n- invoice_date (string|null, Format: YYYY-MM-DD)\n- due_date (string|null, Format: YYYY-MM-DD)\n- net_amount (float|null)\n- vat_amount (float|null)\n- gross_amount (float|null)\n- vat_rate (float|null, z.B. 19.0 für 19%)\n- currency (string, Standard: EUR)\n- description (string|null)\n- type (string: \"incoming\" oder \"outgoing\")\n- document_type (string: \"invoice\", \"receipt\" oder \"unknown\")\n- line_items (array von Positionen, optional)\n- unresolved_entities (array, optional) mit Einträgen:\n - value (string)\n - guessed_type (string, z.B. company_name|person_name|address|iban|tax_id|unknown)\n - confidence (float zwischen 0 und 1)\n - context (string|null)\n - suggestion (string|null, kurze Vermutung zur Bedeutung)\n- warnings (array von strings, optional)\n- confidence (float zwischen 0 und 1)\n\nRegeln für unresolved_entities:\n- Nur Entitäten aufnehmen, die nicht sicher einem Standardfeld zugeordnet werden konnten.\n- Falls unsicher, guessed_type=unknown setzen und confidence reduzieren.\n- Bei potentiellen Firmennamen immer suggestion ergänzen (z.B. \"möglicher Lieferant\" oder \"mögliche eigene Firma\").\n\nBekannte eigene Firmen (für bessere Zuordnung):\n- KogniFlow GmbH | Adresse: Musterstraße 1, 12345 Musterstadt",
"model": "gpt-4o-mini"
},
"classification": {
"document_type": "receipt",
"confidence": 0.95,
"source": "ai"
},
"warnings": [
"Kassenbon erkannt, aber keine Belegnummer gefunden."
],
"extracted_data": {
"invoice_number": null,
"vendor_name": "Lidl",
"vendor_address": "Feldstraße 29, 63179 Obertshausen",
"vendor_tax_id": "DE813388807",
"invoice_date": "2026-02-28",
"due_date": null,
"net_amount": 92.04,
"vat_amount": 8.52,
"gross_amount": 100.56,
"vat_rate": 19,
"currency": "EUR",
"description": null,
"type": "outgoing",
"document_type": "receipt",
"line_items": [
{
"description": "Gurken",
"amount": 1.29,
"quantity": 1
},
{
"description": "Kiwi",
"amount": 1.99,
"quantity": 1
},
{
"description": "Paprika Mix",
"amount": 2.39,
"quantity": 1
},
{
"description": "Trauben dunkel",
"amount": 1.69,
"quantity": 1
},
{
"description": "Del.Wien.Würst. i.N.",
"amount": 6.79,
"quantity": 1
},
{
"description": "Pfälzer Leberwurst",
"amount": 1.69,
"quantity": 1
},
{
"description": "Hummus HP Natur",
"amount": 1.49,
"quantity": 1
},
{
"description": "Sahne-Pudding Vanil.",
"amount": 1.49,
"quantity": 2
},
{
"description": "Sahne-Pudding Schoko",
"amount": 1.49,
"quantity": 1
},
{
"description": "Del.Kochhinterschin.",
"amount": 1.49,
"quantity": 2
},
{
"description": "Ziegenkäse m. Rinde",
"amount": 2.59,
"quantity": 1
},
{
"description": "Blätterteig",
"amount": 0.95,
"quantity": 2
},
{
"description": "4-Käse-Mischung",
"amount": 1.99,
"quantity": 1
},
{
"description": "Pizzakombi Teig",
"amount": 1.99,
"quantity": 1
},
{
"description": "Müller Fruchtb.Brom.",
"amount": 0.89,
"quantity": 1
},
{
"description": "Barista Hafer Drink",
"amount": 1.25,
"quantity": 1
},
{
"description": "Diamant Rübenzucker",
"amount": 0.99,
"quantity": 1
},
{
"description": "Sonnenblumenöl",
"amount": 1.69,
"quantity": 1
},
{
"description": "Ceylon Assamtee",
"amount": 0.99,
"quantity": 1
},
{
"description": "Erdnussbutter Creamy",
"amount": 1.79,
"quantity": 1
},
{
"description": "Schw. Himbeere",
"amount": 2.69,
"quantity": 1
},
{
"description": "Bioland Eier OKT 6er",
"amount": 3.29,
"quantity": 1
},
{
"description": "Bio vegan Aubergine",
"amount": 1.25,
"quantity": 1
},
{
"description": "Haferflocken Zart",
"amount": 0.69,
"quantity": 1
},
{
"description": "Kaffee Mild & Fein",
"amount": 6.49,
"quantity": 1
},
{
"description": "Lipton Peach",
"amount": 1.29,
"quantity": 6
},
{
"description": "Mineralwasser",
"amount": 0.29,
"quantity": 6
},
{
"description": "Coca Cola",
"amount": 0.99,
"quantity": 12
},
{
"description": "Nuts Royal",
"amount": 2.99,
"quantity": 2
},
{
"description": "Katjes GrünOhr Hase",
"amount": 1.39,
"quantity": 2
},
{
"description": "Katjeswunderl.pink",
"amount": 1.39,
"quantity": 2
},
{
"description": "Weizen Sandwi. Toast",
"amount": 1.09,
"quantity": 1
},
{
"description": "Chicken NuggetsXXL",
"amount": 7.79,
"quantity": 1
},
{
"description": "Fr. Bratw. XXL",
"amount": 4.99,
"quantity": 1
}
],
"unresolved_entities": [],
"warnings": [
"Kassenbon erkannt, aber keine Belegnummer gefunden."
],
"confidence": 0.95,
"classification_confidence": 0.95,
"classification_source": "ai"
}
}