What should be automated first in testing?
Whatever is most dangerous to break: money calculations, access rights and the main product scenario, such as sign-in, the core action and payment. Next come reactions to external service errors and input validation. A good habit is to add a test after every fixed bug so it does not return.
More in the guide to test automation.