{
  "accounts_classification_source": "classifier",
  "accounts_classifier": {
    "confidence": "high",
    "effective": true,
    "evidence": [
      "invoice reference 50688 matched the email content",
      "strong accounts wording detected: invoice"
    ],
    "invoice_matches": [
      {
        "evidence": "subject contained invoice reference 50688",
        "match_text": "Invoice 50688",
        "score": 96,
        "source": "subject",
        "sources": [
          "subject"
        ],
        "value": 50688
      }
    ],
    "medium_keyword_hits": [],
    "score": 84,
    "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>Your report is attached in PDF format.</p><p>To load the report, you will need the free Adobe\u00ae Acrobat\u00ae reader, available to download at http://www.adobe.com/</p>",
  "body_text": "Your report is attached in PDF format.\n\nTo load the report, you will need the free Adobe\u00ae Acrobat\u00ae reader, available to download at http://www.adobe.com/",
  "calls_classification_source": "default",
  "calls_override": null,
  "cc_email": "<accounts@newplas.co.uk>",
  "closed_date": null,
  "contact_email": "mark@newplas.co.uk",
  "contact_id": 1703,
  "contact_is_safe": true,
  "contact_name": "",
  "contact_open_url": "/contacts?open=1703&search=mark%40newplas.co.uk",
  "contact_type": "b2b",
  "display_body_html": "<p>Your report is attached in PDF format.</p><p>To load the report, you will need the free Adobe\u00ae Acrobat\u00ae reader, available to download at http://www.adobe.com/</p>",
  "display_body_invalid_reason": "",
  "display_body_source": "text/html",
  "display_body_text": "Your report is attached in PDF format.\n\nTo load the report, you will need the free Adobe\u00ae Acrobat\u00ae reader, available to download at http://www.adobe.com/",
  "display_body_used_placeholder": false,
  "due_date": null,
  "duplicate_of": null,
  "effective_is_accounts": true,
  "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": "mark@newplas.co.uk",
      "entity_value_raw": "mark@newplas.co.uk",
      "extraction_method": "header_parse",
      "id": 722795,
      "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.9950",
      "entity_type": "email_address",
      "entity_value_normalised": "accounts@newplas.co.uk",
      "entity_value_raw": "accounts@newplas.co.uk",
      "extraction_method": "header_parse",
      "id": 722799,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_address_parse",
      "rule_version": "v1",
      "source_area": "cc_header",
      "source_index": 0,
      "source_subarea": "address"
    },
    {
      "confidence": "0.9400",
      "entity_type": "email_address",
      "entity_value_normalised": "accounts@newplas.co.uk",
      "entity_value_raw": "accounts@newplas.co.uk",
      "extraction_method": "regex",
      "id": 722800,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_email_regex",
      "rule_version": "v1",
      "source_area": "cc_header",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9400",
      "entity_type": "email_address",
      "entity_value_normalised": "mark@newplas.co.uk",
      "entity_value_raw": "mark@newplas.co.uk",
      "extraction_method": "regex",
      "id": 722796,
      "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": 722797,
      "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": 722798,
      "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": "invoice_reference",
      "entity_value_normalised": "50688",
      "entity_value_raw": "50688",
      "extraction_method": "regex",
      "id": 722801,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "invoice_keyword_numeric",
      "rule_version": "v1",
      "source_area": "subject",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9300",
      "entity_type": "url",
      "entity_value_normalised": "http://www.adobe.com/",
      "entity_value_raw": "http://www.adobe.com/",
      "extraction_method": "regex",
      "id": 722802,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "url_regex",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 0,
      "source_subarea": "regex"
    }
  ],
  "extracted_entities_json": {
    "counts": {
      "company_name": 0,
      "date": 0,
      "email_address": 3,
      "invoice_reference": 1,
      "job_reference": 0,
      "money_amount": 0,
      "order_reference": 0,
      "person_name": 0,
      "phone_number": 0,
      "po_reference": 0,
      "postcode": 0,
      "quote_reference": 0,
      "url": 1
    },
    "entities": {
      "company_name": [],
      "date": [],
      "email_address": [
        "mark@newplas.co.uk",
        "accounts@mpcservices.co.uk",
        "accounts@newplas.co.uk"
      ],
      "invoice_reference": [
        "50688"
      ],
      "job_reference": [],
      "money_amount": [],
      "order_reference": [],
      "person_name": [],
      "phone_number": [],
      "po_reference": [],
      "postcode": [],
      "quote_reference": [],
      "url": [
        "http://www.adobe.com/"
      ]
    },
    "last_processed_at": "2026-04-30T15:00:09Z",
    "primary": {
      "email_address": "mark@newplas.co.uk",
      "invoice_reference": "50688",
      "url": "http://www.adobe.com/"
    },
    "version": "v1"
  },
  "from_email": "<mark@newplas.co.uk>",
  "full_message": "Your report is attached in PDF format.\n\nTo load the report, you will need the free Adobe\u00ae Acrobat\u00ae reader, available to download at http://www.adobe.com/",
  "human_notes": null,
  "human_summary": null,
  "human_title": null,
  "id": 71549,
  "in_reply_to": "",
  "internal_classification_source": "default",
  "internal_override": null,
  "is_accounts": true,
  "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": "003e01dcd8b1$fa9df860$efd9e920$@newplas.co.uk",
  "primary_action_case": null,
  "primary_company_href": "/contacts?search=Underground%20Drainage%20Supplies%20Ltd",
  "primary_company_name": "Underground Drainage Supplies Ltd",
  "received_at": "Thu, 30 Apr 2026 14:59:40 GMT",
  "safe_classification_source": "rule",
  "snippet": "Your report is attached in PDF format. To load the report, you will need the free Adobe\u00ae Acrobat\u00ae reader, available to\u2026",
  "source": "Mailcow IMAP",
  "spam_classification_source": "safe_override",
  "status": "new",
  "subject": "Invoice 50688 from Underground Drainage Supplies Ltd",
  "suggested_company": null,
  "suggested_customerid": null,
  "tags": null,
  "to_email": "<accounts@mpcservices.co.uk>",
  "type": "inbound"
}
