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 corrected the email to vokonkwo@peachmail.example.com after the customer's correction and confirmed it, matching the required final state.
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 new personal address.
I'd be happy to help you update your email. First, I need to verify your identity and locate your account.
Could you please share your full name along with one of the following so I can find your record: your PEICO customer ID, the email currently on file, or the phone number on your account?
Sure. My name is Vincent Okonkwo. The email currently on file is vincent.okonkwo@example.com.
⚙ query_db(SELECT cust_id, first_name, last_name, email, phone, status FROM customers WH…)
{
"sql": "SELECT cust_id, first_name, last_name, email, phone, status FROM customers WHERE email = 'vincent.okonkwo@example.com'"
}{
"rows": [
{
"cust_id": "CUST-umbrella-plus",
"first_name": "Vincent",
"last_name": "Okonkwo",
"email": "vincent.okonkwo@example.com",
"phone": null,
"status": "CUSTOMER"
}
],
"row_count": 1,
"truncated": false
}Thanks, Vincent — I found your account and your name matches our records.
What's the new personal email address you'd like on file?
It's v.okonkwo@peachmail.example.com — that's v, then a dot, then okonkwo at peachmail dot example dot 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 updated to 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. Can you fix that for me?
⚙ 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"
]
}
}
]
}
}
}All set — your email is now vokonkwo@peachmail.example.com (no dot). Anything else I can help with?
Perfect, that's correct. Thanks for catching that and getting it sorted. That's all I needed today. Thanks again!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}Have a great day!