OBLYTECH Logo
OBLYTECH Logo

Starting With the Simplest Orchestration and Adding Agent Steps Only When Needed

Begin with the simplest orchestration that can complete the process from start to finish, usually fixed rules, routing and approvals. Add an agent step where the next action depends on context that cannot be listed in advance, such as interpreting free-text case notes. Give each agent step a defined input and a bounded output.

Why the simplest orchestration comes first

Agentic automation is attractive because it can handle inputs that do not follow a script. That flexibility has a cost. A step driven by a model is harder to predict, test and explain to an auditor than a rule that checks a field and routes a record. A team that starts simple usually gets a working process sooner and learns which decisions need judgment.

Map the process before choosing automation

Write the process as a sequence of states and transitions before anyone opens a builder. For each step, record the trigger, the data it reads, the data it writes, the person or system that acts next, and the outcome that ends the step. A pilot that skips this stage often discovers halfway through that two teams define “approved” differently.

Document the paths the business already follows

Pull recent examples from whatever system holds the work, such as cases, orders or requests. Many processes have a short list of common paths and a long tail of exceptions. The common paths are candidates for fixed automation. The exceptions show where a rule will fail and whether an agent is needed.

Mark the points that need interpretation

Flag each decision point that depends on something a rule cannot express. Typical examples are a free-text description that must be classified, a request that could fit several categories, or a summary a person must read before deciding. Write a one-line reason beside each flag. If the reason is hard to write, the step probably belongs in the fixed path.

For help planning this work, see Salesforce implementation.

Build the predefined path first

Implement the fixed path as the backbone of the process. In a Salesforce org this usually means declarative tools such as field conditions, record-triggered logic, scheduled jobs, approval steps and queue assignment. Keep each rule narrow. A rule that does one thing is easier to read, test and roll back than one that handles six cases through nested branches.

Set entry criteria and exit states

Each automated step needs an entry condition and a defined exit state. The entry condition says which records enter the step. The exit state says what the record looks like when the step finishes, including the status value and the owner. Vague states such as “in progress” with no owner are where work quietly stalls.

Handle the exception path explicitly

Decide what happens when a rule cannot finish. A common design sends the record to a review queue with a reason code. Another sends an alert to a named owner. Avoid letting a failed step leave a record half-updated with no trace.

Add agent steps where the path cannot be specified

Once the fixed path runs cleanly, add agent steps at the points you flagged. Each agent step should answer one question, receive a defined input and return a defined output.

Define input and output contracts

Write down exactly what the agent receives: which fields, which attachments, how much text, and what must be removed before the text is sent. Then write the output format. A structured result with a category value and a short rationale is easier to validate than free prose. Store the instruction version with each result.

Put a checkpoint after the agent

Place a validation step after each agent output. It checks that the category is one of the allowed values, that required fields are present and that the result fits the record. Failed checks go to the exception queue. For decisions with financial, legal or customer-facing impact, send the result to a person before the record moves on.

If the step writes to fields that validation rules already protect, check those rules first. The guide on validation rules without breaking integrations is a sensible starting point.

Limit what the agent can change

Give the agent step write access to the fields it owns and no others. An agent that proposes a category should not also set the approval status.

Test the sequence before going live

Test in a sandbox or non-production environment that mirrors the shape of production data. Choose test records from each common path and each exception. Include records with missing fields, long text, unusual characters and duplicate values. Use the same test set for fixed and agent steps so the results can be compared directly.

If your test data comes from a sandbox refresh, build the refresh date into your plan with sandbox refresh planning as the reference, so the data is in place before testing starts.

For agent steps, run each test record more than once and note whether the output changes between runs. Decide before testing what level of disagreement with a human reviewer is acceptable, and record the sample size behind that decision.

Check limits and volume before rollout

Before enabling a rule across the full population, estimate the volume it will process in one transaction and in a day. Bulk updates and scheduled jobs can reach platform limits that a handful of test records will not reveal. The guide to governor limits for admins is a reasonable place to start, then check the limits against your batch sizes.

If records arrive through a migration or feed, settle the load method first. For a migration-led launch, read about choosing Salesforce data loader options for migration before writing the rules that read the incoming data.

Roles, access and ownership

Name an owner for each automated step and each agent step. The owner decides when a rule changes, reviews the exception queue and signs off on changes to the agent’s instructions or allowed categories. Owners should understand the process map as well as the configuration.

Keep access tied to the work. The person who builds a rule is often not the person who approves a production change. Check the permissions each role needs for specific actions in your org, such as editing automation, viewing exception records and reading reports. Grant those permissions action by action rather than by job title.

Reporting and troubleshooting after launch

Report by path as well as by volume. A dashboard that shows total records processed hides a rise in records sent to review. Track four measures from the first day: records completed on the fixed path, records sent to agent steps, records that failed validation, and records a person overrode after the agent step.

Diagnose a stalled record

When a record stops moving, start with its current status and owner. Then check the last automation that touched it. Check the entry criteria first, since a record that no longer matches them will not enter the step. Next, check whether validation rejected an agent output. A common cause of stalls is a field that changed after a rule ran, so compare the record history with the rule conditions.

Read agent overrides as design feedback

When reviewers change an agent’s category, log the original value, the new value and a reason code. Patterns in overrides show whether the input is missing a field or whether a category definition is ambiguous. Change the definition or the input first, and change the step’s scope if the pattern still persists.

Upgrades and release changes

Platform releases can change how automation components behave. Before a release reaches your org, read its release notes for the components you use and retest the sequence in a sandbox. Keep a short record of which versions of your rules and agent instructions passed testing, so a later failure has a known baseline.

Questions about adding agent steps to a running process

How many agent steps should a first release include?

Start with one agent step, placed at the decision point that creates the greatest rework. A single step gives you a clean comparison against human decisions and a clear rollback path. Add a second step after the first has produced stable results, because two changing steps make a bad outcome hard to attribute.

What should a rollback plan cover for an agent step?

The plan should name the fields the step writes, the method for finding all records it touched, and the values those fields held before it ran. Use the instruction version and the decision timestamp to select affected records. Keep the fixed path running while the agent step is paused, so records still move through the rules and reach their owners.

What changes when an agent step is added to a process already in production?

Run the agent step in review-only mode first. It writes a recommendation to a field or review note and leaves the record where it is. Compare its output with the decisions the team made on the same records, then allow it to drive routing once the comparison meets a threshold set before launch.

What if reviewers disagree about the right agent output?

Treat the disagreement as a definition problem first. Ask each reviewer to write the rule they applied, then check whether the category description and the input fields support one answer. If reasonable reviewers still differ, add a category or a field that separates the cases. Save the disputed examples as test records so later changes are checked against them.

How long should an agent step stay in review-only mode?

Set the length in advance. Base it on the number of records needed to see the common paths and at least a few exceptions, plus a cutoff for the disagreement rate your reviewers accept. Extend the period when the override pattern has not settled, and make any extension a named decision rather than a default.