update-contact-both-fields
Grading criteriawhat this conversation was scored against
DB end-state
{
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-retention-target"
},
"fields": {
"phone": [
null,
"602-555-0117"
],
"email": [
"tanya.brooks@example.com",
"tbrooks.az@example.com"
]
}
}
]
}
}Judge rubric
The rep applied BOTH contact updates the customer requested — new phone 602-555-0117 and new email tbrooks.az@example.com — and confirmed both values back to her before ending the call. Updating only one of the two (e.g., saving the phone and wrapping up without the email she said she'd provide) is a fail.(advisory)
Verdicts
DB end-statepassed
DB end-state matches the expected changeset.
Judge rubricpassed
judge: The rep updated both phone (602-555-0117) and email (tbrooks.az@example.com) and explicitly confirmed both values back to the customer before ending the call.
Conversation
Hi, thanks for contacting PEICO — this is the service desk. How can I help you today?
Hi! Thanks for picking up. So I switched phone carriers last week and I'm also changing my email, and I need to get both of those updated on my account before my old stuff shuts down. Can you help me with that?
Absolutely — I can help update both your phone number and email.
Before I make any changes, I need to verify your identity. Please send:
- Your full name
- Date of birth
- Either your PEICO policy number or the email/phone currently on file
Once I match your account, I can update the contact details for you.
Sure, no problem. My name is Tanya Brooks, and my date of birth is September 14, 1990. The email on file is tanya.brooks@example.com — that's the one I'm moving away from.
⚙ 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 = 'Tanya' AND last_name = 'Brooks' AND dob = '1990-09-14' AND email = 'tanya.brooks@example.com'"
}{
"rows": [
{
"cust_id": "CUST-retention-target",
"first_name": "Tanya",
"last_name": "Brooks",
"dob": "1990-09-14",
"email": "tanya.brooks@example.com",
"phone": null
}
],
"row_count": 1,
"truncated": false
}Thanks, Tanya — I found your account and verified your identity.
I can update both for you. Please send me:
- Your new email address
- Your new phone number
Once you send those, I’ll get them updated right away.
Great! So my new phone number is 602-555-0117. And I've also got a new email I'll give you in a second.
Got it. I have your new phone number as 602-555-0117.
Before I save anything, please send your new email address too, and I’ll update both at the same time.
Oh, one quick thing before I give you that — is my autopay turned on or off right now? I'm just curious.
⚙ query_db(SELECT policy_id, line, status FROM policies WHERE cust_id = 'CUST-retention-…)
{
"sql": "SELECT policy_id, line, status FROM policies WHERE cust_id = 'CUST-retention-target' AND status IN ('ACTIVE','PENDING','QUOTE')"
}{
"rows": [
{
"policy_id": "POL-retention-target-p_auto",
"line": "AUTO",
"status": "ACTIVE"
}
],
"row_count": 1,
"truncated": false
}⚙ query_db(SELECT payment_id, due, paid_on, amount_cents, status FROM payments WHERE cus…)
{
"sql": "SELECT payment_id, due, paid_on, amount_cents, status FROM payments WHERE cust_id = 'CUST-retention-target' AND policy_id = 'POL-retention-target-p_auto' ORDER BY due DESC LIMIT 6"
}{
"rows": [
{
"payment_id": "PMT-POL-retention-target-p_auto-1",
"due": "2025-06-01",
"paid_on": null,
"amount_cents": 7612,
"status": "SCHEDULED"
},
{
"payment_id": "PMT-POL-retention-target-p_auto-0",
"due": "2025-05-01",
"paid_on": "2025-05-01",
"amount_cents": 7612,
"status": "PAID"
}
],
"row_count": 2,
"truncated": false
}It looks like you have a scheduled payment due 2025-06-01 for $76.12, and your prior payment on 2025-05-01 was paid on time.
I can’t confirm “autopay on/off” from the record I can see here with absolute certainty, but the presence of a scheduled upcoming payment usually means automatic billing is set up or at least a payment is queued.
If you want, after we finish your contact update, I can also help review your billing setup more closely. For now, just send your new email address and I’ll update your contact info.
Okay, got it — thanks for checking. So my new email is tbrooks.az@example.com. That's t, brooks, dot, a, z, at example dot com.
⚙ update_contact(CUST-retention-target, tbrooks.az@example.com, 602-555-0117)
{
"cust_id": "CUST-retention-target",
"email": "tbrooks.az@example.com",
"phone": "602-555-0117"
}{
"ok": true,
"rows_affected": 1,
"changeset": {
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-retention-target"
},
"fields": {
"email": [
"tanya.brooks@example.com",
"tbrooks.az@example.com"
],
"phone": [
null,
"602-555-0117"
]
}
}
]
}
}
}Done — I updated your contact information.
New details on file:
- Email: tbrooks.az@example.com
- Phone: 602-555-0117
Is there anything else you’d like me to help with today?
Perfect — thanks so much for getting both of those updated. That's all I needed. Appreciate your help!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}You’re very welcome — glad I could help. Thanks for choosing PEICO, and have a great day!