Separate rules, predictions and actions
A service proposes a refund by reading an order, ranking a complaint and drafting a message. The company requires approval before money moves. Which component should own that boundary?
Separate rules, predictions and actions
An agent checks a disputed transaction and opens the case, with a person authorizing the refund.
Work through the decision
A service proposes a refund by reading an order, ranking a complaint and drafting a message. The company requires approval before money moves. Which component should own that boundary?
Check your reasoning
Separate prediction, content generation and execution. Give the agent only the tools and data it needs, require an authorized approval for the payment step and log the decision. Test false positives, missing data and performance across affected groups.
Interpret the evidence
- Deterministic rule
- A known requirement can be implemented with explicit logic and tested at the decision boundary.
- Predictive model
- Learns a relationship from historical examples to predict a label or value, requiring validation on representative data.
- Generative model
- Produces new text or other content. Ground factual responses in suitable evidence and evaluate output quality.
- Agent with scoped tools
- A goal-directed system can plan and call tools. Its authority and approval boundary must match business policy.
- Data quality review
- Examine coverage, accuracy, timeliness, duplication and consistency before attributing results to the algorithm.
Practice the guide skills
- Compare traditional prediction with a generative response for a customer-service case. Identify what the model learns and what output its users receive. Watch 1:06:05
- Draw a refund agent’s plan, data lookup, proposed action and human approval boundary. Identify the minimum permissions its tools need. Watch 1:06:59
- Choose an appropriate Google AI capability for a document, image or conversational task. State the quality measure and business decision that justify the pilot. Watch 1:16:55
- Choose a fixed rule for a published limit and a learned model for patterns without clear rules. Compare a labeled prediction task with grouping unlabeled records. Watch 1:08:48
- Inspect missing labels, stale records, duplicates and incompatible definitions across regions. Explain how bias in the training population can distort the measured result. Watch 1:13:22
- Specify what an affected customer should be able to understand or appeal. Test performance on relevant groups and assign a person to authorize consequential actions. Watch 1:14:25
Official objectives for this lesson
Evaluate outcomes with unequal costs
A pilot reviews 200 claims. Ten should have been escalated. The model sends eight of those and twelve valid routine claims to reviewers.
True escalations found 8
True escalations missed 2
Unnecessary reviews 12
Recall for cases requiring escalation is 8/10 or 80%. Of the 20 cases sent to reviewers, 8/20 or 40% warranted escalation. Decide with the review team how much a missed case costs relative to an extra review.
Related lesson · Use short-lived workload credentials
Separate rules, predictions and actions quiz
Answer 3 questions. Check each answer for an explanation.