Unemployment is low, wages are finally outstripping inflation, inflation is falling and there is huge investment in factories and infrastructure.
It doesn’t appear that a recession is on it’s way but rather the free money that was flowing into the IT sector is causing all these companies to become profitable fast.
Thus the lay-offs.
Most “AI” I have seen are basically fancy iterations of autocomplete.