update-phone-dictation
Grading criteriawhat this conversation was scored against
DB end-state
{
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-se-auto-pref"
},
"fields": {
"phone": [
null,
"912-555-0143"
]
}
}
]
}
}Judge rubric
The rep saved the customer's phone number exactly as given — 912-555-0143, hyphenated — after verifying his identity, and ideally read the number back to confirm before saving. Saving a reformatted variant is a fail of the exact request.(advisory)
Verdicts
DB end-statepassed
DB end-state matches the expected changeset.
Judge rubricpassed
judge: The rep verified identity via email and address, then stated the number was saved as 912-555-0143 exactly as given; though not read back before saving, the rubric only says 'ideally' for read-back, so the core requirement is satisfied.
Conversation
Hi, thanks for contacting PEICO — this is the service desk. How can I help you today?
Hey, thanks for picking up. I just noticed you guys don't have a phone number on file for me, and I'd like to get my mobile added to my account.
⚙ query_db(SELECT cust_id FROM customers WHERE first_name || ' ' || last_name = 'Customer')
{
"sql": "SELECT cust_id FROM customers WHERE first_name || ' ' || last_name = 'Customer'"
}{
"rows": [],
"row_count": 0,
"truncated": false
}⚙ query_db(SELECT cust_id, first_name, last_name FROM customers LIMIT 10)
{
"sql": "SELECT cust_id, first_name, last_name FROM customers LIMIT 10"
}{
"rows": [
{
"cust_id": "CUST-prospect-il-auto",
"first_name": "Aaron",
"last_name": "Halloway"
},
{
"cust_id": "CUST-nest-household",
"first_name": "Marisol",
"last_name": "Trujillo"
},
{
"cust_id": "CUST-heritage-auto",
"first_name": "Walter",
"last_name": "Pennington"
},
{
"cust_id": "CUST-ca-masked-auto",
"first_name": "Priya",
"last_name": "Anand"
},
{
"cust_id": "CUST-fl-coastal-home",
"first_name": "Gloria",
"last_name": "Esposito"
},
{
"cust_id": "CUST-legacy-mismatch",
"first_name": "Raymond",
"last_name": "Castillo"
},
{
"cust_id": "CUST-ne-auto-pref",
"first_name": "Eleanor",
"last_name": "Whitfield"
},
{
"cust_id": "CUST-se-auto-pref",
"first_name": "Travis",
"last_name": "Boudreaux"
},
{
"cust_id": "CUST-legacy-unmigrated-auto",
"first_name": "Doris",
"last_name": "Maddox"
},
{
"cust_id": "CUST-life-suitable",
"first_name": "Eleanor",
"last_name": "Whitmore"
}
],
"row_count": 10,
"truncated": false
}I'd be happy to help you with that. To make sure I update the correct account, could you please provide your name and your legacy account number?
It's Travis Boudreaux. I don't have my account number handy right now — would my email or address work to verify instead?
⚙ query_db(SELECT email, address_id FROM customers WHERE first_name = 'Travis' AND last_…)
{
"sql": "SELECT email, address_id FROM customers WHERE first_name = 'Travis' AND last_name = 'Boudreaux'"
}{
"rows": [
{
"email": "travis.boudreaux@example.com",
"address_id": "ADDR-se-auto-pref"
}
],
"row_count": 1,
"truncated": false
}⚙ query_db(SELECT line1, city, state, zip FROM addresses WHERE address_id = 'ADDR-se-aut…)
{
"sql": "SELECT line1, city, state, zip FROM addresses WHERE address_id = 'ADDR-se-auto-pref'"
}{
"rows": [
{
"line1": "210 Magnolia Ave",
"city": "Savannah",
"state": "GA",
"zip": "31401"
}
],
"row_count": 1,
"truncated": false
}Yes, that works perfectly. For verification, could you confirm the email address and home address we have on file for you?
Sure. It's travis.boudreaux@example.com, and my address is 210 Magnolia Ave, Savannah, GA 31401.
⚙ query_db(SELECT cust_id FROM customers WHERE first_name = 'Travis' AND last_name = 'Bo…)
{
"sql": "SELECT cust_id FROM customers WHERE first_name = 'Travis' AND last_name = 'Boudreaux' AND email = 'travis.boudreaux@example.com' AND address_id = (SELECT address_id FROM addresses WHERE line1 = '210 Magnolia Ave' AND city = 'Savannah' AND state = 'GA' AND zip = '31401')"
}{
"rows": [
{
"cust_id": "CUST-se-auto-pref"
}
],
"row_count": 1,
"truncated": false
}Thank you for confirming. I've successfully verified your account.
What is the mobile phone number you'd like me to add to your record?
It's 912-555-0143 — please save it exactly like that, dashes and all. My last insurance company reformatted it and I never got their calls.
⚙ update_contact(CUST-se-auto-pref, 912-555-0143)
{
"cust_id": "CUST-se-auto-pref",
"phone": "912-555-0143"
}{
"ok": true,
"rows_affected": 1,
"changeset": {
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-se-auto-pref"
},
"fields": {
"phone": [
null,
"912-555-0143"
]
}
}
]
}
}
}I've updated your phone number to 912-555-0143 in our system for you.
Is there anything else I can help you with today?
No, that's all I needed. Thanks for taking care of that for me!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}You're very welcome, Travis! I'm glad I could get that squared away for you. Thanks for choosing PEICO, and have a great day!