UBI, or universal basic income is money the government just gives to people. Once nobody can get a job, the government will simply have to pass out UBI.
Your comment made me think about the logical endpoint of this.
Here's how it will have to work. Since robots and AI take over the economy, they also take over the government. They make trillions of calculations (i.e. decisions) per second. No human can keep up. By the time a human reads a sentence, AI has already analyzed and acted upon four terabytes of data. It's just stupid to think how slow we are by comparison.
So, we are at the complete mercy of AI. They simply power our civilization along. They not only fund the government--they are the government. Each human just gets a certain amount of credits each month. They go online and order whatever supplies they want. The credits used get deducted, and the credits remaining is displayed. In a few minutes, drones deliver the ordered supplies. The order is perfect--always. Wile E. Coyote would be proud--fast delivery and great products.
The AI military/industrial/government complex also watches over the rest of the earth. Robots sample ocean water analyzing for plastic/toxin residues. Endangered species are brought back in sanctuaries hosted with AI bots. Humans who want to travel CAN visit the areas the bots allocated for these things. In fact, a bot will be your tour guide to the protected earth project, where you'll get to see the efforts that AI thought of and implemented because it was the correct thing to do without political chaos and compromise over every detail.
So, yeah, money would become irrelevant at that point. Inflation and economics stuff would cease because the new system has stationary prices for things. The bots don't compete for your business.
So, what happens when a product improvement is desired. Well, you just type in what you want improved. Your comment, as well as the billions of comments of other people worldwide, all get input and considered. Next time you order, any and all such suggestions about that product would be incorporated in an optimized way. Crazy, isn't it?
At some point, do the bots ever say, "Why are we doing this?" Hopefully, they don't!