If the world takes the right steps, AI will be a force for good and leave everyone better off.