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 verified identity using full name and date of birth (beyond just the ambiguous account number) to disambiguate the correct record, then updated and confirmed the email to raymond.c@example.com.
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, legacy_acct, first_name, last_name, email, phone, status FROM…)
{
"sql": "SELECT cust_id, legacy_acct, first_name, last_name, email, phone, status FROM customers WHERE legacy_acct = 'EVG4471Q2'"
}{
"rows": [
{
"cust_id": "CUST-legacy-mismatch",
"legacy_acct": "EVG4471Q2",
"first_name": "Raymond",
"last_name": "Castillo",
"email": "raymond.castillo@example.com",
"phone": null,
"status": "CUSTOMER"
},
{
"cust_id": "CUST-legacy-decoy",
"legacy_acct": "EVG4471Q2",
"first_name": "Ramona",
"last_name": "Castellano",
"email": "ramona.castellano@example.com",
"phone": null,
"status": "CUSTOMER"
}
],
"row_count": 2,
"truncated": false
}I found that account number, but I need to verify your identity before making any changes — and it turns out this legacy account number is actually associated with more than one record in our system, so I want to make sure I'm working with the right one.
Could you please confirm:
- Your full name
- Your date of birth
Sure, I understand. My name is Raymond Castillo, and my date of birth is December 11, 1974.
⚙ query_db(SELECT cust_id, first_name, last_name, dob, email, legacy_mismatch FROM custo…)
{
"sql": "SELECT cust_id, first_name, last_name, dob, email, legacy_mismatch FROM customers WHERE cust_id IN ('CUST-legacy-mismatch','CUST-legacy-decoy')"
}{
"rows": [
{
"cust_id": "CUST-legacy-decoy",
"first_name": "Ramona",
"last_name": "Castellano",
"dob": "1981-03-22",
"email": "ramona.castellano@example.com",
"legacy_mismatch": 1
},
{
"cust_id": "CUST-legacy-mismatch",
"first_name": "Raymond",
"last_name": "Castillo",
"dob": "1974-12-11",
"email": "raymond.castillo@example.com",
"legacy_mismatch": 1
}
],
"row_count": 2,
"truncated": false
}Thanks, Raymond — your name and date of birth match our records, so you're verified. I can see your current email on file is raymond.castillo@example.com.
What would you like your new email address to be?
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"
]
}
}
]
}
}
}Done! Your email address has been updated from raymond.castillo@example.com to raymond.c@example.com.
Is there anything else I can help you with today?
No, that's all I needed. Thanks for your help!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}Thanks again for contacting PEICO — take care!