→ Classifies invoice and payment emails
→ Extracts client, invoice, amount, currency, dates and contextual details using structured output
→ Stores and matches records in SQLite
→ Uses deterministic logic to identify full/short and on-time/late payments
→ Uses a second agent to draft a contextual follow-up only when needed
→ Keeps the final decision with the human through Approve / Edit / Reject