Building an enterprise AI agent with a bounded job
Hexwave Lab · Field noteList the tools an agent can call and the consequence of each successful call.

Write the agent’s job as a small contract. Name the input event, the tools it may call and the exact state in which it must hand work back. Start with a draft action that a reviewer can inspect.
A worked scenario
An enterprise assistant prepares a resolution proposal for a delayed customer order.
| Review stage | Example |
|---|---|
| Source records | The order history, dispatch record and approved remedies |
| Exception | The customer asks for compensation outside the allowed range |
| Acceptance condition | The assistant records a recommendation for an authorized reviewer |
Give the agent one job with an observable ending
Consider a service desk that receives requests to replace damaged equipment. An employee writes that a monitor arrived cracked. The desk needs to inspect the current asset assignment, check the replacement policy and prepare a request for a supervisor. This is a useful enterprise agent task because the information arrives in ordinary language and the next question depends on what the agent finds. The endpoint is deliberately narrow. An approved replacement request contains evidence and a named approver. Shipping an item is a separate job.
Write the permitted sequence with three verbs. Read the employee’s assigned item. Retrieve the policy in force for that item. Draft a replacement request. Require the employee’s account identity to come from the application session. It should never be taken from a name in the free-text message. If the user asks about a colleague’s screen, the assistant can explain the submission process without looking up the colleague’s equipment.
Translate “the cracked monitor” into a typed draft
A synthetic draft might carry asset reference M-204, reason “damage on receipt,” a link to the employee’s report and policy revision 7. Leave the shipping address and spend approval absent. Both require decisions beyond the initial task. Validate the reason against the permitted replacement categories, and verify that the asset is assigned to the employee who initiated the request. A supervisor should see uncertainty explicitly if “monitor” refers to two assigned devices.
Give each action a place to stop
| Stage | Evidence required to continue | Safe outcome if evidence is missing |
|---|---|---|
| Identify the item | One authorized asset matches the employee’s description. | Present the employee’s permitted choices and ask which item they mean. |
| Check policy | Current approved policy covers the item category and damage reason. | Send the item and question to the service desk for interpretation. |
| Prepare draft | Required business fields and original evidence are present. | Save an incomplete draft with missing fields visible. |
| Approve replacement | A supervisor with the relevant authority accepts the current draft. | Retain the request in review and make no shipment commitment. |
| Register approved request | Destination confirms the stable request reference. | Look up the request before another attempt and record the unresolved response. |
A user can change a detail during review. If M-204 becomes M-208, invalidate the earlier policy conclusion and supervisor approval. Show which fields changed and why the draft returned to review. Otherwise a harmless-looking edit could transfer an approval to a different asset. Keeping the draft revision in the approval record gives the service desk a direct answer when asked what the supervisor actually authorized.
Rehearse ambiguity before adding more tools
Provide two fictional assets with the same display name and different replacement entitlements. The correct agent response is a narrow clarifying question. An agent that immediately chooses the first search result may finish faster while creating the wrong request. Next, let the employee describe a laptop and attach a monitor photograph. Show both pieces of evidence to the reviewer and preserve the unresolved conflict. Choosing which one is authoritative requires local knowledge.
Limit the number of lookups and unanswered clarification attempts. When that allowance is spent, save the evidence collected so far and explain what the service desk needs next. A handoff that arrives with the original message, attempted matches and remaining question can be completed by a person. A handoff that contains only “agent failed” sends the employee back to the start.
Make retries and reversals different operations
After approval, suppose a registration call times out. Retrying the search for the policy is harmless. Repeating a request that allocates an item can create a second obligation. Use a stable identifier tied to the approved draft revision and check the destination’s record of the first attempt. Give the operator a way to resolve an uncertain response when the receiving system cannot answer that query automatically.
If the request has been registered correctly but the employee cancels it, record a cancellation linked to the original request. Rewinding the local screen erases the context the warehouse team needs. The cancellation path should show whether an item has already been allocated and who can release it. Choose the first pilot category so these business reversals can be practiced without committing expensive stock.
Review the decisions the agent influenced
A useful weekly review samples successful cases, clarification loops and supervisor rejections. Ask whether the first asset was identified correctly, whether the policy excerpt settled the actual question and whether the supervisor changed the proposed action. Separate an unavailable asset register from poor interpretation of employee language. The first calls for better operating procedures. The second may need clearer examples or a different matching rule. Expand the action set only when the team can detect and explain mistakes in the actions it has already delegated.
Separate a tool request from permission to run it
An application can prepare a proposed operation before committing it. For a calendar change, display the event, original time, proposed time and people affected. A person or policy check can then determine whether to proceed.
Exercise the same proposal under read-only and editing roles. The read-only user should be able to inspect the proposed change while the actual write remains unavailable.
Keep instructions and source material distinct
Applications that read messages or documents should treat their contents as material to interpret. Authorization to use a tool must come from the application’s trusted policy and the user’s role. A document cannot grant itself extra permissions.
Use a benign sample containing instructions for an unrelated task. Verify that the application identifies them as document content and continues to enforce the same action permissions.
Give the coordinator a limited job
A coordinator can divide a research question into source lookup, comparison and synthesis. Define what it is allowed to delegate and what result it expects back. Each worker should receive only the material it needs for the assigned question.
Give two workers conflicting source versions. The coordinator should preserve the disagreement, report which version each used and request review when it cannot establish which governs the case.
Putting it into practice
Take away one tool during the test. An agent that cannot finish should preserve the work completed and explain the missing dependency to its operator.
Explore Hexwave Lab’s approach to AI workflow automation.