Amazon’s CEO Andy Jassy told employees in a memo that AI will reduce its numbers of corporate workers in coming years.