(CNN) In the closing days of Alabama's rancorous special US Senate election between Doug Jones and Roy Moore, a procession of black politicians and celebrities descended on the state.

Jones, a Democrat, stood shoulder to shoulder with Democratic former Massachusetts Gov. Deval Patrick and Democratic Rep. Terri Sewell of Alabama at a historic church in Selma where more than 50 years ago Dr. Martin Luther King Jr. began his famous march to Montgomery. Democratic Sen. Cory Booker of New Jersey rallied voters for Jones at Alabama State University, a historically black institution in Montgomery, and Sen. Kamala Harris, a California Democrat, hit the Birmingham radio airwaves.

There were appearances by the basketball star Charles Barkley and "Orange is the New Black" actor Uzo Aduba. Former President Barack Obama weighed in with a robocall.

"This one's serious," Obama said in the call, intended to specifically reach black voters. "You can't sit it out."

The message was apparently received.

Black voters played a pivotal role in Jones' upset win over Moore on Tuesday. According to CNN's exit polling, 29% of the Alabama electorate was made up of black voters, and 96% of those voters backed Jones. Black voters turned out for the special election at a higher level than their share of the electorate when Obama was on the ballot in 2008 and 2012. What's more, a nearly unanimous 98% of black women backed Jones over Moore.

And African-American Democrats say they've hit on a playbook for 2018: Empower -- and trust -- local leaders, engage voters early and often, and provide resources to activists, particularly black women, who keep the effort going far beyond Election Day.

"The secret is out. It's perhaps been a secret too long, and that is that the secret success of African-American political influence has been and continues to be the work and fidelity to the cause by black women," Rep. Emanuel Cleaver, a Missouri Democrat and member of the Congressional Black Caucus, told CNN. "The numbers from Alabama opened the door, and now the world can see what has empowered the progress that African-Americans have made since 1965."

JUST WATCHED Meet Alabama's new Democratic Senator to be Replay More Videos ... MUST WATCH Meet Alabama's new Democratic Senator to be 02:13

What worked

Operatives and activists who worked to mobilize black voters ahead of Tuesday's election say their success came from a patchwork effort that included resources from the national Democratic Party and super PACs, with leadership by local politicians and community stakeholders. Part of that effort, according to DeJuana Thompson, who founded the Alabama-focused Woke Vote, is starting early and staying engaged.

Thompson said she began to have conversations about getting out the black vote in June or July.

"I started thinking about it the moment when [Jeff Sessions] became the attorney general," she told TV One's Roland Martin, which left the Senate seat vacant. "That was the time that we started organizing resources. We knew we could not wait on the Democratic Party. We knew we could not wait on the campaign itself, so we started talking to the donors about putting money into an independent black political structure that could move bodies."

The Collective PAC, which traditionally supports African-American candidates, gave $50,000 to boost Jones, according to Stefanie Brown James, who launched the PAC with her husband in 2016. The Collective PAC pushed radio ads that leveraged the star power of black celebrities including Spike Lee and Jenifer Lewis, and the group says it sent nearly 300,000 text messages encouraging black voters to go to the polls.

"This was definitely a departure for us," James told CNN in an interview. "We're definitely committed to supporting black candidates specifically."

The group backed Jones, James said Wednesday, because the election created a situation "where black people can decide if the next senator from the state is going to be a person who is in the tradition of George Wallace or who literally stood against the [Ku Klux] Klan to bring justice to all of black America."

"This vote was extremely important, not just for Alabama, but for black people to show ourselves that yes, our vote is meaningful and it is powerful, but it has to be used for us to show our value," she said. "We had to speak up in this race."

New role for DNC?

Future efforts also could mean a changing role for the Democratic National Committee.

While many of the ground efforts in Alabama were spearheaded by local activists, the DNC quietly spent nearly $1 million on Jones' Senate campaign, according to a party aide, focused largely on outreach to the African-American and faith-based communities, as well as young voters. All three groups were pivotal in ensuring the committee invested in placing influencers in key areas: Northern Alabama, the "black belt" and Jefferson County, communities with high concentrations of African-Americans.

Bakari Sellers, a former Democratic nominee for lieutenant governor in South Carolina and a CNN political commentator who campaigned for Jones, said that historically the Democratic Party and candidates engaged with and mobilized for the black vote only around Election Day.

"You know, I think it was Leah Daughtry who said it best. She was talking about I don't mind being asked to the prom, but give me more than an hour -- being asked to the dance, give me more than an hour to get dressed," Sellers said of the 2008 and 2016 Democratic convention CEO. "It seemed as if the Democratic Party was hustling at the last minute, because they took our votes for granted. They just expected us to be there. What this race showed us: One, you have to have a connection with African-American voters."

Some Democrats say the party proved in Alabama that it is turning a corner and is more effectively courting the black vote.

"For one of the very few times in history, they listened to black people who knew how to get black people out to vote," said Cleaver, the Missouri Democrat. "I know that sounds weird, but one of the arguments that we've had around the Democratic Party for a long long time -- even to the point where some Democrats said maybe we're not wanted in this party -- has finally reached the ears of some people who will accept the fact that black people know black people."

Waikinya Clanton, the DNC's director of African-American outreach, told CNN that the DNC's chairman had a call with black leaders in Alabama to formulate the best outreach strategy. "They told him what was needed," she said.

"What worked well was entrusting people from the community that the community recognized and resonated with," Clanton told CNN. "They served as validators."

Jones touted his connections and outreach Wednesday.

"I've been around for a long time," Jones told reporters. "Those leaders knew me and they knew my background and they knew they would have a partner in the United States Senate. They felt like they haven't had one for a while except for Congresswoman Terri Sewell."

Sewell, the lone Democratic member of Alabama's congressional delegation, as well as members of the Congressional Black Caucus and black mayors, worked with the DNC, Amanda Brown Lierman, the committee's political director, told CNN.

She also stressed the importance of meeting people where they're at, online and offline, and said the committee was able to get 85,000 more black registrants into the voter file for get out the vote programming before the Alabama special election.

Deep-pocketed outside groups also worked -- and spent heavily -- to mobilize Alabama's African-American voters to the polls. Senate Majority PAC spent $6 million on the Alabama race, including $2 million on an on-the-ground program aimed at black voters with partner Black PAC. Senate Majority PAC also partnered with Priorities USA Action on a $1.5 million digital advertising campaign that the groups say reached 1.4 million Alabama voters. One million dollars of that ad campaign, according to a source, was specifically dedicated to mobilizing the black vote.

In the hours following Jones' stunning victory, Twitter was filled with messages of thanks for black women, including from DNC Chairman Tom Perez -- who added his gratitude for the work of black women in boosting Democrat Ralph Northam over Republican Ed Gillespie in Virginia's gubernatorial race.

"Let me be clear: We won in Alabama and Virginia because#BlackWomen led us to victory," Perez tweeted. "Black women are the backbone of the Democratic Party, and we can't take that for granted. Period."

James, The Collective PAC's founder, said, though, that there needs to be one more step.

"Even today, everyone is congratulating black women for once again saving the day," she told CNN. "But now we need to get to the point where we're going past congratulations and moving to contributions that will actually support black women and black organizations and black people that are working to turn our communities out to vote."