Soda machine on Alexa?

Hooking up a controller in line with each motor that dispenses seems easy enough. But there has to be some feedback circuit that tells it when to stop. I think that will be the thinking out of the box part.