How do you think unions will fair in this country as automation moves forward?
That's too vague a question. I have friends in the trades who love their union right now. I don't see that changing anytime soon.
For me unions are a balancing reaction to the power of industry over the worker. If automation increases industry power, that makes unions more necessary, not less. The further imbalance in power may necessitate other reactions beyond unions (such as UBI), but I don't see how they eliminate the need, quite the opposite.
If you remember, America's union movement in fact originally started when another form of automation led to workers becoming concentrated in factories and a similar decrease in worker power had occurred.