As the squeeze on spending tightens, can AI unlock retail success?