Mapping a process before automating it
Workflow agents fail most often because the process was never written down properly. Before building, we sit with the people who do the work and record each step: the trigger, the inputs, the systems checked, the decision taken, the record updated and who is told. We also collect the exceptions, because a process that looks like five steps on a whiteboard is often fifteen once the edge cases are included.
The output is a process map with each step labeled by type: a fixed rule, a step that needs reading or judgment, an approval or a notification. Rules become code, judgment steps become model calls with clear instructions and test cases, and approvals become explicit checkpoints. Where the map shows the process itself is broken, for example two teams entering the same data, we say so before automating it.
Orchestration: durable steps, retries and state
A workflow agent often runs for minutes, hours or days: it waits for a document, an approval or a response from a partner system. That needs proper orchestration rather than a long script. We use durable workflow engines such as Temporal, or queue-based designs where the workload is simpler, so each step's state is saved and a failure resumes from the last good step instead of starting again.
- Idempotent writes: every action that changes a system carries a key, so a retry after a timeout does not create a second record.
- Timeouts and step limits: a model-driven step that has not finished within its budget stops and escalates.
- Compensation: where a later step fails, earlier changes are reversed or flagged for a person, rather than left half done.
- Versioned definitions: running cases finish on the version they started with when the process changes.
Where the model decides and where rules decide
The model's job in a workflow is usually narrow: read an email and decide what it is, extract fields from an attachment, match a free-text description to a master record, or draft a message. The decision about what happens next is mostly made by rules that use the model's output, together with a confidence threshold.
| Step | Handled by | Example |
|---|
| Classify incoming request | Model, with confidence score | Is this email a purchase order, a query or a complaint? |
| Check against limits | Rule in code | Is the order value within this customer's credit limit? |
| Match to master data | Model plus fuzzy matching, verified in code | Which item code does "blue 20mm PVC pipe" refer to? |
| Approve exception | Person | Order above limit, or new delivery address |
| Update and notify | Code | Create the sales order, send confirmation |
These are illustrations of the pattern. The split for your process comes out of the mapping work.
Approvals people actually use
An approval step only protects you if approvers can make a good decision quickly. Our approval screens show the proposed action, the evidence behind it, what the agent was unsure about and the exact change that will be made. Approvers can approve, edit or reject with a reason, from a web screen, Slack or Microsoft Teams. Unanswered approvals escalate after a period you set, and approval limits follow your existing delegation of authority. Every approval is logged with the approver and the time, which gives your auditors the record they need.
Indian back-office examples
Many workflows we see in Indian businesses connect email or WhatsApp with accounting and compliance systems. Examples of the kind of chains a workflow agent can run, each with a person approving the final step:
- Purchase orders received by email are read, matched to item masters and created as sales orders in Tally or Zoho Books, with exceptions held for review.
- Dispatch data is checked for completeness before e-way bill details are prepared, using an approved GST Suvidha Provider route where one is available.
- Vendor onboarding documents are checked for completeness and consistency, such as names matching across GST and bank details, before procurement approves.
- Payment follow-ups are drafted from ageing reports, with the accounts team choosing which to send.
Our finance and accounts and procurement pages describe these areas in more detail.
Monitoring, change and ownership
Once live, a workflow agent needs an owner on your side and visible health signals. We provide a dashboard of cases by status, time spent at each step, exception and approval rates, and failures by cause. Alerts fire on stuck cases and on unusual changes in exception rates, which often mean an upstream system or document format has changed. Process changes go through version control and the test set, so a rule edit is tested against past cases before release. Teams that want us to keep operating the agents can move to our AgentOps service.
We also hand over a short runbook for the process owner: how to pause the agent, how to clear a backlog of held cases by hand, who to call when a connected system changes and how to read the weekly exception report. The aim is that your team understands the agent well enough to trust it, question it and, when needed, run the process without it for a day.