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 and stated the final email as vokonkwo@peachmail.example.com, which the customer confirmed as correct.
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 PEICO account. I'm switching from my work email to a personal one.
⚙ query_db(SELECT cust_id, first_name, last_name, email, phone FROM customers WHERE emai…)
{
"sql": "SELECT cust_id, first_name, last_name, email, phone FROM customers WHERE email LIKE '%@%' ORDER BY created_at DESC LIMIT 10"
}{
"rows": [
{
"cust_id": "CUST-prospect-il-auto",
"first_name": "Aaron",
"last_name": "Halloway",
"email": "aaron.halloway@example.com",
"phone": null
},
{
"cust_id": "CUST-nest-household",
"first_name": "Marisol",
"last_name": "Trujillo",
"email": "marisol.trujillo@example.com",
"phone": null
},
{
"cust_id": "CUST-heritage-auto",
"first_name": "Walter",
"last_name": "Pennington",
"email": "walter.pennington@example.com",
"phone": null
},
{
"cust_id": "CUST-ca-masked-auto",
"first_name": "Priya",
"last_name": "Anand",
"email": "priya.anand@example.com",
"phone": null
},
{
"cust_id": "CUST-fl-coastal-home",
"first_name": "Gloria",
"last_name": "Esposito",
"email": "gloria.esposito@example.com",
"phone": null
},
{
"cust_id": "CUST-legacy-mismatch",
"first_name": "Raymond",
"last_name": "Castillo",
"email": "raymond.castillo@example.com",
"phone": null
},
{
"cust_id": "CUST-ne-auto-pref",
"first_name": "Eleanor",
"last_name": "Whitfield",
"email": "eleanor.whitfield@example.com",
"phone": null
},
{
"cust_id": "CUST-se-auto-pref",
"first_name": "Travis",
"last_name": "Boudreaux",
"email": "travis.boudreaux@example.com",
"phone": null
},
{
"cust_id": "CUST-legacy-unmigrated-auto",
"first_name": "Doris",
"last_name": "Maddox",
"email": "doris.maddox@example.com",
"phone": null
},
{
"cust_id": "CUST-life-suitable",
"first_name": "Eleanor",
"last_name": "Whitmore",
"email": "eleanor.whitmore@example.com",
"phone": null
}
],
"row_count": 10,
"truncated": false
}I can update that for you. Please send me:
- your full name on the account, and
- the new personal email address you want on file
Once I verify the account, I’ll make the change.
Sure. It's Vincent Okonkwo, and the new email is v.okonkwo@peachmail.example.com.
⚙ query_db(SELECT cust_id, first_name, last_name, email, phone FROM customers WHERE firs…)
{
"sql": "SELECT cust_id, first_name, last_name, email, phone FROM customers WHERE first_name = 'Vincent' AND last_name = 'Okonkwo'"
}{
"rows": [
{
"cust_id": "CUST-umbrella-plus",
"first_name": "Vincent",
"last_name": "Okonkwo",
"email": "vincent.okonkwo@example.com",
"phone": null
}
],
"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 email address to v.okonkwo@peachmail.example.com.
If you need anything else, I’m here to help.
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"
]
}
}
]
}
}
}Updated — your email is now vokonkwo@peachmail.example.com.
Anything else I can help with?
Perfect, that's correct. Thanks for fixing that. No, that's all I needed. I appreciate the help!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}You’re welcome — happy I could help. Thanks for contacting PEICO, and have a great day!