Not everything an agent can do should be done by an agent
Most SAP processes are fully specified before you start, and those belong in a deterministic flow rather than in an agent. The document pattern that keeps working, the one purchasing case where an agent earns its place, and the rule that separates the two.
Read the article