(RNS) — During Advent, the liturgical readings are full of Scriptures describing the end of the world and the coming of Christ. These readings promise a time of prosperity and peace but also warn of disaster and judgment. 

The readings this year are remarkably on target as the world faces the promise and dangers of artificial intelligence and other forms of technology. AI has the potential to do incredible things — like find cures for cancer and other diseases — but even the creators of AI warn that it also has the potential for destroying humanity.

Will AI bring about the parousia or the apocalypse? 

AI has already achieved remarkable advances in mathematics and data analysis. Using AI, search engines now respond to questions with detailed explanations rather than just links. AI products are analyzing data, doing reports and writing emails and letters.

But AI also offers a temptation for companies that might seek greater efficiency, control and profit by replacing humans with computers. In some fields, such as customer service and software development, AI is beginning to replace entry-level workers. The job losses affect real people and families.

This past year has also given us many examples of what can happen when technologies connected to the internet fail. In our interconnected world, we can do amazingly complicated things with ease. But human error and malicious actors can bring this technology crashing down. 

Hackers have not only attacked individual computers but also disrupted systems run by hospitals, businesses, governments and schools. Sometimes they steal money and confidential information. Other times they lock up the systems until institutions pay a ransom.

Artificial intelligence is going to make the job of hackers easier. AI has found thousands of holes in commonly used software that need to be plugged immediately. Fixing complicated software programs is not easy. A fix in one place may cause problems elsewhere.

Recent technological failures have hit airlines, banks, tech companies and government agencies, including major companies like United Airlines, Delta Air Lines, JPMorgan Chase, U.S. Bank, Bank of America and Wells Fargo. Even Microsoft and Apple had significant technical problems.

So far, none of these failures has been catastrophic, but experts warn it is only a matter of time before disaster hits, because in the race between software companies and hackers, the odds are in favor of the hackers. Hackers only have to get through once; defenders must win every time.

Civilization is not possible without any technology, but our widespread dependency on computers and the internet has become so widespread that life as we know it would cease to exist without them.

How do we protect ourselves from the AI apocalypse while preserving the good that AI can do?

The Advent Scripture readings remind us that the parousia, or Second Coming of Christ, is a time of justice when the fruits of the earth are shared by all. A banquet is prepared and all are invited.

Meanwhile, in the here and now, as Pope Leo explained in his encyclical “Magnifica Humanitas,” we must work together for the common good, which is defined as “the sum total of social conditions which allow people, either as groups or as individuals, to reach their fulfillment more fully and more easily.” This is the opposite of simply seeking power, control and profit.

Regulating AI will not be easy, because the field is developing so fast that even its creators are not sure how it works or how to control it. But the guiding principles from Catholic social doctrine are laid out in “Magnifica Humanitas“: the dignity of the human person, human rights, the common good, the universal destination of goods, subsidiarity, solidarity and social justice. 

Applying these principles will require the combined wisdom and prudence of AI experts, government officials and the business community. This cooperative process must be transparent and hold the players responsible for their actions and inactions. This will require congressional hearings and oversight that lead to laws and regulations that govern the creation and use of AI.

This will mean stopping the release of AI programs that can threaten the foundations of modern technology. It means slowing down and thoroughly examining the consequences of AI on our world. It means joining with other countries in taming this technology before it is too late.

Ultimately, the creators of AI must be held responsible for their creation. The motto in Silicon Valley has been “move fast and break things.” This can no longer rule. The new rule must be: “You break it, you pay for it.” 

Technology will not bring about the parousia. Advent reminds us that we are saved by Jesus, not technology. As Isaiah says, 

The Spirit of the LORD shall rest upon him:
a Spirit of wisdom and of understanding…
he shall judge the poor with justice,
and decide aright for the land’s afflicted.
He shall strike the ruthless with the rod of his mouth,
and with the breath of his lips he shall slay the wicked. …

Then the wolf shall be a guest of the lamb,
and the leopard shall lie down with the kid;
The calf and the young lion shall browse together,
with a little child to guide them. …
There shall be no harm or ruin on all my holy mountain;
for the earth shall be filled with knowledge of the LORD,
as water covers the sea.

Thomas J. Reese, S.J., is a senior analyst for Religion News Service. Previously he was a columnist at The National Catholic Reporter (2015-17) and an associate editor (1978-85) and editor in chief (1998-2005) of America.