{
  "accounts_classification_source": "default",
  "accounts_classifier": {
    "confidence": "low",
    "effective": false,
    "evidence": [
      "strong accounts wording detected: invoice"
    ],
    "invoice_matches": [],
    "medium_keyword_hits": [
      "payment"
    ],
    "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>Dear Luke,</p><p>This is a courtesy message to let you know you have a payment of \u00a3900.00 due on 19/06/2026</p><p>Please click here to view and pay your invoice online</p><p>Please click here to view your invoices on your Client Portal</p><p>If you have any questions please don\u2019t hesitate to contact me.</p>",
  "body_text": "Dear Luke,\n\nThis is a courtesy message to let you know you have a payment of \u00a3900.00 due on 19/06/2026\n\nPlease click here to view and pay your invoice online\n\nPlease click here to view your invoices on your Client Portal\n\nIf you have any questions please don\u2019t hesitate to contact me.",
  "calls_classification_source": "default",
  "calls_override": null,
  "cc_email": "lshepherd@haighgroupltd.co.uk",
  "closed_date": null,
  "contact_email": "becky@beckytakes.photos",
  "contact_id": null,
  "contact_is_safe": false,
  "contact_name": "",
  "contact_open_url": null,
  "contact_type": "",
  "display_body_html": "<p>Dear Luke,</p><p>This is a courtesy message to let you know you have a payment of \u00a3900.00 due on 19/06/2026</p><p>Please click here to view and pay your invoice online</p><p>Please click here to view your invoices on your Client Portal</p><p>If you have any questions please don\u2019t hesitate to contact me.</p>",
  "display_body_invalid_reason": "",
  "display_body_source": "text/html",
  "display_body_text": "Dear Luke,\n\nThis is a courtesy message to let you know you have a payment of \u00a3900.00 due on 19/06/2026\n\nPlease click here to view and pay your invoice online\n\nPlease click here to view your invoices on your Client Portal\n\nIf you have any questions please don\u2019t hesitate to contact me.",
  "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.9000",
      "entity_type": "date",
      "entity_value_normalised": "2026-06-19",
      "entity_value_raw": "19/06/2026",
      "extraction_method": "regex_parse",
      "id": 1275232,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "day_slash_month",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9950",
      "entity_type": "email_address",
      "entity_value_normalised": "becky@beckytakes.photos",
      "entity_value_raw": "becky@beckytakes.photos",
      "extraction_method": "header_parse",
      "id": 1275225,
      "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": "lshepherd@haighgroupltd.co.uk",
      "entity_value_raw": "lshepherd@haighgroupltd.co.uk",
      "extraction_method": "header_parse",
      "id": 1275229,
      "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": "lshepherd@haighgroupltd.co.uk",
      "entity_value_raw": "lshepherd@haighgroupltd.co.uk",
      "extraction_method": "regex",
      "id": 1275230,
      "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": "becky@beckytakes.photos",
      "entity_value_raw": "becky@beckytakes.photos",
      "extraction_method": "regex",
      "id": 1275226,
      "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@hec.co.uk",
      "entity_value_raw": "accounts@hec.co.uk",
      "extraction_method": "header_parse",
      "id": 1275227,
      "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@hec.co.uk",
      "entity_value_raw": "accounts@hec.co.uk",
      "extraction_method": "regex",
      "id": 1275228,
      "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.9100",
      "entity_type": "money_amount",
      "entity_value_normalised": "GBP 900.00",
      "entity_value_raw": "\u00a3900.00",
      "extraction_method": "regex",
      "id": 1275231,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "money_amount_regex",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 0,
      "source_subarea": "regex"
    }
  ],
  "extracted_entities_json": {
    "counts": {
      "company_name": 0,
      "date": 1,
      "email_address": 3,
      "invoice_reference": 0,
      "job_reference": 0,
      "money_amount": 1,
      "order_reference": 0,
      "person_name": 0,
      "phone_number": 0,
      "po_reference": 0,
      "postcode": 0,
      "quote_reference": 0,
      "url": 0
    },
    "entities": {
      "company_name": [],
      "date": [
        "2026-06-19"
      ],
      "email_address": [
        "becky@beckytakes.photos",
        "accounts@hec.co.uk",
        "lshepherd@haighgroupltd.co.uk"
      ],
      "invoice_reference": [],
      "job_reference": [],
      "money_amount": [
        "GBP 900.00"
      ],
      "order_reference": [],
      "person_name": [],
      "phone_number": [],
      "po_reference": [],
      "postcode": [],
      "quote_reference": [],
      "url": []
    },
    "last_processed_at": "2026-06-18T15:46:04Z",
    "primary": {
      "date": "2026-06-19",
      "email_address": "becky@beckytakes.photos",
      "money_amount": "GBP 900.00"
    },
    "version": "v1"
  },
  "from_email": "\"becky@beckytakes.photos\" <becky@beckytakes.photos>",
  "full_message": "Dear Luke,\n\nThis is a courtesy message to let you know you have a payment of \u00a3900.00 due on 19/06/2026\n\nPlease click here to view and pay your invoice online\n\nPlease click here to view your invoices on your Client Portal\n\nIf you have any questions please don\u2019t hesitate to contact me.",
  "human_notes": null,
  "human_summary": null,
  "human_title": null,
  "id": 107428,
  "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": "sn.aakumEPRi3Cyn3fJ21BwrGZC84Rc8ogHnr0YdHWq45U@beckytakes.photos",
  "primary_action_case": null,
  "primary_company_href": "",
  "primary_company_name": "",
  "received_at": "Thu, 18 Jun 2026 15:45:33 GMT",
  "safe_classification_source": "rule",
  "snippet": "Dear Luke, This is a courtesy message to let you know you have a payment of \u00a3900.00 due on 19/06/2026 Please click here\u2026",
  "source": "Mailcow IMAP",
  "spam_classification_source": "safe_override",
  "status": "new",
  "subject": "Invoice, Haigh headshots, site photography and Rowing club Event",
  "suggested_company": null,
  "suggested_customerid": null,
  "tags": null,
  "to_email": "accounts@hec.co.uk",
  "type": "inbound"
}
