Keurig Dr Pepper Inc. and Anheuser-Busch InBev SA are pushing ahead with an idea to automate home bartending with a K-Cup machine for cocktails, seeking to tap new areas of growth as sales of their core products slow.

After a recent pilot in St. Louis, the Drinkworks drinkmaker machine this year is rolling out across Missouri, Florida and California.

AB...