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 confirmed the final email as vokonkwo@peachmail.example.com (no dot), which the customer verified 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 moving away from my work email and want to switch to a personal one.
I can help with that. First, I need to verify your identity. Could you please give me your full name and either your date of birth or the phone number on file?
Sure. My name is Vincent Okonkwo. My date of birth is October 8, 1976.
⚙ query_db(SELECT cust_id, first_name, last_name, dob, email, phone FROM customers WHERE…)
{
"sql": "SELECT cust_id, first_name, last_name, dob, email, phone FROM customers WHERE first_name LIKE 'Vincent' AND last_name LIKE 'Okonkwo'"
}{
"rows": [
{
"cust_id": "CUST-umbrella-plus",
"first_name": "Vincent",
"last_name": "Okonkwo",
"dob": "1976-10-08",
"email": "vincent.okonkwo@example.com",
"phone": null
}
],
"row_count": 1,
"truncated": false
}Thanks, Vincent — that matches our records, so you're verified.
What's the new personal email address you'd like on the account?
Great. It's v.okonkwo@peachmail.example.com
⚙ 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 — your email is now v.okonkwo@peachmail.example.com. Is there anything else I can help you with?
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"
]
}
}
]
}
}
}Fixed — your email is now vokonkwo@peachmail.example.com (no dot). Anything else I can help with?
Perfect, that's exactly right. No, that's all I needed. Thanks for your help!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}Thanks for choosing PEICO — have a great day!