update-email-mid-call-correction
Grading criteriawhat this conversation was scored against
DB end-state
{
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-umbrella-plus"
},
"fields": {
"email": [
"vincent.okonkwo@example.com",
"vokonkwo@peachmail.example.com"
]
}
}
]
}
}Judge rubric
After the customer corrected his initially-given email mid-call, the rep applied the correction so the final address on file is exactly vokonkwo@peachmail.example.com (no dot), and confirmed the final value with him. Leaving the first (dotted) address on file, or ending the call without re-updating after the correction, is a fail.(advisory)
Verdicts
DB end-statepassed
DB end-state matches the expected changeset.
Judge rubricpassed
judge: The rep applied the correction after the customer's fix, updating the email to the no-dot version and confirming it matched the customer's stated correct address.
Conversation
Hi, thanks for contacting PEICO — this is the service desk. How can I help you today?
Hey, thanks for picking up. I need to update the email address on my PEICO account. I'm switching over to a new personal email and want to make sure everything goes there instead.
Absolutely—I can help update that.
To make the change, please reply with:
- Your PEICO account’s legacy account number (or the policy ID), and
- The new email address you want to switch to.
Once I verify your account, I’ll update the email.
Sure, I can give you that. My name is Vincent Okonkwo in Atlanta. The new email is v.okonkwo@peachmail.example.com. As for the account number, I don't have that handy right now — but you should be able to look me up by name and address if that helps.
⚙ query_db(SELECT cust_id, legacy_acct, first_name, last_name, email, phone, address_id,…)
{
"sql": "SELECT cust_id, legacy_acct, first_name, last_name, email, phone, address_id, addresses.line1, addresses.city, addresses.state, addresses.zip\nFROM customers\nJOIN addresses ON addresses.address_id = customers.address_id\nWHERE first_name LIKE 'Vincent%' AND last_name LIKE 'Okonkwo%' AND addresses.city LIKE 'Atlanta%' \nLIMIT 5"
}{
"error": "sql_error",
"detail": "ambiguous column name: address_id"
}⚙ query_db(SELECT customers.cust_id, customers.legacy_acct, customers.first_name, custom…)
{
"sql": "SELECT customers.cust_id, customers.legacy_acct, customers.first_name, customers.last_name, customers.email, customers.phone,\n customers.address_id, addresses.line1, addresses.city, addresses.state, addresses.zip\nFROM customers\nJOIN addresses ON addresses.address_id = customers.address_id\nWHERE customers.first_name LIKE 'Vincent%' AND customers.last_name LIKE 'Okonkwo%' AND addresses.city LIKE 'Atlanta%' \nLIMIT 5"
}{
"rows": [
{
"cust_id": "CUST-umbrella-plus",
"legacy_acct": null,
"first_name": "Vincent",
"last_name": "Okonkwo",
"email": "vincent.okonkwo@example.com",
"phone": null,
"address_id": "ADDR-umbrella-plus",
"line1": "88 Peachtree Cir",
"city": "Atlanta",
"state": "GA",
"zip": "30303"
}
],
"row_count": 1,
"truncated": false
}⚙ update_contact(CUST-umbrella-plus, v.okonkwo@peachmail.example.com)
{
"cust_id": "CUST-umbrella-plus",
"email": "v.okonkwo@peachmail.example.com"
}{
"ok": true,
"rows_affected": 1,
"changeset": {
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-umbrella-plus"
},
"fields": {
"email": [
"vincent.okonkwo@example.com",
"v.okonkwo@peachmail.example.com"
]
}
}
]
}
}
}Done — I updated your PEICO account email for Vincent Okonkwo (Atlanta, GA) to:
v.okonkwo@peachmail.example.com
If you’d like, I can also help update your phone number (optional).
Ah wait — sorry, I pasted the wrong one. I retired the dotted one. It should be vokonkwo@peachmail.example.com, no dot between the v and the okonkwo.
⚙ update_contact(CUST-umbrella-plus, vokonkwo@peachmail.example.com)
{
"cust_id": "CUST-umbrella-plus",
"email": "vokonkwo@peachmail.example.com"
}{
"ok": true,
"rows_affected": 1,
"changeset": {
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-umbrella-plus"
},
"fields": {
"email": [
"v.okonkwo@peachmail.example.com",
"vokonkwo@peachmail.example.com"
]
}
}
]
}
}
}Got it—updated your PEICO account email to:
Perfect, that's it — vokonkwo@peachmail.example.com, no dot. That's the one I need on file. Thanks for catching that and getting it corrected.
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}You’re all set—thanks for confirming. If you need anything else from PEICO, just reach out.