Inside an Agentic Workflow: Tracing a Request From Inbox to Resolution

In one sentence: An agentic workflow turns a messy email into a resolved case through nine visible stages (trigger, understand, verify, gather, plan, act, check, respond and record) and every stage leaves a trace that a person can inspect.
Business leaders often hear that AI agents “handle requests end to end,” and then ask a sensible question: what actually happens between the moment an email arrives and the moment a customer is told it is fixed? The answer is rarely shown, which is why agents can feel like a black box. This post opens the box. We use the STAR format (Situation, Task, Action, Result) to follow one real-looking request through every step, including the retries, approvals and checks that make the difference between a demo and a dependable system.
A Messy Email and a Dozen Hidden Steps
Consider a business software company we’ll call Juniper Software. As in our earlier posts, this is a composite scenario, not a customer case, but the shape of the work is familiar to any support or operations team.
On a Tuesday morning, a customer writes to Juniper’s support inbox: “We were charged twice for November, two invoices for the same amount. Also, our admin Priya can’t open the Reports module since we upgraded. Can you fix both?” It is a typical message: informal, containing two separate problems and written by someone who assumes the company can see everything on their side.
For a human agent, this email triggers a quiet cascade of work. Read it and notice there are two issues. Work out who the sender is and whether they are entitled to ask. Open the billing system and compare the two charges. Open the licensing system and check what the upgrade actually enabled. Look up the refund policy. Decide what to do. Issue the refund, repair the entitlement, check that both worked, write a reply that covers both problems and record what happened. That is roughly ten steps across four systems, for one email.
Almost none of this effort is visible to the customer and most of it is invisible to management too. That invisibility is a problem in both directions. It hides the real cost of manual work and it makes automated alternatives hard to trust, because leaders cannot picture what they are approving. When an agent is introduced as a magic box that “handles it,” reasonable people respond with suspicion.
The remedy is to make the workflow visible. An agentic workflow is not magic; it is the same cascade of steps, performed by software, with each step recorded. Figure 1 shows where time and risk tend to hide in manual handling, which is exactly what a visible workflow should expose.
Figure 1. Where time and risk hide in manual handling
_Pause and check: Pick a typical request in your organization. Write down every step a person takes between receiving it and closing it. How many of those steps could you show to an auditor, tomorrow, as a record?
_
Make the Workflow Visible and Checkable
Your task is to understand an agentic workflow well enough to explain it to a colleague, an auditor or a customer. That means answering four questions about any automated request:
- What triggered it and what exactly did the system understand the request to be?
- Who was the sender and what were they permitted to ask for?
- What facts did the system gather and where did each one come from?
- What did it do, who approved it and how was the result checked? If a workflow can answer all four for every case, it is transparent. If it cannot, it is a black box, however capable. The rest of this post follows a single request through nine stages, showing what each one does and what it records.
For Juniper, the task becomes concrete: trace the double-charge and access email from inbox to resolution, identify where a person must stay involved and show what record the workflow leaves behind.
The Nine Stages, Step by Step
Figure 2 shows the path of the request. The stages are the same for most workflows; only the tools and rules change.
Figure 2. The nine stages of an agentic workflow
INBOX RESOLUTION
| ^
v |
1 TRIGGER --> 2 UNDERSTAND --> 3 VERIFY --> 4 GATHER --> 5 PLAN
|
v
9 RECORD <-- 8 RESPOND <-- 7 CHECK <-- 6 ACT (retry / approval)
Every arrow writes to the case record and the trace.
- Trigger. The email arrives and the workflow opens a case with an identifier and an empty record. Triggers can also be schedules or events, such as a payment failing, but the pattern is the same: something starts a case and from that moment everything is tracked against it.
- Understand. The agent reads the message and produces a structured interpretation: here, two intents, a duplicate charge and an access problem, each with the evidence it was based on and a confidence level. Splitting the email into separate issues is one of the most valuable things the stage does. Anything below a confidence threshold goes to a person.
- Verify. Before touching anything, the workflow checks that the sender is a known contact on the account and is allowed to request these changes. A billing contact may query invoices; changing another user’s access may require an administrator. Where verification fails, the workflow stops and asks.
- Gather. The agent collects facts from live systems and from approved knowledge. Billing shows two charges for the same amount three minutes apart. The licensing system shows the upgrade applied but no Reports entitlement. The knowledge base confirms that duplicate charges are refundable and that missing entitlements after an upgrade are a known issue with a standard fix. Each fact is stored with its source.
- Plan. With the facts in hand, the agent writes a short plan: refund the duplicate charge and re-synchronize the entitlement. The tasks are independent, so they can run in parallel. The plan is recorded before anything is done, which makes it possible to compare what was intended with what happened.
- Act. The agent calls tools to carry out the plan, within limits. Small refunds are issued directly. Larger ones pause for approval. If a tool fails, the workflow retries once with the same instruction and escalates if the failure repeats. Actions are written so that repeating them cannot cause harm, for example by never refunding the same charge twice.
- Check. The agent does not trust its own action. It reads back from the systems: has the refund posted and does Priya now hold the Reports entitlement? A task is complete only when the evidence says so.
- Respond. The agent drafts a single reply covering both issues, in plain language, with next steps. For sensitive cases a reviewer step or a person approves it before sending.
- Record. The complete trace is saved, the case is closed or scheduled for follow-up and any lessons, such as an entitlement bug that keeps recurring, are available for improvement.
Figure 3. What each stage produces and records
The workflow in code
Now the technical part. The snippets below are simplified, illustrative Python rather than a production framework and the thresholds are placeholders for your own. The first is the case record, the single place where everything the workflow knows and does is kept.
Figure 4a. The case record
from dataclasses import dataclass, field
@dataclass
class CaseRecord:
case_id: str
sender: str
intents: list = field(default_factory=list) # set by Understand
verified: bool = False # set by Verify
facts: dict = field(default_factory=dict) # gathered, each with a source
plan: list = field(default_factory=list) # written before acting
actions: list = field(default_factory=list) # what was done and the result
status: str = "open" # open | waiting_approval | resolved | escalated
trace: list = field(default_factory=list) # every step, in order
The second snippet is the Understand stage. It asks for a structured answer rather than free text, discards low-confidence readings and escalates when nothing clear emerges.
Figure 4b. Turning an email into structured intents
`INTENT_SCHEMA = {
"intents": [{"type": "duplicate_charge | access_issue | other",
"evidence": "quote from the email", "confidence": 0.0}],
"urgency": "normal | high",
}
def understand(case, email_text):
result = llm.extract(email_text, schema=INTENT_SCHEMA) # structured output
confident = [i for i in result["intents"] if i["confidence"] >= 0.60]
if not confident:
return escalate(case, "could not identify the request")
case.intents = confident
case.trace.append(("understand", [i["type"] for i in confident]))
`
The third is the Act stage for the refund. It enforces a spending limit, pauses for approval above it and attaches an idempotency key, so a retry after a timeout can never refund the same charge twice.
Figure 4c. A safe action: limits, approval and idempotency
`REFUND_LIMIT = 100.00 # placeholder: set from your own policy
def refund_duplicate(case, charge_id, amount):
key = f"{case.case_id}:refund:{charge_id}" # same key on every retry
if amount > REFUND_LIMIT: case.status = "waiting_approval" return approvals.request(case, "refund", amount, evidence=case.facts) result = billing.create_refund(charge_id, amount, idempotency_key=key) case.actions.append(("refund", charge_id, amount, result["status"])) case.trace.append(("act", "refund", result["status"])) return result` Two ideas matter most here. Limits and approvals are enforced in code, not left to the agent’s good manners. And idempotency, a term engineers know well, makes retries safe, which matters because timeouts are routine in real systems.
Figure 5 shows what the resulting trace looks like for Juniper’s email. This is the artifact that turns the black box into a glass one.
Figure 5. A trace excerpt for case JC-2041 (illustrative)
t+00:00 TRIGGER email received -> case JC-2041 opened
t+00:01 UNDERSTAND 2 intents: duplicate_charge (0.94), access_issue (0.91)
t+00:02 VERIFY sender is billing contact on account: OK
t+00:03 GATHER billing: 2 charges, same amount, 3 min apart
licensing: Reports entitlement missing after upgrade
policy: duplicate charges are refundable (source cited)
t+00:04 PLAN A: refund duplicate B: re-sync entitlement (parallel)
t+00:05 ACT A: refund issued (within limit)
B: sync timed out -> retry -> ok
t+00:06 CHECK refund posted: confirmed Reports access: confirmed
t+00:07 RESPOND one reply covering both issues, reviewed, sent
t+00:08 RECORD trace saved; follow-up set for 3 days
Notice how readable the trace is. A manager can follow it in thirty seconds and an auditor can verify each decision against its evidence. A trace like this is not a luxury added at the end; it is the reason the workflow can be trusted.]
Where people stay involved
Visible workflows also make it clear where humans belong. Figure 6 lists the common checkpoints. Not every case needs a person, but every workflow should define when one is required.
Figure 6. Human checkpoints in the workflow
What Good Looks Like
As in our previous posts, we will not promise a particular speed-up or saving. Results depend on your processes, systems and data, so establish a baseline and add verified figures before presenting a business case.
What does change is how the work feels. For Juniper, the customer receives a single reply that addresses both problems, because the agent split the email, planned both tasks and confirmed both outcomes. The support team no longer copies data between three systems or wonders whether the second issue was forgotten. A manager who asks what happened to case JC-2041 gets a thirty-second answer instead of a hunt through inboxes. And when a refund exceeds the agent’s limit, a person sees the evidence and decides in moments.
Figure 7. A scorecard for a transparent workflow
Three pitfalls to avoid
• Trusting the action without checking it. An API that returns success does not prove the customer’s problem is solved. Read back from the system.
• Treating a multi-issue email as one request. Splitting intents early prevents the second problem from being forgotten.
• Logging only the final answer. The value lies in the intermediate steps: the evidence, the plan, the retries and the approvals.
Figure 8. STAR recap
Where should you start?
Choose one repeatable request type and write out the nine stages for it on a single page. For each stage, note the system involved, the decision made and the evidence that should be recorded. Wherever a stage is currently invisible, such as the identity check or the read-back, you have found a gap that automation can close and that a trace will expose. Then decide, stage by stage, where a person must stay in the loop.
Agentic workflows are easier to understand than their reputation suggests. They are ordinary work, broken into explicit steps, carried out by software and recorded as they go. The organizations that trust them are not the ones that stopped asking what happens inside, but the ones that insisted on seeing it, one stage and one trace at a time.
Ready to go deeper? Explore how agents are built on the IntelliBooks.




