How AI decides what and when you buy before you do