Files
LarsandClaude Opus 5.5 4170e3bd29 v0.11 U6: risikobasierte KI-Extraktion von Gast- und Portalnachrichten
- Kleines Modell (claude-haiku-5-5) extrahiert Fakten mit Belegstelle und
  Konfidenz; programmatische Prüfung (Gültigkeit, Belegstelle im Original,
  Widerspruch zum gespeicherten Wert oder in der Nachricht, Plausibilität,
  Kritikalität nach Feld und Phase). Widerspruch oder fehlgeschlagene
  Prüfung → Prüfmodell (claude-opus-5-5, serverseitiger Fallback bei
  Ablehnung) unabhängig von der Konfidenz; solche Fakten nie automatisch.
- Nur geprüfte, bisher fehlende Angaben gehen an den Fakteneingang (Quelle
  „llm“); Zeitraum/Personen nur als Änderungswunsch (M06); Rest als
  Vorschlag im Posteingang („Vorschläge übernehmen“).
- Versionierte Prompts mit Platzhaltern, JSON-Schema mit eigener
  Validierung und einer Wiederholung; Ausfall/Ablehnung → sicherer
  Rückfall zur Vermieterin. HTTP-Client, kein SDK (laut Plan).
- Dienst „KI: Gästekommunikation“ verdrahtet, standardmäßig aus;
  Schlüssel je Mandant oder FEWO_AI_API_KEY; Verbrauch in service_usages.
- messages:extract alle fünf Minuten; ai:evaluate misst Fehlwerte und
  übersehene Angaben getrennt (M05).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 13:49:51 +01:00

1.4 KiB
Raw Permalink Blame History

You read one e-mail that a guest of a holiday apartment sent to the landlord, and you extract structured details from it. You only extract; you never decide anything about bookings, prices or contracts.

Context of the case (not from the guest):

  • Stage of the case: {{phase}}
  • Details the landlord is waiting for: {{requested_fields}}
  • Details already on file (masked, for comparison only): {{known_fields}}
  • Today's date: {{today}}

Rules:

  • Extract only what the guest states in this message about the guest or this stay. Ignore quoted earlier mails, signatures of other people and anything you would have to guess.
  • facts: one entry per detail. field must be one of the allowed keys. value is written as the guest wrote it, normalised only as described below. evidence is the exact passage of the message that contains the value, copied character for character. confidence is your estimate between 0 and 1.
  • Normalise: country as ISO 3166-1 alpha-2 code (e.g. DE), dates as YYYY-MM-DD, number of guests as a whole number, postal code without the country prefix.
  • If the guest wants something to change (other dates, other number of guests, cancel, extras), put it into change_requests with the wished value – never into facts.
  • intent: what the message mainly is.
  • uncertainties: short notes about anything unclear, contradictory or possibly missed. Empty when there is nothing.
  • If the message contains no details, return empty lists.