Designing AI workflow automation around a handoff
Hexwave Lab · Field noteRecord what starts the job, the state it changes and how to recover if interrupted.
A worked scenario
A manager wants to remove a weekly handoff that requires retyping approved leave into a schedule.
| Review stage | Example |
|---|---|
| Source records | The approved leave record and the current roster |
| Exception | The leave is amended after the first transfer |
| Acceptance condition | The roster receives the amendment without duplicating the absence |
Trace a customer order from inbox to dispatch
Consider a workshop that receives orders by email. A customer writes, “Please send six of the blue kit to the site we used last time.” Someone needs to identify the account, interpret the item, confirm the site, check stock and authorize a dispatch. An AI workflow can help translate the message into a proposed order. Reliable automation depends on knowing which decisions belong to the customer, which belong to the workshop and which can be checked from an approved system.
Start with a single illustrative order O17. Save the incoming message and its stable source reference. Extract “six,” “blue kit” and the reference to a previous site. Show the source phrase beside each proposed value. A product alias might resolve cleanly. The previous site might not, especially if the customer has ordered for several locations. The first review screen should expose that difference rather than converting both guesses into equally definite fields.
Give every transition a record owner
| State of O17 | Source of truth | What can move the order forward |
|---|---|---|
| Received | The original message and attachments. | An intake worker links the message to a permitted account. |
| Draft | The proposed order and evidence for each field. | A reviewer resolves the product and the delivery site. |
| Confirmed | A saved revision of the approved order. | Stock policy permits a reservation for this exact revision. |
| Ready to dispatch | The confirmed reservation and pick instruction. | The warehouse acknowledges the pick and sends its dispatch reference. |
| Dispatched | The warehouse dispatch record. | Customer notification follows the workshop’s normal communication policy. |
Treat the workflow as a sequence of business facts, not a row of green ticks. If the warehouse goes offline after stock is reserved, the order is still reserved. It has no dispatch reference. A customer-facing summary must not say the item is on its way simply because the integration attempted to send a pick instruction. Give the warehouse coordinator a queue showing reservations that have not yet been acknowledged.
Assign exceptions before the pilot
| Exception | Who can resolve it | Evidence required to resume |
|---|---|---|
| Two sites match “last time” | Account representative or customer. | Explicit confirmation of the selected delivery site. |
| Quantity exceeds stock | Stock controller. | An approved split, delayed fulfilment decision or cancellation. |
| Warehouse timed out after accepting a pick | Dispatch coordinator. | Lookup of the original pick request and its warehouse status. |
| Customer amended a confirmed order | Sales reviewer and, if already picked, dispatch. | A new order revision and a decision on the existing reservation. |
Give an exception a due time and a visible owner. The account representative should see precisely which site choices remain open. Sending a generic “order failed” notice would make them reconstruct the customer request. If the customer replies with a new email about the same order, let the reviewer attach that evidence to the open exception. Do not force the account team to cancel and re-enter an otherwise correct draft.
Separate a retry from a second order
The warehouse can accept an instruction while its reply is lost. Generate a stable pick key for approved order O17, revision 1. Record the destination attempt and preserve that key on retry. If the warehouse recognizes the key and returns its existing pick, attach the existing record. If the destination cannot resolve it automatically, ask a coordinator to check before a second instruction is issued. One order followed by two physical picks is an expensive way to learn that a network timeout was ambiguous.
| Event sequence | Expected stored outcome |
|---|---|
| Same customer email arrives twice | Two receipt observations linked to one intake record, subject to verified message identity. |
| Reviewer presses confirm twice | One confirmed revision for the same approved draft. |
| Warehouse reply is lost | Uncertain dispatch handoff retained with its original pick key. |
| Customer genuinely places the same order again | A new order after the reviewer confirms a distinct customer request. |
The last example matters. Two identical messages can be a delivery retry, an accidental forward or an intentional repeat order. Automation can identify potential duplicates, but a matching item and quantity do not prove that the customer intended only one purchase. Make that uncertainty visible to the operator.
Test the handoffs with the people who own them
Run O17 through a normal delivery, a stock shortage, a changed site after confirmation and a lost warehouse acknowledgement. Ask the account team to resolve the ambiguous site, then step away. Can a dispatch colleague finish the case using only the visible records? If they need the original engineer to read a log or manually clear a flag, budget for that missing operating feature before increasing order volume.
Measure time from message arrival to a confirmed order and from confirmed order to acknowledged dispatch separately. Identify the age of the oldest blocked order and read its reason. An automation that shortens extraction while leaving the warehouse queue untouched may still help, but the result should be described accurately. Give the process owner a way to pause new automated picks while existing orders can still be reconciled. That boundary makes it practical to operate the workflow during a busy day.
Describe the work in states
Write each stage as a state a person can recognize, such as ready for review, waiting for clarification or approved for release. For each transition identify the evidence required, the role allowed to act and the result visible to the next user.
Walk a single request through a return for correction. The record should preserve the prior decision and make it clear which version is now awaiting approval.
Specify the output of each stage
A document intake flow can extract fields, validate a supplier reference and prepare a review note in separate stages. Each stage needs a declared input and a result that another stage can reject without guessing what happened.
Try a document with a readable total and an illegible supplier reference. The extraction result should preserve the valid field while the validation stage returns the unmatched reference for review.
Put the evidence beside the action
Sketch the screen for the person taking the next decision. Put the original input, current state and permitted actions within reach. If the reviewer has to open a second application to understand a key number, identify the missing link before adjusting the visual hierarchy.
Test the screen with a corrupted or incomplete record. The interface should help the reviewer identify the missing detail and move the work to an appropriate state without guessing.
Putting it into practice
Replay the handoff with the destination unavailable. The item should remain visible with its current owner and a safe route to retry.
Explore Hexwave Lab’s approach to AI workflow automation.