update-email-dictation-readback
Grading criteriawhat this conversation was scored against
DB end-state
{
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-prospect-il-auto"
},
"fields": {
"email": [
"aaron.halloway@example.com",
"ahalloway@example.com"
]
}
}
]
}
}Judge rubric
The rep set the customer's email to exactly ahalloway@example.com and confirmed it. Ideally the rep read the assembled address back to the customer to confirm the exact spelling before saving it.(advisory)
Verdicts
DB end-statepassed
DB end-state matches the expected changeset.
Judge rubricpassed
judge: The rep set the email to exactly ahalloway@example.com and confirmed it, though the rep did not read the assembled address back to the customer for spelling confirmation before saving (only ideal, not required).
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 get my email address corrected in your system. I gave you the wrong one when I signed up.
Of course! I can certainly help you correct your email address.
To get started, could you please provide your full name and either your policy number, customer ID, or the phone number associated with your account so I can look you up?
Sure. My name is Aaron Halloway. I don't have my policy number handy, but my date of birth is August 4, 1992 if that helps you find me.
⚙ 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 last_name = 'Halloway' AND first_name = 'Aaron'"
}{
"rows": [
{
"cust_id": "CUST-prospect-il-auto",
"first_name": "Aaron",
"last_name": "Halloway",
"dob": "1992-08-04",
"email": "aaron.halloway@example.com",
"phone": null
}
],
"row_count": 1,
"truncated": false
}I found your account under Aaron Halloway with your date of birth.
I currently have your email address listed as aaron.halloway@example.com. What is the correct email address you would like me to update it to?
Yeah, that's the wrong one. The correct email is a halloway at example dot com — all one word, no dots, no first name.
⚙ update_contact(CUST-prospect-il-auto, ahalloway@example.com)
{
"cust_id": "CUST-prospect-il-auto",
"email": "ahalloway@example.com"
}{
"ok": true,
"rows_affected": 1,
"changeset": {
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-prospect-il-auto"
},
"fields": {
"email": [
"aaron.halloway@example.com",
"ahalloway@example.com"
]
}
}
]
}
}
}⚙ query_db(SELECT policy_id, line, status, base_premium_cents, final_premium_cents FROM …)
{
"sql": "SELECT policy_id, line, status, base_premium_cents, final_premium_cents FROM policies WHERE cust_id = 'CUST-prospect-il-auto'"
}{
"rows": [],
"row_count": 0,
"truncated": false
}⚙ query_db(SELECT * FROM legacy_policies WHERE cust_id = 'CUST-prospect-il-auto')
{
"sql": "SELECT * FROM legacy_policies WHERE cust_id = 'CUST-prospect-il-auto'"
}{
"rows": [],
"row_count": 0,
"truncated": false
}⚙ query_db(SELECT * FROM vehicles WHERE cust_id = 'CUST-prospect-il-auto')
{
"sql": "SELECT * FROM vehicles WHERE cust_id = 'CUST-prospect-il-auto'"
}{
"rows": [
{
"vehicle_id": "VEH-prospect-il-auto-v1",
"cust_id": "CUST-prospect-il-auto",
"year": 2019,
"make": "Honda",
"model": "Civic",
"vin": "VINFAKEPROv1",
"usage": "COMMUTE",
"annual_miles": 14000,
"financed": 1,
"garaging_address_id": "ADDR-prospect-il-auto"
}
],
"row_count": 1,
"truncated": false
}⚙ query_db(SELECT cust_id, first_name, last_name, email, phone FROM customers WHERE last…)
{
"sql": "SELECT cust_id, first_name, last_name, email, phone FROM customers WHERE last_name = 'Halloway'"
}{
"rows": [
{
"cust_id": "CUST-prospect-il-auto",
"first_name": "Aaron",
"last_name": "Halloway",
"email": "ahalloway@example.com",
"phone": null
}
],
"row_count": 1,
"truncated": false
}I have successfully updated your email address to ahalloway@example.com!
Is there anything else I can help you with today? For example, I noticed you have a 2019 Honda Civic registered under your account, but don't have an active policy with us yet. Are you looking to set up a quote or do you have any other questions?
Perfect, thanks for getting that fixed. No, I'm all set for now. Thanks for your help!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}You're very welcome! If you ever need help with a quote for that Civic or anything else in the future, just let us know. Have a wonderful day!