The pontiff called for an ethical framework for artificial intelligence and warned that technology must serve life, peace and the common good.