{
  "accounts_classification_source": "default",
  "accounts_classifier": {
    "confidence": "low",
    "effective": false,
    "evidence": [
      "strong accounts wording detected: invoice"
    ],
    "invoice_matches": [],
    "medium_keyword_hits": [],
    "score": 10,
    "strong_keyword_hits": [
      "invoice"
    ]
  },
  "accounts_override": null,
  "ai_count": 0,
  "ai_last_error": null,
  "ai_last_processed_at": null,
  "ai_processing": false,
  "ai_processing_started_at": null,
  "ai_textfield": null,
  "allocated_date": null,
  "allocated_to": "",
  "body_html": "<p>Please find attached the following documents issued by City Electrical Factors:</p><p>Invoice - ALF/316569 - PO007720</p><p>If you have any problems or questions about these documents then please do not hesitate to contact us.</p>",
  "body_text": "Please find attached the following documents issued by City Electrical Factors:\n\nInvoice - ALF/316569 - PO007720\n\nIf you have any problems or questions about these documents then please do not hesitate to contact us.",
  "calls_classification_source": "default",
  "calls_override": null,
  "cc_email": "",
  "closed_date": null,
  "contact_email": "sales.alfreton@cef.co.uk",
  "contact_id": 1589,
  "contact_is_safe": false,
  "contact_name": "",
  "contact_open_url": "/contacts?open=1589&search=sales.alfreton%40cef.co.uk",
  "contact_type": "b2b",
  "display_body_html": "<p>Please find attached the following documents issued by City Electrical Factors:</p><p>Invoice - ALF/316569 - PO007720</p><p>If you have any problems or questions about these documents then please do not hesitate to contact us.</p>",
  "display_body_invalid_reason": "",
  "display_body_source": "text/html",
  "display_body_text": "Please find attached the following documents issued by City Electrical Factors:\n\nInvoice - ALF/316569 - PO007720\n\nIf you have any problems or questions about these documents then please do not hesitate to contact us.",
  "display_body_used_placeholder": false,
  "due_date": null,
  "duplicate_of": null,
  "effective_is_accounts": false,
  "effective_is_calls": false,
  "effective_is_internal": false,
  "effective_is_safe": true,
  "effective_is_spam": false,
  "escalated_date": null,
  "escalted_to": null,
  "extracted_entities": [
    {
      "confidence": "0.9950",
      "entity_type": "email_address",
      "entity_value_normalised": "sales.alfreton@cef.co.uk",
      "entity_value_raw": "sales.alfreton@cef.co.uk",
      "extraction_method": "header_parse",
      "id": 886627,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_address_parse",
      "rule_version": "v1",
      "source_area": "from_header",
      "source_index": 0,
      "source_subarea": "address"
    },
    {
      "confidence": "0.9400",
      "entity_type": "email_address",
      "entity_value_normalised": "sales.alfreton@cef.co.uk",
      "entity_value_raw": "sales.alfreton@cef.co.uk",
      "extraction_method": "regex",
      "id": 886628,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_email_regex",
      "rule_version": "v1",
      "source_area": "from_header",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9950",
      "entity_type": "email_address",
      "entity_value_normalised": "accounts@mpcservices.co.uk",
      "entity_value_raw": "accounts@mpcservices.co.uk",
      "extraction_method": "header_parse",
      "id": 886629,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_address_parse",
      "rule_version": "v1",
      "source_area": "to_header",
      "source_index": 0,
      "source_subarea": "address"
    },
    {
      "confidence": "0.9400",
      "entity_type": "email_address",
      "entity_value_normalised": "accounts@mpcservices.co.uk",
      "entity_value_raw": "accounts@mpcservices.co.uk",
      "extraction_method": "regex",
      "id": 886630,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_email_regex",
      "rule_version": "v1",
      "source_area": "to_header",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9600",
      "entity_type": "po_reference",
      "entity_value_normalised": "007720",
      "entity_value_raw": "007720",
      "extraction_method": "regex",
      "id": 886631,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "po_keyword_alnum",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 0,
      "source_subarea": "regex"
    }
  ],
  "extracted_entities_json": {
    "counts": {
      "company_name": 0,
      "date": 0,
      "email_address": 2,
      "invoice_reference": 0,
      "job_reference": 0,
      "money_amount": 0,
      "order_reference": 0,
      "person_name": 0,
      "phone_number": 0,
      "po_reference": 1,
      "postcode": 0,
      "quote_reference": 0,
      "url": 0
    },
    "entities": {
      "company_name": [],
      "date": [],
      "email_address": [
        "sales.alfreton@cef.co.uk",
        "accounts@mpcservices.co.uk"
      ],
      "invoice_reference": [],
      "job_reference": [],
      "money_amount": [],
      "order_reference": [],
      "person_name": [],
      "phone_number": [],
      "po_reference": [
        "007720"
      ],
      "postcode": [],
      "quote_reference": [],
      "url": []
    },
    "last_processed_at": "2026-05-18T11:23:06Z",
    "primary": {
      "email_address": "sales.alfreton@cef.co.uk",
      "po_reference": "007720"
    },
    "version": "v1"
  },
  "from_email": "\"C.E.F. (Alfreton)\" <sales.alfreton@cef.co.uk>",
  "full_message": "Please find attached the following documents issued by City Electrical Factors:\n\nInvoice - ALF/316569 - PO007720\n\nIf you have any problems or questions about these documents then please do not hesitate to contact us.",
  "human_notes": null,
  "human_summary": null,
  "human_title": null,
  "id": 82941,
  "in_reply_to": "",
  "internal_classification_source": "default",
  "internal_override": null,
  "is_accounts": false,
  "is_accounts_inbox_recipient": true,
  "is_action_required": false,
  "is_ai": false,
  "is_calls": false,
  "is_closed": false,
  "is_complaint": false,
  "is_duplicate": false,
  "is_escalated": false,
  "is_flagged": false,
  "is_internal": false,
  "is_lead": false,
  "is_newemailaddr": false,
  "is_opportunity": false,
  "is_private": false,
  "is_shared": true,
  "is_shared_inbox_recipient": false,
  "is_spam": false,
  "is_transaction": false,
  "message_id": "a4852713-eedc-44fe-9db2-3b88de951a0c@MGT-UK-EXCH02.cef-uk.local",
  "primary_action_case": null,
  "primary_company_href": "/quotetemplate/?page=1&mode=service&q=5231432",
  "primary_company_name": "City Electrical Factors",
  "received_at": "Mon, 18 May 2026 11:21:36 GMT",
  "safe_classification_source": "rule",
  "snippet": "Please find attached the following documents issued by City Electrical Factors: Invoice - ALF/316569 - PO007720 If you\u2026",
  "source": "Mailcow IMAP",
  "spam_classification_source": "safe_override",
  "status": "new",
  "subject": "CEF Documents",
  "suggested_company": null,
  "suggested_customerid": null,
  "tags": null,
  "to_email": "<accounts@mpcservices.co.uk>",
  "type": "inbound"
}
