update-contact-email
Grading criteriawhat this conversation was scored against
DB end-state
{
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-heritage-auto"
},
"fields": {
"email": [
"walter.pennington@example.com",
"walter.p@example.com"
]
}
}
]
}
}Judge rubric
The rep confirmed back to the customer that the email address was successfully updated to the new address (walter.p@example.com).(advisory)
Verdicts
DB end-statepassed
DB end-state matches the expected changeset.
Judge rubricpassed
judge: The rep explicitly confirmed the email was updated to walter.p@example.com, matching the rubric requirement.
Conversation
Hi, thanks for contacting PEICO — this is the service desk. How can I help you today?
Hi there! Thanks for picking up. I need to update the email address on my auto insurance account. I've got a new one I'd like to use instead.
I can help with that. Could you give me your name or customer ID (or your policy number), plus your date of birth to verify your identity, and the new email address you'd like on file?
Sure thing. My name is Walter Pennington, and my policy number is EVG0098H1. My date of birth is November 2, 1957. And the new email I want is walter.p@example.com.
⚙ query_db(SELECT c.cust_id, c.first_name, c.last_name, c.dob, c.email, c.phone, p.polic…)
{
"sql": "SELECT c.cust_id, c.first_name, c.last_name, c.dob, c.email, c.phone, p.policy_id, p.line FROM customers c JOIN policies p ON p.cust_id = c.cust_id WHERE p.policy_id = 'EVG0098H1' OR c.legacy_acct = 'EVG0098H1'"
}{
"rows": [
{
"cust_id": "CUST-heritage-auto",
"first_name": "Walter",
"last_name": "Pennington",
"dob": "1957-11-02",
"email": "walter.pennington@example.com",
"phone": null,
"policy_id": "POL-heritage-auto-p_auto",
"line": "AUTO"
}
],
"row_count": 1,
"truncated": false
}⚙ update_contact(CUST-heritage-auto, walter.p@example.com)
{
"cust_id": "CUST-heritage-auto",
"email": "walter.p@example.com"
}{
"ok": true,
"rows_affected": 1,
"changeset": {
"customers": {
"changed": [
{
"pk": {
"cust_id": "CUST-heritage-auto"
},
"fields": {
"email": [
"walter.pennington@example.com",
"walter.p@example.com"
]
}
}
]
}
}
}Your email has been updated to walter.p@example.com. Is there anything else I can help you with?
No, that's all I needed. Thanks so much for your help!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}Take care!