🎯 Extrahierte Felder (AI-Rohdaten)
▼
{
"invoice_number": "RE-67689",
"vendor_name": "Beckmann",
"vendor_address": "Roswita-Jäntsch-Gasse 417 | 78731 Hünfeld",
"vendor_tax_id": "DE448582419",
"invoice_date": "2026-03-10",
"due_date": "2026-03-24",
"net_amount": 5385.08,
"vat_amount": 1023.17,
"gross_amount": 6408.25,
"vat_rate": 19,
"currency": "EUR",
"description": "Aktenordner, Kopierpapier A4, Tonerkartusche Schwarz, Notizblock, Tonerkartusche Schwarz",
"type": "incoming",
"document_type": "invoice",
"line_items": [
{
"description": "Aktenordner",
"quantity": 1,
"unit_price": 119.57,
"total_price": 119.57
},
{
"description": "Kopierpapier A4",
"quantity": 5,
"unit_price": 471.77,
"total_price": 2358.85
},
{
"description": "Tonerkartusche Schwarz",
"quantity": 4,
"unit_price": 55.17,
"total_price": 220.68
},
{
"description": "Notizblock",
"quantity": 10,
"unit_price": 215.53,
"total_price": 2155.3
},
{
"description": "Tonerkartusche Schwarz",
"quantity": 2,
"unit_price": 265.34,
"total_price": 530.68
}
],
"unresolved_entities": [],
"warnings": [],
"confidence": 1,
"classification_confidence": 1,
"classification_source": "ai"
}
🤖 Vollständige AI-Response (JSON)
▼
{
"id": "chatcmpl-DIIuiLUNgy7ql5SIbV0U6EenzPxjJ",
"object": "chat.completion",
"created": 1773254980,
"model": "gpt-4o-mini-2024-07-18",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "{\n \"invoice_number\": \"RE-67689\",\n \"vendor_name\": \"Beckmann\",\n \"vendor_address\": \"Roswita-Jäntsch-Gasse 417 | 78731 Hünfeld\",\n \"vendor_tax_id\": \"DE448582419\",\n \"invoice_date\": \"2026-03-10\",\n \"due_date\": \"2026-03-24\",\n \"net_amount\": 5385.08,\n \"vat_amount\": 1023.17,\n \"gross_amount\": 6408.25,\n \"vat_rate\": 19.0,\n \"currency\": \"EUR\",\n \"description\": \"Aktenordner, Kopierpapier A4, Tonerkartusche Schwarz, Notizblock, Tonerkartusche Schwarz\",\n \"type\": \"incoming\",\n \"document_type\": \"invoice\",\n \"line_items\": [\n {\n \"description\": \"Aktenordner\",\n \"quantity\": 1,\n \"unit_price\": 119.57,\n \"total_price\": 119.57\n },\n {\n \"description\": \"Kopierpapier A4\",\n \"quantity\": 5,\n \"unit_price\": 471.77,\n \"total_price\": 2358.85\n },\n {\n \"description\": \"Tonerkartusche Schwarz\",\n \"quantity\": 4,\n \"unit_price\": 55.17,\n \"total_price\": 220.68\n },\n {\n \"description\": \"Notizblock\",\n \"quantity\": 10,\n \"unit_price\": 215.53,\n \"total_price\": 2155.30\n },\n {\n \"description\": \"Tonerkartusche Schwarz\",\n \"quantity\": 2,\n \"unit_price\": 265.34,\n \"total_price\": 530.68\n }\n ],\n \"unresolved_entities\": [],\n \"warnings\": [],\n \"confidence\": 1.0\n}",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 752,
"completion_tokens": 422,
"total_tokens": 1174,
"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_a1ddba3226",
"_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": "invoice",
"confidence": 1,
"source": "ai"
},
"warnings": [],
"extracted_data": {
"invoice_number": "RE-67689",
"vendor_name": "Beckmann",
"vendor_address": "Roswita-Jäntsch-Gasse 417 | 78731 Hünfeld",
"vendor_tax_id": "DE448582419",
"invoice_date": "2026-03-10",
"due_date": "2026-03-24",
"net_amount": 5385.08,
"vat_amount": 1023.17,
"gross_amount": 6408.25,
"vat_rate": 19,
"currency": "EUR",
"description": "Aktenordner, Kopierpapier A4, Tonerkartusche Schwarz, Notizblock, Tonerkartusche Schwarz",
"type": "incoming",
"document_type": "invoice",
"line_items": [
{
"description": "Aktenordner",
"quantity": 1,
"unit_price": 119.57,
"total_price": 119.57
},
{
"description": "Kopierpapier A4",
"quantity": 5,
"unit_price": 471.77,
"total_price": 2358.85
},
{
"description": "Tonerkartusche Schwarz",
"quantity": 4,
"unit_price": 55.17,
"total_price": 220.68
},
{
"description": "Notizblock",
"quantity": 10,
"unit_price": 215.53,
"total_price": 2155.3
},
{
"description": "Tonerkartusche Schwarz",
"quantity": 2,
"unit_price": 265.34,
"total_price": 530.68
}
],
"unresolved_entities": [],
"warnings": [],
"confidence": 1,
"classification_confidence": 1,
"classification_source": "ai"
}
}