Insights

Building an AI agent for your team’s work

Before an AI agent sends a reply or changes a record, your team needs to decide what it may do and how someone will check the result. Connecting a model to company documents is one part of that work.

Consider a team handling incoming support requests. The following is an illustrative workflow: the agent reads a request, finds the relevant plan details, and proposes a category and a reply. A representative checks the sources and approves the message. Requests with missing information go to review.

That example gives the team something specific to assess: whether the information is current, the category is useful, and the reply can be sent.

Start with the task and its data

Choose the records the agent needs and define who may access them. A support request may need account details and current terms; it should not grant access to unrelated customer records.

Retrieval can connect a response to verifiable sources. Google’s grounding documentation explains that this reduces hallucinations. The response still needs checking: a citation can be irrelevant, and a retrieved document can be outdated.

A graph or a fine-tuned model is an architectural option to evaluate against the task. Compare a candidate approach with a baseline using representative cases. Record the quality, operating effort, latency, and cost that matter to that workflow.

Related examples include classifying incoming tickets, reviewing contract clauses, and matching invoices with records. Each needs its own data, permissions, and checks.

Define what requires approval

Reading an account, preparing a draft, and sending a message are separate permissions. In the support example, the agent can prepare a reply while sending remains a person’s decision.

A reviewer’s correction can become a proposed change to instructions, retrieval, or an evaluation case. Someone needs to assess and test that change before applying it. Feedback does not automatically update the model or grant it more access.

Decide whether to change permissions using the evaluation coverage, observed failures, and consequences of an incorrect action. A low correction count on a small sample is not enough evidence on its own. Anthropic’s guidance on agents describes feedback checkpoints, stopping conditions, and testing as parts of the design.

Evaluate the whole workflow

Use cases with expected outcomes, including missing data, conflicting records, and requests outside the agent’s permissions. Check the actions and the resulting records as well as the wording of the reply. Record failures and agree who investigates them.

The review schedule should reflect the task’s risk and how often the model, instructions, tools, or data change. A second model can help assess outputs, but its judgments also need checking.

Agree where the work runs

Deployment may use your infrastructure, a model API, or a combination. Review which information each service receives, where logs are stored, access rules, retention, and provider terms before implementation.

The first scope should name a useful task and how the team will decide whether it works. Our guide to choosing a first AI project can help frame that discussion.

“Building an AI agent for your team’s work” by Martin Prunell is licensed under CC BY SA. Source code examples are licensed under MIT.

Conceptual illustration created for sophilabs with AI.

Categorized under AI & Agents.

Related reading