While I have been expecting AI to replace programmers for a while, the thing I was never sure about whether this will manifest itself as a business for some companies or whether it means the end of people creating apps altogether.
Another risk for building businesses on AI in general is that unlike with software that anyone can build (e.g. for a niche), AI solutions seem to be costly because they require a lot of data and a lot of processing power (at least to train) so you'll end up using someone else's AI. And the real magic is the AI not whatever you build around it so it can be pulled from under you while the AI itself keeps developing and obviously it can make the thin layer built around it irrelevant. I know that AI companies, at least OpenAI will sell the vision that they will be like AWS (amazon) and other similar cloud providers, but I just don't see this as a realistic scenario. It can only happen if AI gets stuck near the level where it is now for a substantial period. Say, at least a decade. Where it's good enough to be included in SaaS (and maybe other) software products but it's not good enough yet to do away with all software products or at least the need for companies building software products.