I’m building an AI system and trying to understand when to use a workflow (deterministic pipeline where I hardcode the steps) versus an agent (LLM-driven, decides which tools or actions to take at runtime). From what I’ve read, things like prompt chaining or routing are considered workflows, while tool-using agents are more autonomous.