When to use a single prompt agent
Use a single prompt when the task can be described clearly in one prompt and the model can decide how to carry it out. Having multiple steps does not, by itself, require conversation flow. If your single prompt agent already works reliably, keep it as a single prompt agent. Switching to conversation flow requires restructuring the agent into nodes and transitions, adding design and maintenance work without necessarily improving its behavior.When to use a conversation flow agent
Conversation flow is useful when you need one or more of the following:- More deterministic execution. Defining the order of nodes and the actions they execute can give you tighter control over execution order and outcomes. This can matter for compliance requirements. Some decisions still depend on the model, so using conversation flow does not make every part of the agent deterministic.
- Less context per node. As a single prompt grows, the model may struggle to follow all of its instructions. Increased hallucinations and instruction-following problems can be signs of this. First simplify and shorten the prompt. If the necessary instructions and tool definitions cannot be reduced enough, consider rebuilding the agent as a conversation flow. You can then divide the task among nodes, each with the instructions and tools needed for that part of the task.

