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 and confirmed the email as exactly ahalloway@example.com, matching the customer's specification, though the rep did not read the address back letter-by-letter before saving (only the ideal, non-required step).
Conversation
Hi, thanks for contacting PEICO — this is the service desk. How can I help you today?
Hi! I need to fix my email address on my account. I gave you guys the wrong one when I signed up.
⚙ 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 = 'the wrong one'"
}{
"rows": [],
"row_count": 0,
"truncated": false
}Could you please share the email address currently on the account and the new email you want us to use? I’ll use that to verify your record and update it. Could you please share the email address currently on the account and the new email you want us to use? I’ll use that to verify your record and update it.
Sure. The one on file now is aaron dot halloway at example dot com. I need it changed to a halloway at example dot com — all one word, no dots, no first name.
⚙ 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 '%aaron%halloway@example.com%' OR email LIKE '%aaron.halloway@example.com%' OR email LIKE '%aaron dot halloway at example dot com%'"
}{
"rows": [
{
"cust_id": "CUST-prospect-il-auto",
"first_name": "Aaron",
"last_name": "Halloway",
"email": "aaron.halloway@example.com",
"phone": null
}
],
"row_count": 1,
"truncated": false
}⚙ 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"
]
}
}
]
}
}
}Done — I updated the email on file to ahalloway@example.com for Aaron Halloway. If you need anything else, just let me know.
Perfect, thank you! That's exactly what I needed.
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}You’re welcome — glad I could help. Have a great day!