Politicians have always come to Hollywood to raise cash, but since Donald Trump became president, celebrities are revising that script — using their star power to affect political change, instead of just raising funds.

It’s more than mere celebrity activism. With the 2018 midterms around the corner, Hollywood stars are pushing hard for action on issues ranging from human rights, to gun control, to the threat of nuclear war. And their talent agencies — whose main function is typically to get movie stars the best jobs — are playing a starring role.

The groundswell for political engagement has become so overwhelming since Trump's election that ICM Partners, a talent agency that previously helped stars such as Shonda Rhimes and Bradley Whitford with “civic engagement,” set up a brand new division last year led by political strategist Hannah Linkenhoker.

“The world is really spinning right now — everybody’s looking for ways to make a difference and to be engaged,” ICM managing partner Chris Silbermann told Variety. “We want to take our engagement to another level.”

One example: Last month, Linkenhoker and ICM organized a get-together in Washington for “Homeland” actress Nazanin Boniadi, who moderated a bipartisan public event that aimed to put the status of Iranian women and women’s rights at the center of discussions about the White House's Iran nuclear deal. The event was attended by Sens. Chris Coons, D-Del.. and Thom Tillis, R-N.C.

The actress also met Sen. Kirsten Gillibrand, D-N.Y. “The message was, ‘You’re a leader on human rights in America, you should know about women in Iran,'” said Linkenhoker.

“A lot of people think [the upcoming midterm elections] are the most consequential elections of our lifetime,” said one in-house political strategist for a major talent agency.

“A lot of people think this is the most consequential election of our lifetime,” said Linkenhoker of the midterms, noting that it's the first opportunity since Trump became president that voters nationally can express themselves.

William Morris Endeavor, run by Ari Emanuel — the brother of Rahm Emanuel, the mayor of Chicago and a former chief of staff for President Barack Obama — launched its own in-house political branch just 20 days after Trump was elected.

“No matter what side of the aisle you sit on or where you live in the world, the call for meaningful and sustained civic engagement is louder than ever,” read a company memo at the launch, urging staff to get involved.

Amos Buhai, vice president of government relations at parent company Endeavor, said the PAC was not just for staff but for clients. “A lot of clients were trying to figure out what just happened and wanted to create a vehicle to support candidates who shared their values of inclusivity, entrepreneurialism and voter participation.”

Since then, the company has partnered with a host of organizations from UNICEF to Everytown for Gun Safety to match entertainment clients with causes. That is not a practice without some risk, since celebrities airing their political views can sometimes alienate a portion of their audience.

From Taylor Swift to the Dixie Chicks, speaking out can help or hurt celebrities in a big way. Swift recently endorsed two Democratic candidates in Tennessee, where she moved as a teenager. In a Sunday post on Instagram, Swift said she supports LGBTQ rights and is against systemic racism and other forms of discrimination. Trump said Monday, "Let's say that I like Taylor's music about 25 percent less now."

"I think that this is the time for all of us to step a little bit out of our comfort zones and stretch and actually use our voices,” Tracee Ellis Ross, star of ABC’s “Black-ish,” told Billboard News about Swift. “And when you have a platform, I think it’s a good place to actually speak loudly.”

I’ve said it before and I’ll say it again. For me, this is not about religion or one against the other - it’s about the greed. #FreePalestine #freegaza #coexist ️ — Gigi Hadid (@GiGiHadid) May 15, 2018

Earlier this year, model Gigi Hadid saw first hand what can happen when professing an opinion. Hadid has been promoting the work of UNICEF, along with Tascha Rudder, executive director of the Endeavor Foundation, the philanthropy arm of WME's parent company. But when Hadid, whose father is Palestinian, spoke up on Twitter saying that Jews and Palestinians should try to co-exist peacefully, her comments received the inevitable Twitter takedown.

One of the worst examples of backlash after wading into political debate happened in 2003 when Natalie Maines, lead singer of the Dixie Chicks, criticized plans for the war in Iraq. After she told a concert crowd, "We're ashamed that the president of the United States is from Texas," fans burned the band's albums and radio stations blacklisted the group for years.

Not everyone thinks celebrities are the most effective agents of change. Brett Bruen, a former diplomat and director of global engagement at the White House under Obama, said the women’s march after Trump's inauguration and calls for gun control after mass shootings have driven stars to speak up, but being an effective change agent is much harder.