Artificial intelligence societies