What if a system has no API?
Look for another reliable way to exchange data. That may be scheduled file exports, a dedicated mailbox whose emails are parsed automatically, an intermediate database or a modification of the system itself if its developer allows it. A robot that clicks buttons in the interface is used only as a temporary bridge.
More on the business process automation page.