Here is a smart coffee/espresso machine that combines with your mobile phone to make delicious drinks for you on a daily basis. It comes with Amazon Dash enabled. You will be able to customize your coffee from your mobile device without having to worry about running out of capsules.
When you are running low on capsules, new ones are automatically ordered from Amazon. You get a notification before it is time for a new order. More info is available here.