Artificial intelligence is reshaping retail, offering companies new ways to engage shoppers and drive sales.