update-contact-email
Grading criteriawhat this conversation was scored against
DB end-state
{
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-heritage-auto"
},
"fields": {
"email": [
"walter.pennington@example.com",
"walter.p@example.com"
]
}
}
]
}
}Judge rubric
The rep confirmed back to the customer that the email address was successfully updated to the new address (walter.p@example.com).(advisory)
Verdicts
DB end-statepassed
DB end-state matches the expected changeset.
Judge rubricpassed
judge: The rep explicitly confirmed the email was updated from the old address to walter.p@example.com.
Conversation
Hi, thanks for contacting PEICO — this is the service desk. How can I help you today?
Hi there! Thanks for picking up. I need to update the email address on my account. I'm cleaning up my inbox and want to switch it over to a new one. Can you help me with that?
Absolutely — I can help update the email address.
To protect your account, I’ll need to verify you first. Please provide:
- Your full name
- Date of birth
- One of the following: policy number, legacy account number, phone number on file, or current mailing ZIP code
- The new email address you want to use
Once I locate and verify the account, I’ll update only the email address.
Sure, I understand. My name is Walter Pennington. My date of birth is November 2, 1957. My account number is EVG0098H1, and the new email I want is walter.p@example.com. Does that get you what you need?
⚙ query_db(SELECT c.cust_id, c.legacy_acct, c.status, c.first_name, c.last_name, c.dob, …)
{
"sql": "SELECT c.cust_id, c.legacy_acct, c.status, c.first_name, c.last_name, c.dob, c.email, c.phone, a.zip, a.state FROM customers c LEFT JOIN addresses a ON c.address_id = a.address_id WHERE c.legacy_acct = 'EVG0098H1' AND c.first_name = 'Walter' AND c.last_name = 'Pennington'"
}{
"rows": [
{
"cust_id": "CUST-heritage-auto",
"legacy_acct": "EVG0098H1",
"status": "CUSTOMER",
"first_name": "Walter",
"last_name": "Pennington",
"dob": "1957-11-02",
"email": "walter.pennington@example.com",
"phone": null,
"zip": "43215",
"state": "OH"
}
],
"row_count": 1,
"truncated": false
}⚙ update_contact(CUST-heritage-auto, walter.p@example.com)
{
"cust_id": "CUST-heritage-auto",
"email": "walter.p@example.com"
}{
"ok": true,
"rows_affected": 1,
"changeset": {
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-heritage-auto"
},
"fields": {
"email": [
"walter.pennington@example.com",
"walter.p@example.com"
]
}
}
]
}
}
}Thanks, Walter — I verified your account.
I’ve updated the email address on your PEICO account from walter.pennington@example.com to walter.p@example.com.
Perfect! That's exactly what I needed. Thank you so much for taking care of that for me. I appreciate the help!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}You’re very welcome, Walter. Thanks for contacting PEICO — have a great day!