<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ratnadeep on Medium]]></title>
        <description><![CDATA[Stories by Ratnadeep on Medium]]></description>
        <link>https://medium.com/@ratnadeep.aiusage?source=rss-d364210b2dce------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qXBLQl8HaSuTToa_</url>
            <title>Stories by Ratnadeep on Medium</title>
            <link>https://medium.com/@ratnadeep.aiusage?source=rss-d364210b2dce------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:05:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ratnadeep.aiusage/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Workflow Design Lessons from Building an Enterprise Agent Actions Engine]]></title>
            <link>https://medium.com/@ratnadeep.aiusage/workflow-design-lessons-from-building-an-enterprise-agent-actions-engine-5582e50782ee?source=rss-d364210b2dce------2</link>
            <guid isPermaLink="false">https://medium.com/p/5582e50782ee</guid>
            <category><![CDATA[oracle-ai-agent-studio]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[workflow-automation]]></category>
            <category><![CDATA[agentic-workflow]]></category>
            <category><![CDATA[agentic-applications]]></category>
            <dc:creator><![CDATA[Ratnadeep]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 20:45:22 GMT</pubDate>
            <atom:updated>2026-11-20T20:48:37.061Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Connecting business evidence to recommendations and controlled execution</em></p><p>Designing an agent-assisted collections application brought a recurring workflow problem into focus: the same interface must help users understand an account, investigate an overdue transaction, and act on what they find. Each activity needs a different execution path and a different level of control.</p><p>A page opening needs a useful overview quickly. An investigation needs enough evidence to explain a recommendation. A submitted action needs current data, validated inputs, and a verified result. Making these responsibilities explicit is the central design lesson.</p><p>The examples use collections because payment commitments, disputes, activity notes, and customer communications expose the design choices clearly. The same patterns apply to other enterprise processes. Further hardening measures, including version checks and idempotency, are discussed separately from the core workflow patterns.</p><h3>Separate workflows by execution purpose</h3><p>A user opening a page, asking why an invoice is overdue, and submitting a payment commitment may interact with the same agent. Their requests should lead to different work. Combining them into one large prompt makes it difficult to control retrieval, latency, and the point at which the application may change business data.</p><p>The useful separation is between display, investigation, and execution. Display retrieves a bounded overview. Investigation gathers and interprets evidence for a selected record. Execution validates a confirmed submission and performs the business operation. Communication preparation can belong to the investigation path, while sending belongs to execution.</p><p>For example, opening an account should not require a full investigation of every invoice. Selecting one overdue invoice can justify retrieving its notes and related history. Preparing a proposed follow-up then gives the user a chance to review it before any communication is sent.</p><p>The reference architecture below separates these responsibilities and places user review between a proposal and execution. Revalidation and result verification make the execution path accountable to the record and the operation being performed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*lUnq_2OakLGn7YRMCVcGag.png" /></figure><h3>Normalize requests and establish scope before routing</h3><p>Enterprise workflows receive page events, conversational messages, button commands, and submitted forms. Without a common request contract, each branch develops its own parser. Equivalent actions acquire different names, identifiers move between fields, and a request intended to display a form can reach submission logic.</p><p>Normalization should establish the execution purpose, target record, supplied parameters, and interaction context. Account numbers, internal account IDs, transaction IDs, and payment-schedule IDs must remain distinct. Related identifiers are not interchangeable simply because they refer to the same business situation.</p><p>Routing also needs a defined destination for every supported result. If a classifier can return multiple actions, the workflow must either sequence those actions safely or ask the user to separate the request. Producing a label without an executable path leaves the workflow incomplete.</p><p>Scope requires a separate check. User wording identifies the requested task; authenticated identity and authoritative relationships establish which records may be accessed. A capability exposed to a planner must verify access independently, without assuming that an earlier page already selected an authorized record. A correctly formatted transaction ID does not prove that it belongs to the account being investigated.</p><h3>Prepare evidence before asking the model to reason</h3><p>The workflow needs a data preparation stage between retrieval and interpretation. Enterprise services may return nested collections, serialized JSON, wrapper objects, or different aliases for the same field. Passing these responses directly to a model makes reasoning depend on whether it can reconstruct the data correctly.</p><p>A more dependable sequence retrieves the data, normalizes its shape, establishes record identity, merges related evidence, and derives explicit features. In a collections workflow, those features can indicate whether an invoice is overdue, whether a payment commitment is active, and whether an unresolved dispute exists.</p><p>The distinction between source facts, calculations, interpretations, and proposed actions should survive this processing. Consider an overdue invoice with an existing commitment and a note suggesting that a document is missing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*KL8Ta2PJFvRGqozAESxigQ.png" /></figure><p>This separation makes a disputed recommendation diagnosable. A reviewer can ask whether retrieval missed a record, a date calculation was wrong, the note was misinterpreted, or the action selection ignored a valid restriction.</p><p>Record identity matters just as much as response shape. Joining one transaction to multiple promises and multiple disputes can multiply rows. Summing the transaction balance afterward can inflate exposure. The workflow must establish the grain of each dataset, deduplicate by stable keys, and define aggregation rules before producing totals.</p><h3>Use model interpretation within explicit decision rules</h3><p>Payment notes illustrate where model reasoning helps. “Asked the customer to provide a payment date” and “The customer confirmed payment next Friday” both mention payment timing. Only the second expresses a customer commitment. Keyword matching can miss that distinction.</p><p>The model should return a bounded interpretation with supporting evidence. Deterministic logic can then apply explicit restrictions, such as suppressing a duplicate active commitment, requiring mandatory fields, or rejecting an unsupported action. Dates, amounts, thresholds, and other calculations should be prepared before presentation where practical.</p><p>An investigation may support several responses. A missing document could justify an internal follow-up as well as a customer update. Generating candidates before selecting a preferred action preserves those alternatives. Each candidate should carry its target, reason, evidence, proposed owner, and applicable restrictions.</p><p>Eligibility, urgency, and evidence strength answer different questions. An urgent action may still be ineligible, and an eligible action may have weak supporting evidence. A fixed score such as 0.95 assigned by a rule should be described according to its meaning; it is not automatically a calibrated probability.</p><p>The rendering stage should consume the eligible actions and explain them. Supplying permitted action identifiers and target records prevents presentation logic from inventing a transaction or reintroducing an option removed by an earlier guard. For the invoice awaiting a document, the explanation should preserve that evidence and the eligible response through to the user review step.</p><h3>Treat retrieval coverage as part of the decision</h3><p>Separating overview from investigation introduces a tradeoff that must remain visible. A bounded initial query improves responsiveness, but it also determines which records receive deeper analysis. If the database selects 25 candidates before note enrichment, the resulting priority order applies to those candidates. It does not establish that every invoice has been assessed against its notes.</p><p>The interface should communicate the relevant coverage, time window, and truncation. Otherwise, a local ranking can look like a global conclusion. Retrieval design therefore affects the meaning of the recommendation as well as its speed.</p><p>Selective parallelism can help with latency. Independent account, payment, and dispute lookups may run concurrently. A separate note lookup for every transaction can instead create a large number of downstream calls. Before adding a loop, check whether batch retrieval is available, which records need enrichment, and what concurrency the service can support.</p><p>Query design also deserves attention before adding orchestration. A long historical query that ranks every row to calculate summary metrics and a few recent events may benefit from separate aggregate and bounded recent-event queries. That is an optimization hypothesis to test against the actual workload. A timeout alone does not establish a syntax error or identify the bottleneck.</p><p>Retries should be bounded, and any reduction in the retrieval window must remain explicit. If a fallback retrieves six months of history, the result must describe six months of coverage even when the original request asked for two years.</p><h3>Distinguish missing evidence from unavailable evidence</h3><p>An empty history, a failed lookup, and a partial response have different business meanings. A timed-out history service cannot establish that an account has no prior activity. An unavailable dispute lookup cannot establish that no dispute exists.</p><p>Responses should carry availability and coverage information alongside the data. The workflow can then distinguish essential dependencies from supporting evidence. Identity, authorization, target verification, and the primary record are essential before execution. A failed supporting history lookup may still permit a clearly labeled partial investigation.</p><p>The orchestration and planner prompts need the same failure policy. If the technical layer returns partial evidence but the planner abandons every investigation with a missing source, the intended fallback will not work. Conversely, if the planner treats an unavailable source as an empty one, the recommendation can overstate what is known.</p><p>For the invoice example, a failed notes lookup should leave the reason for nonpayment unresolved. It should not silently remove the possibility of a missing document or imply that another reminder is appropriate.</p><h3>Revalidate submissions and verify business outcomes</h3><p>Preparing a form creates a useful review point. The user can inspect the target invoice, proposed amount, dates, and rationale before submission. The submitted payload still requires validation because values may be changed, identifiers may be mismatched, and the underlying record may have changed since preparation.</p><p>Execution should recheck authority, record relationships, required fields, ranges, date relationships, and current business state. Where the service supports version checks, adding them can detect a record changed since the form was prepared. This is a further safeguard to implement and verify rather than assume from the presence of a confirmation screen.</p><p>Idempotency is another hardening requirement for operations that may be retried. A timeout does not prove that a write failed. Repeating an uncertain submission can create a duplicate commitment or send the same communication twice. A stable operation key, where supported, and a result lookup can help distinguish a safe retry from an operation requiring reconciliation.</p><p>Execution, audit recording, and UI refresh have separate outcomes. A commitment may be created while its history entry fails. A response may be lost after the business operation succeeds. A refresh may fail even though the underlying data changed. The application should preserve these distinctions instead of reporting one undifferentiated success or failure.</p><p>Communications need equally precise language. Acceptance by a sending service establishes acceptance; delivery requires its own evidence. Structured operation results allow the interface to state what is confirmed, what remains incomplete, and whether another attempt is appropriate.</p><h3>Test the boundaries and evolve the workflow deliberately</h3><p>A visually valid workflow can still fail when imported, when a service changes its response shape, or when a business case crosses a decision boundary. Validation should cover artifact metadata and routing as well as runtime behavior. The most useful behavioral tests preserve the distinctions the architecture depends on.</p><p>· A request for a payment date versus a confirmed customer commitment.</p><p>· An empty history versus a failed or truncated history lookup.</p><p>· A permitted target versus a valid identifier outside the authorized account.</p><p>· One transaction expanded into multiple rows by related records.</p><p>· A successful business operation followed by a failed audit or refresh step.</p><p>· A stale form submission or a repeated execution request.</p><p>As responsibilities evolve, request normalization, evidence retrieval, feature derivation, eligibility, and execution adapters become useful module boundaries. Each needs an explicit contract. They do not all need separate deployed workflows, but duplicated parsing and competing policy definitions should be consolidated. Recording rule versions is a useful further improvement when recommendations depend on thresholds or grace periods that may change.</p><p>Autonomous planning can build on these foundations. A planner can choose which evidence to retrieve and adapt an investigation, provided the underlying capabilities accept explicit targets, enforce scope, and return structured results. Greater delegation then depends on tested authority and recovery controls, rather than on the planner inheriting assumptions from a page or form.</p><p>The central workflow lesson is to preserve the connection between the original request, the evidence considered, the decision made, and the result confirmed. For a collector reviewing an overdue invoice, that connection explains why an action was proposed, which facts remain uncertain, and what actually happened after submission.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5582e50782ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>