Carrefour said it will offer shopping services directly via artificial-intelligence platform ChatGPT as the French grocer aims to capitalize on a boom in AI use.