The crux of this entire issue surrounding replacing people with agents, is that agents should pay taxes. If we're losing people that pay taxes our social safety nets will crumble. Maybe that makes the math more in favor of actually using humans too.
We need UBI. Taxes are still there anyway, company income/profit tax, VAT, and maybe we can have other taxes too for automatically-generate income, same as with investments/dividend/gambling tax and stuff.