When a Workflow Needs an Agent

OpenAI’s agent guide answers a narrower question than “Where can AI help?”: when should an AI system manage the execution of a workflow rather than simply generate a response inside it? This distinction matters after a team has mapped its work. The decision is not whether a model can produce a plausible output, but whether adaptive control across several steps is worth the added burden of tools, evaluation, security, and oversight.

The guide’s definition gives that decision a clear boundary. An agent is a system that independently accomplishes a task on a user’s behalf. “Independently” does not mean unsupervised or infallible. It means that the system can manage a sequence of work within defined limits, recognize when the sequence is complete, and stop or return control when it cannot proceed safely.

An agent controls the workflow, not just the conversation

A workflow is a sequence of steps that meets a user’s goal. The guide uses examples such as resolving a customer-service issue, booking a reservation, committing a code change, or generating a report. In each case, the useful outcome is not one well-written sentence. It is a series of decisions and actions that moves the request toward completion.

The first defining capability is control of workflow execution. The language model helps decide what step comes next, recognizes a completion condition, and can correct an action when the result shows that the work is not finished. If the system fails, it can halt and transfer control back to the user. This loop is what separates an agent from a model that answers a question and waits for the next instruction.

The second capability is access to tools. An agent needs a way to gather context from external systems and, where authorized, take action in them. It may retrieve a customer record, read a document, search for information, update a database, send a message, or hand a ticket to a person. The guide says the agent dynamically selects tools according to the current state of the workflow, while operating within guardrails.

Those capabilities create a control boundary. The model proposes or chooses a next step; the tool crosses into another system; the external system returns context or an action result; the agent decides whether the workflow is complete or needs another step. A defect can arise at any boundary. The model may misunderstand the goal, the data tool may return incomplete context, the action tool may have broader permissions than intended, or the agent may mistake a partial result for completion.

A chatbot can be useful without crossing these boundaries. A single-turn LLM application can summarize a document or draft an answer without controlling what happens next. A sentiment classifier can label text without executing a sequence. The guide explicitly excludes such applications from its definition of an agent when the LLM does not manage workflow execution. The difference is functional, not promotional: who owns the next transition, and what happens after the output is produced?

sequenceDiagram participant U as User participant A as Agent participant D as Data tool participant G as Guardrail participant X as Action system participant H as Human owner U->>A: State a workflow goal A->>D: Retrieve context D-->>A: Return context A->>G: Check proposed step alt Safe and authorized G-->>A: Permit action A->>X: Take action X-->>A: Return result A->>A: Check completion or correct A-->>U: Report result else High risk or failure G-->>A: Pause execution A->>H: Transfer control H-->>U: Resolve or direct next step end

The diagram shows why an agent is a system rather than a model in isolation.