Pope Francis has challenged leaders of the world's wealthy democracies to prioritize human dignity in developing and using artificial intelligence.