WASHINGTON — President Obama said on Monday that he had urged President-elect Donald J. Trump to reach out to minority groups, women and others who were alienated by his campaign, during the president’s first news conference since Mr. Trump won the election in a stunning upset that has imperiled Mr. Obama’s legacy.

“There are certain things that make for good sound bites but don’t always translate into good policy, and that’s something that I think that he and his team will wrestle with,” Mr. Obama said in the White House briefing room. “I did say to him, as I’ve said publicly, that because of the nature of the campaigns and the bitterness and the ferocity of the campaigns, that it’s really important to send some signals of unity, and to reach out to minority groups, or women, or others that were concerned about the tenor of the campaign, and I think that’s something that he will want to do.”

Mr. Obama also said he thought that Mr. Trump was entering office with fewer set policy ideas than other presidents-elect. “I don’t think he is ideological,” Mr. Obama said. “I think ultimately he is pragmatic.”