Stores of all kinds are using artificial intelligence to sell everything from luxury handbags to hay for horses.