The former president's experiment with artificial intelligence highlights both its impressive capabilities and potential dangers.