Keeping a support case reliable
Retain case facts, resolve ambiguous requests, and communicate partial failures.
Keep the facts of a long-running case
A subscriber contacts support twice about separate renewals. The second conversation mentions a promised credit. A summary saying “some charges were disputed” gives the next handler too little information to act safely.
5.1 · Preserve the fields that change a decision
For a stateless Messages API call, provide the relevant conversation history, including paired tool calls and results. Keep an exact case-facts block outside any rolling prose summary. Record each issue separately with account reference, charge ID, amount, currency, dates, status, source, and promised follow-up. Update the block from verified events. Retain detailed records in storage and pass only relevant fields from verbose lookups.
Put a brief of critical facts near the beginning, divide details into labeled sections, and end with the current decision. In a long prompt an important exception buried between tool dumps is easy to overlook. Require workers to return compact factual records with evidence, dates, method, and relevance.
Recover a commitment buried in a long case
The first lookup verified order O13. At turn 12, the member accepted a EUR 14.70 adjustment by 6 June. At turn 28, the summary says only “small adjustment soon,” and a subsequent lookup returns 42 merchant fields. What must reach the next decision and how should it survive later compaction?
Design the next turn’s evidence block
Keep a scoped facts record containing O13, the amount in minor units, currency, deadline, verification source and actual approval state. A proposal is distinct from a completed credit. Carry that record beside a short conversation summary. Return only the merchant fields relevant to eligibility while retaining their source references and the tool-call/result associations required by the conversation.
Place decision-critical facts near the beginning and group detailed evidence under labeled sections. A follow-up asking “what was promised, and was it paid?” should reproduce the amount and date and consult the ledger for settlement. Test with two simultaneous order issues so facts for one cannot silently overwrite the other.
Video background · freeCodeCamp at 10:44:33 · Preserving exact facts outside a lossy summary
5.2 · Clarify identity and respect escalation requests
If two profiles match, ask for a discriminating identifier through the approved verification flow. If policy covers renewals but says nothing about a partner-issued voucher, escalate the policy decision. An explicit request for a person triggers an immediate handoff. A frustrated customer who still wants help can receive acknowledgement and a concrete next step. Persistent inability to progress also warrants escalation. Sentiment and a model’s confidence alone are poor routing criteria.
Give the agent examples of each decision. In the handoff, identify the open question, the verified facts, the customer’s preference, and any action already taken. Avoid making a new promise on an unresolved exception.
Resolve identity, policy and the customer’s preference
Case A is a polite request for a person about an ordinary receipt. Case B is a frustrated request for an automated receipt lookup that finds two accounts. Case C asks for a price match covered by no approved policy. Decide what happens before any account-specific action.
Choose the next action in each case
For A, start the human handoff immediately and preserve the request. For B, acknowledge the frustration and ask for an approved distinguishing identifier. A shared display name, a recent purchase, and the assistant’s confidence cannot select the account. Proceed only once the identity and lookup authority are established.
For C, gather only the evidence needed to explain the gap and hand the decision to the authorized policy owner. Do not improvise a concession. Use contrasting examples like these in the routing prompt and verify the workflow’s actual ownership state after a handoff or reconnect.
Video background · freeCodeCamp at 12:33:09 · Why tone and confidence are weak escalation signals
5.3 · Let the coordinator see partial failures
A worker reads the local billing ledger and times out on a partner ledger. Try a bounded transient recovery locally. Return which ledger succeeded, the query and time of the failed call, retries attempted, partial results, and an alternative. A successful empty query establishes that no entry matched its criteria. An unavailable ledger leaves the claim about that ledger unresolved.
Write a partial result the coordinator can act on
A worker queries three archives for a particular route and month. A returns two sourced records. B completes with zero matches. C returns one page and times out twice at the next cursor. The coordinator receives a summary saying “two records found.” What information did the summary destroy?
Inspect the coverage statement
Keep A’s records with source IDs and B’s successful empty outcome with its query scope. For C retain verified page contents, cursor, query, attempt count, time budget and failure category. Tell the coordinator what remains unread and which authorized fallback is available. If C’s first page repeats an A record, preserve provenance while counting the observation once.
The synthesis can now report supported findings and the incomplete coverage of C. It cannot claim that C had no other matches. A later retry resumes the missing branch rather than repeating the healthy sources. A completeness claim should require appropriate terminal states for all required branches.
Video background · freeCodeCamp at 3:17:43 · Local recovery and propagation across workers
Handoff exercise
Draft a reply when local charges reconcile but the partner ledger is offline. State which charges you verified, which check remains open, who owns it, and what the subscriber can expect next. Preserve the successful lookup for the next handler.
Further reading · Official CCAR-F exam guide, sample questions and practice exercises · Building effective agents
Keeping a support case reliable quiz
Answer 9 questions. Check each answer for an explanation.