When should you choose an RPA robot and when an API integration?
If a system has an API, webhooks or exports, an integration is almost always more reliable: it is faster and does not depend on how screens look. A robot fits when there is no API, the system cannot be changed, the process is uniform and the interface rarely changes. Often a robot is a stopgap until the system is replaced.
More in the guide to RPA.