In a workflow your code picks the next step; in an agent the model does.
Often both: A workflow with one bounded agentic step where the path genuinely varies.