All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad (
) is His Slave and Messenger.
There is no harm in establishing a company specialized in artificial intelligence and automation solutions, on the condition mentioned by the questioner, namely that the services provided are restricted to lawful businesses and permissible fields.
As for the possibility that this may lead to the loss of some jobs, this does not affect the permissibility of such work. Similar outcomes have occurred with many modern inventions. Moreover, new types of jobs and opportunities may also arise as a result.
Allah Knows best