So your proposal is that the companies have to 'automate everything', which is a weird and extremely labour intensive proposition (I run a company, I have over 200 people working now and we are constantly automating things and the more we automate the more people I hire. Of-course I hire people in the most cost conscious manner, so I have a global work force). So 'automate everything' is on the companies, but then 'tax companies' is on the companies as well. The companies are taxed already, by the way.
So your next step is 'Pay UBI'. OK. I am OK with 1 dollar of UBI for every man, woman and child a month. I am against 2 dollars or more of UBI for anybody. What is this UBI you are proposing, who is going to pay it out of what?
Now, lets say there are 10,000,000 companies (that's 10 million) and there are 300,000,000 people (300 million).
Your point I suppose is that all of those 10 million companies are automated and nobody has anything to do in them manually and then everybody gets the money that these companies are making via UBI.
The companies are making money by selling to people and then the money they get in revenues are taken away from the companies are given back to the people so that this cycle can continue.
What you are proposing is that it is possible to build and run a perpetual motion machine (known as the Perpetuum mobile), because there is no other way to describe it.
I can tell you this much: if I could automate everything in my company and not hire another person, I would do this already and this company would be my perpetual motion machine, making money without manual labour. Unfortunately it's a rare company (if any at all) that can do this total automation, that's first. Secondly the money that goes into automation, that's company's money (in my case that's my money), so when/if stuff gets automated here, that's because I am spending my money to do it and any productivity gain that I get from this type of automation goes back into reinvesting into the company or I use it for other purposes, but it definitely has nothing to do with anyone else that's not part of my company and it's not going to be feeding your UBI ideology.