Insights
For a business agent to do real work, design the tools and the boundaries first
A business agent that does real work is not a better chatbot. It is a small set of tools, boundaries encoded in the workflow, and confirmation plus idempotency on anything that writes.
Conversation looks like an agent; doing the work is the test
Looking up an order, changing a status, opening a ticket — that is tool calling, not a longer system prompt. A prompt can hold tone. It cannot hold back a bad update.
A common failure is to expose dozens of internal APIs and hope the model will compose the business process. It will try. When a field is missing, a call times out or a write half-succeeds, it will also invent the next step. In a demo that looks clever. In production it is an incident.
Few tools, stable meaning
The tools an agent can see should be few and complete. Each one is an action the business already understands, with stable inputs and outputs, and errors you can tell apart — not found, not allowed, conflict, downstream timeout — rather than a single vague failure.
Writes need more:
- Confirmation before changing amounts, changing status or sending anything outward: show what will happen
- Idempotency so a retry does not place a second order or take a second deduction
- Least privilege so the tool can touch only the objects it is for, not a master token
The tool description is a contract for the model and an audit trail for people. “Update customer” is how you lose track of which fields moved. A field-level change list is more use than a paragraph of summary.
Put the workflow in code; let language handle the messy middle
Approval order, who may waive a step, when work must go to a person — the model should not invent those on the day. Encode the fixed process as orchestration or a state machine. The model’s job is to read incomplete input, choose the next legal action, and say why it took that step.
Once the boundary is explicit, you have something to evaluate: should this tool have been called, were the arguments right, should it have stopped and asked. Boundaries that live only in the prompt drift when you change model or add examples. Boundaries that live in allowed tools and allowed transitions stay put.
The knowledge base is one read-only tool
Expose retrieval as a tool, rather than stuffing passages into every turn. Look it up when you need a source, and bring the citation with you. That stops “read the policy” and “change the order” from sharing one undifferentiated context, and it avoids sending unseen documents into the model before you know they are in scope.
Keep read and write as separate grants. A session that can change production data should not also be allowed to browse the entire knowledge base.
Ship an agent that knows how to refuse
Refusing, asking for the missing field, saying the request is out of scope — that is safer than being a little bit helpful at everything. Launch criteria should include: blocked out-of-permission requests, no invented tools, a confirmation record on high-risk actions. Those matter more than another handful of chit-chat cases.
An agent that does real work is a constrained machine first. Design the constraints, then talk about how much of the script it can cover.