Adrian Wyld/The Canadian Press Prime Minister Justin Trudeau participates in a discussion at the GovTech summit in Paris, France on Nov. 12, 2018.

The medium is not without its benefits, Trudeau said, pointing to the ease of putting out a tweet of condolence or support being easier, more direct and resonating more with citizens than issuing a press statement carried by traditional media.

Without mentioning anyone by name at an event in Paris on Monday morning, Trudeau suggested there are politicians who are trying to use platforms like Twitter to foster polarization and controversy in the electorate.

PARIS — Politicians working to harness the power of social media to connect with voters need to figure out how to do so positively in the face of leaders using those platforms to undermine democracy, Prime Minister Justin Trudeau says.

That same ease and directness that Trudeau said can be used to build confidence in government and democratic institutions can just as easily be used by politicians trying to "make you angry or make you divided or make you hate your neighbour" — pitting one kind of social media politician against the other.

"If it ends up in a screaming match between one side versus the other side, whoever is better at nasty is going to win," Trudeau said at a Paris conference on the use of technology by governments.

"If we actually think about it, it's easier to push someone into being angry — it's harder to pull them into being positive and earnest and involved."

The discussion was driven by U.S. President Donald Trump, who regularly uses Twitter to fire up his legions of followers and vent at his critics.

Trudeau has been a target of Trump's irate tweeting, particularly after the G7 meeting in Charlevoix, Que., over the prime minister's comments on trade negotiations.

When asked directly to comment about Trump's Twitter usage, Trudeau suggested Trump is just being Trump.

If we actually think about it, it's easier to push someone into being angry — it's harder to pull them into being positive and earnest and involved.

"I think it's important that people are authentic and he's certainly authentic," Trudeau said.

The comments came one day after Trudeau and other world leaders issued dire warnings about leaders calling themselves nationalists and the problems they pose for maintaining peace and the world order built in the aftermath of the world wars.

Again, no names were mentioned, but the warnings seemed clearly aimed at Trump who has repeatedly professed his "American" nationalism.

Trudeau suggested he doesn't call out Trump by name in any criticism in order to keep the peace with Canada's neighbour to the south.

"One of the things that Canadians expect of me is to continue to stand up for Canadian values, for Canadian interests as I always do loudly and clearly sharing our perspectives on how to build a better world, while at the same time keeping a constructive relationship with our closest neighbour and largest trading partner — and that's what I will continue to do," he said.

Trudeau also took time at the conference to tout his government's progress on digitizing the way it delivers services.