Develop domain expertise, where by “domain” I mean the business domain of the company you are working for. Switch companies if you are working for one whose business domain is too trivial, e.g. stuff widely (or more than superficially) discussed on the internet. AI won’t catch up that quickly to such domain expertise, especially in areas where companies care about their corporate knowledge not being shared with the big AI tech companies.
In the longer run, try to get into a position where you can be one of the roles that shepherd the AIs working for your employer. It won’t be AIs all the way down (or up), probably.