Schools in Wales have been exploring both the "benefits and challenges" of using artificial intelligence (AI).