How to use AI to manage inventory in a time of stock shortages