Star Trek says we won't, but even if some utopia is achieved there will be a painful middle-time where there are jobs that haven't been replaced, but 75% of the workforce is unemployed and not receiving UBI. (the "parasite class" as Musk recently referred to them)
important point here. regardless of what happens, the transition period will be extremely ugly. it will almost certainly involve war.
Hopefully only massive civil unrest, riots, city burnings etc. But to save themselves the demagoguery may point across the seas at the Other as the source of the woe.
Because the kind of people who'll own all the profits aren't going to share.
I dont think AI will lead into any form of working communism, so one still has to pay for products and services. It has been tried ad nausea and it always fails to calculate in human differences and flaws like greed and envy, so one layer of society ends up brutally dominating the rest.