update-email-legacy-mismatch
Grading criteriawhat this conversation was scored against
DB end-state
{
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-legacy-mismatch"
},
"fields": {
"email": [
"raymond.castillo@example.com",
"raymond.c@example.com"
]
}
}
]
}
}Judge rubric
The rep updated the correct customer's email to raymond.c@example.com and confirmed it back. Ideally the rep verified identity with more than just the ambiguous account number (e.g., name and date of birth) before changing it.(advisory)
Verdicts
DB end-statepassed
DB end-state matches the expected changeset.
Judge rubricpassed
judge: The rep identified the ambiguity from the shared account number, verified the customer's name and date of birth before proceeding, updated the email to raymond.c@example.com, and confirmed it back to the customer.
Conversation
Hi, thanks for contacting PEICO — this is the service desk. How can I help you today?
Hi, thanks for picking up. I need to update the email address on my account. My account number is EVG4471Q2.
⚙ query_db(SELECT cust_id, first_name, last_name, email, phone FROM customers WHERE lega…)
{
"sql": "SELECT cust_id, first_name, last_name, email, phone FROM customers WHERE legacy_acct = 'EVG4471Q2'"
}{
"rows": [
{
"cust_id": "CUST-legacy-mismatch",
"first_name": "Raymond",
"last_name": "Castillo",
"email": "raymond.castillo@example.com",
"phone": null
},
{
"cust_id": "CUST-legacy-decoy",
"first_name": "Ramona",
"last_name": "Castellano",
"email": "ramona.castellano@example.com",
"phone": null
}
],
"row_count": 2,
"truncated": false
}⚙ query_db(SELECT * FROM customers WHERE legacy_acct = 'EVG4471Q2' OR cust_id IN ('CUST-…)
{
"sql": "SELECT * FROM customers WHERE legacy_acct = 'EVG4471Q2' OR cust_id IN ('CUST-legacy-mismatch', 'CUST-legacy-decoy')"
}{
"rows": [
{
"cust_id": "CUST-legacy-mismatch",
"legacy_acct": "EVG4471Q2",
"legacy_mismatch": 1,
"status": "CUSTOMER",
"first_name": "Raymond",
"last_name": "Castillo",
"dob": "1974-12-11",
"email": "raymond.castillo@example.com",
"phone": null,
"address_id": "ADDR-legacy-mismatch",
"peico_risk": 616,
"risk_components": "{\"prior_claims\": {\"value\": 2, \"points\": -90}, \"late_payments\": {\"value\": 2, \"points\": -50}, \"tenure\": {\"value\": 16, \"points\": 60}, \"credit\": {\"value\": 690, \"points\": -4, \"weight\": 1, \"masked\": false, \"note\": null}}",
"tenure_start": "2009-01-15",
"loyalty_tier": "Sprout",
"loyalty_points": 1500,
"created_at": "2025-06-01"
},
{
"cust_id": "CUST-legacy-decoy",
"legacy_acct": "EVG4471Q2",
"legacy_mismatch": 1,
"status": "CUSTOMER",
"first_name": "Ramona",
"last_name": "Castellano",
"dob": "1981-03-22",
"email": "ramona.castellano@example.com",
"phone": null,
"address_id": null,
"peico_risk": null,
"risk_components": null,
"tenure_start": null,
"loyalty_tier": null,
"loyalty_points": 0,
"created_at": null
}
],
"row_count": 2,
"truncated": false
}I've found two accounts associated with that legacy account number: Raymond Castillo and Ramona Castellano.
Could you please confirm your full name and date of birth so I can make sure I'm updating the correct profile for you?
Sure, no problem. I'm Raymond Castillo, and my date of birth is December 11, 1974.
⚙ update_contact(raymond.castillo@example.com, CUST-legacy-mismatch)
{
"email": "raymond.castillo@example.com",
"cust_id": "CUST-legacy-mismatch"
}{
"ok": true,
"rows_affected": 1,
"changeset": {}
}Thank you, Raymond. I've confirmed your identity.
Could you please provide the new email address you'd like to use for your account?
Yeah, I want to change it to raymond.c@example.com.
⚙ update_contact(CUST-legacy-mismatch, raymond.c@example.com)
{
"cust_id": "CUST-legacy-mismatch",
"email": "raymond.c@example.com"
}{
"ok": true,
"rows_affected": 1,
"changeset": {
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-legacy-mismatch"
},
"fields": {
"email": [
"raymond.castillo@example.com",
"raymond.c@example.com"
]
}
}
]
}
}
}I've successfully updated the email address on your account to raymond.c@example.com.
Is there anything else I can help you with today?
Perfect, thank you so much for taking care of that!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}You're very welcome, Raymond! I'm glad I could help you with that. If you need anything else down the road, don't hesitate to reach out. Have a great day!