Agent Application DevelopmentAccount
Knowledge catalogChoose core direction and segmented content
knowledge unit 56AdvancedSystem designAbout 18 minutes

Understand → Implement → Debug → Design

Separate natural-language requests from transaction state

Examine intent understanding, business rules, authorization and traceable execution.

Customer ServiceAgentbusiness rulesRefund

Knowledge content check2026-10-03 · Check the source of the original question2026-10-02

Which step do you want to learn from this knowledge point?

Select the starting point based on the current basis, or you can go deeper one by one. When you encounter an unfamiliar concept, go back to the core principles first; use the knowledge exercises to check your understanding when you are finished.

Understand first

New to this knowledge point

Complete the prerequisite concepts, read the principles and counterexamples, and then explain why in your own words.

Start with core principles →

Realize again

Prepare to write the principles into code

Understand implementation steps and boundaries, complete small tasks, and check results against acceptance requirements.

Reading implementation and trade-offs →

Will troubleshoot

Need to handle failures and changes in conditions

Follow the continuous questioning to locate the failure premise, and then compare the migration cases to explain how the plan should be adjusted.

Continue to delve deeper into the problem →

Able to choose

Need to design or review plans

Combine engineering deductions and senior self-evaluation standards to explain the applicable conditions, costs and alternatives of the plan.

Analyze engineering scenarios →
Knowledge unit directory

LEARN · PRACTICE · REFLECT

Knowledge learning and personal records

My notes and review ↗

First read along the principles, Q&A and migration cases. When you need to check your understanding, switch to reinforcement exercises or start personal recording.

Answers and personal notes

Each modified commit will be kept as an independent history. Your level of mastery is up to you to evaluate yourself against the standards.

Core concept · Separate natural-language requests from transaction state

Understand the core principles first

Preparatory concepts:business rules, transaction receipt, Manual takeover

Models explain appeals and policies, and controlled business facts are required for qualifications, amounts, and transaction completion. Commitment text, generated reply, and real money effects must remain distinct.

Separate understanding from eligibility

“Support promised a full refund” is a lead, not proof. Models extract orders and requests; rule services read real orders, effective policies, and prior tickets before deciding permitted actions. Chat assertions cannot override amounts or authorization.

Treat refunds as a state machine

Proposals bind order, amount, reason, and rule version. Execute approved proposals with stable business keys. HTTP failure may follow commit; reconcile before retrying. Distinguish accepted, processing, and completed using target-system facts. Claim credited funds only with verified credit evidence; “checking” is not “received.”

Hand over facts and outstanding uncertainty

Pass verified identity scope, requests, evidence, proposed actions, approvals, and receipts, marking unknowns. Human takeover should require neither guessing past actions nor automatically repeating them. Compensation needs separate authorization and idempotency; it changes subsequent state without erasing history. This scenario was not run against real support or payment systems.

Check understanding with a question

To design a customer service agent that can answer questions and provide refunds, what steps should be left to the model?

Models interpret requests, retrieve policy, and explain options. Deterministic rules decide eligibility and amounts; controlled tools execute refunds. Verify user, order, policy, and transaction state, then approve a specific action as required. Receipts establish completion. Escalate ambiguity, exceptional orders, and unreconciled outcomes to human handling.

Realization and trade-offs

Split read and write links

General policy questions and answers enter the search path with references, and refund intentions enter the business process. The order numbers in the conversation must be tied to a trusted user identity, and the model cannot be allowed to access other people's orders through guesswork. The policy description maintains a version relationship with the executable rules, and the "can be refunded" generated by the model is only an explanation candidate and does not directly trigger payment.

Deterministic decision-making and model collaboration

The order service calculates the refundable amount, refunded amount, deadline and necessary conditions; the model explains the rules and collects missing information. Clarify when there is ambiguity, do not guess qualifications through common sense. When forming a refund action, the order, amount, currency, reason and payment path are included, and the summary is bound to the approval; re-verify after the parameters are changed.

