The Nutri-Matic machine on the luxury starship "Heart of Gold" (one careless owner) was an early example of AI vending technology. See http://www.anvari.org/fortune/Miscellaneous_Collections/89279_he-had-found-a-nutri-matic-machine-which-had-provided-him-with-a-plastic-cup-filled-with-a-liquid-that-was-almost-but-not-quite-entirely-unlike-tea.html for further information and prices.