Back to the blog

Using AI as an orchestrator

Updated 5 min read

While building AI applications, I noticed that some small tasks were taking more time and tokens than they needed to. The AI was handling operations that could have been done by a simple piece of code.

So I started turning those tasks into tools the AI could call when needed. The work became much faster, and I felt more in control. It also changed how I divided the work: when I understood a recurring task well enough, I could turn that knowledge into a reusable tool. The AI could then coordinate the work instead of solving the same small problem from scratch each time.

Flexible where it matters

AI is remarkably flexible. Given an unfamiliar task, it can suggest ways forward. That makes it useful for exploration.

But in everyday business, a different solution every time isn’t always helpful. When work needs to be repeated, people need to understand how it’s done, what to expect from the result, and how much time it will take.

The goal is to bring those strengths together: AI can adapt how it coordinates the work, while established processes provide consistency.

Give AI a goal and the right tools

Think of someone coordinating a job. They don’t perform every task personally: they work out what needs to happen, use the resources available, and keep the work moving toward its goal.

I began to see a similar role for AI. One tool could retrieve information; another could check a value or transform a file. The AI could use their results to decide what needed attention next.

Each tool had a clear purpose and could be reused. It became easier to see what the AI was doing and where something had gone wrong. Sensitive details could be handled separately: a tool can be designed to use a secret without exposing it to the AI.

One tool may use conventional code, another a specialized model, and another a generative AI task. What matters is choosing an approach that fits the task.

This is not the only way to combine AI and software. If the sequence of steps is already known, a fixed workflow may be simpler: conventional code can run the process and call AI only where interpretation or generation is needed. As Anthropic’s discussion of agents and workflows suggests, the amount of flexibility should fit the problem.

An example: preparing images for a blog

Imagine a blog that regularly publishes articles with an illustrated main image. For each new article, an editor wants the subject of a photo placed on a clean background in a consistent format. The source image changes, but the preparation steps are familiar.

The editor gives the AI a source image and describes the desired result. The AI identifies whether to use a colour or a background image, then coordinates the preparation:

  1. Remove the original background.
  2. Crop the image around the subject.
  3. Add a defined margin and place the subject on the selected background.
  4. Fit the result to the blog’s required dimensions.
  5. Convert and optimize the image for publication.

The background-removal tool may itself use AI to identify the subject. But once the sizing and composition rules are clear, they can be put into a script and reused for the next article. There is no need to ask a generative model to recreate the image for those steps. The results still need checking: background removal or cropping may work better on some images than others.

If the editor asks for a background that matches an article but provides neither a colour nor an image, the orchestrator can ask for clarification before continuing. This is an illustrative example, not a description of a deployed system.

What do we gain—and what does it cost?

Reusable tools give a business a consistent way to perform known tasks. They can be tested and maintained separately, and they reduce the need to call a general-purpose model for every operation. That can help make costs and performance easier to understand.

The trade-off is that tools and their connections must be built, tested, and maintained. The AI can still choose the wrong tool or misunderstand its result. Testing the complete process matters as much as testing each tool. Anthropic’s guidance on evaluating agents discusses ways to assess both their actions and results.

Knowing where the work stands

A process may take time, encounter a problem, or need a person’s input. The person responsible should be able to see what has been completed, where the work is waiting, and what is needed to continue. They should also be able to pause or stop it.

In the image example, the system might prepare several images but pause one because a tool reports an error. The editor could return later, inspect the problem, and continue from that point rather than starting the batch again.

This requires more than an AI model. The surrounding system needs to keep a reliable record of the work, save pending decisions, and check what has already happened before resuming. It also needs to enforce permissions rather than relying only on instructions to the AI. NIST’s work on agent identity and authorization highlights the importance of controlling what an agent is allowed to do.

A question of roles

When we understand a recurring task well enough, we can give it a clear, reusable way of being done. AI can coordinate those capabilities where flexibility helps, without solving every small problem from scratch.

The result is a system built around capabilities the business can understand, reuse, and control—whether those tools are coordinated by AI or by a fixed workflow.

Recent articles

Your privacy

We use Umami analytics by default. You can turn it off and choose whether to allow chat and session recordings.

Customize

Necessary technologies, including form protection, remain active.