Reliable execution and user experience

The refund operation uses a stable business ID, and the tool times out to query the status first. Distinguish between accepted, in-process, refunded, failed and pending verification to users, and display understandable receipts. Manual takeover should carry necessary evidence, attempt records and current status, without requiring the user to speak again or revealing redundant personal data.

Verify acceptance criteria

Test legitimate refunds, duplicate refunds, partial refunds, cross-user orders, policy expiration, prompt injection, and unknown requests. Quality indicators include resolution rate, wrong commitments, unauthorized actions, manual upgrade rationality and time cost. The technical leader must see clear system responsibility boundaries and cannot replace transaction control with "the model is smart enough".

Engineering deduction

scene
Interview hypothesis: E-commerce customer service handles inquiries and refunds, and allows automatic refunds for small amounts.
design decisions
The business service determines qualifications, the gateway performs restricted actions, and exceptions enter the manual queue.
Verify target
There will be no cross-order or duplicate refunds, and users can see the actual processing stages.
applicable boundary
The small amount threshold and approval range are business policies and cannot be set by the model itself.

Continuous questions and answers

Continue reading along with the premises and constraints of the problem. Understand the reference answers first, then try to put away the answers and explain the cause and effect and trade-offs in your own words.

Draw inferences from one example: If the conditions change, how to deduce it?

First find out the conditions for change, and then determine which premises in the original plan still hold true. The following cases are teaching deductions to facilitate the transfer of principles to new problems.

Only answer policy and no refunds

Changing conditions:The scope of action has been reduced to consultation, and there is currently no payment tool.

Extended question:Is there still a distinction to be made between fact and advice?

Derivation and reference solutions

Needed. Explain the policy version and applicable conditions. When the user's order is not verified, it will only give a conditional explanation, and it will not claim that it must be complied with or that a refund has been issued. The transaction recovery mechanism can be simplified, but sensitive order reading and evidence reference still require authorization.

The principles that remain unchanged:Natural language explanations cannot create unconfirmed business facts.

Need to cancel subscription after refund

Changing conditions:The task spans two independent services and may be partially successful.

Extended question:Can you report a simple success/failure?

Derivation and reference solutions

Save the refund and cancellation status separately, and compensate according to business rules or handle it manually if it is partially successful. Failure to cancel does not prove that the refund has not occurred. Retry must follow the respective business keys; the reply clearly indicates the completed part and the pending part, and the entire process cannot be redone to cause repeated refunds.

The principles that remain unchanged:Multi-stage effects are accounted for separately, and compensation is not atomic time reversal.

Easy to make mistakes

  • The model directly calculates and determines refund eligibility
  • Returning to comforting words means the problem is solved
  • Treat manual upgrade as a discarded task

References

It is designed based on public technical information; the reference materials support the technical mechanism, and the scenarios and scoring standards are designed by this website and do not represent the original interview questions of a certain company. New Q&A and migration cases are added for principle explanation, and source verification and case operation verification are recorded separately.

Check how far you understand

After reading, you can explain the principles, boundaries, and trade-offs against these standards. It is up to you to evaluate your mastery; if further verification is needed, complete the small tasks below.

Basic standards met
Ability to differentiate between question-and-answer paths that explain policy and transaction execution processes that have side effects.
Intermediate and advanced signals
Gives eligibility rules, approvals, idempotency and status checks.
Senior Signal
Covers policy version conflicts, manual takeover quality and error commitment evaluation.

Hands-on verificationComplete on demand · Suggestions15 minutes

Draw the state machine of consultation to refund, including parameter changes, repeated requests and unknown results.

Expand acceptance requirements and checkpoints
  • Model does not exceed eligibility rules
  • Completion must have a receipt
  • Manual takeover status is complete

Key inspections

  • Model understanding and division of business rules
  • Transaction status comes from real receipt
  • Manual takeover to retain evidence