After Kamala Harris secured the Democratic presidential nomination in an unprecedented party upheaval, she got some advice from former US president Barack Obama: Tap the campaign talent pool that is out there; you can have anyone you want.
Within days, Mr Obama's former campaign manager David Plouffe and other high profile alumni from Mr Obama's 2008 and 2012 election efforts joined her nascent campaign.
"He just wanted her to know that she was in a position to recruit anyone she thought they needed," said a source familiar with Mr Obama's and Ms Harris' conversation.
Democrats have coalesced around Ms Harris as opinion polls swing in the party's favour, but a month ago some were openly questioning whether she was the right choice to beat Republican candidate Donald Trump when president Joe Biden was forced out of the race after a halting debate performance.
Mr Obama waited to endorse Ms Harris for several days, planning to stay above the fray in case there was a competitive nominating process. When it was clear no significant challengers were coming, he jumped in.
Ex-Obama advisers, including Mr Plouffe and 2012 deputy campaign manager Stephanie Cutter, quickly joined Ms Harris' campaign, cementing the former president's imprint on her political operation and underscoring his support for her and his continued influence within the party she now leads.
Obama and Harris relationship
Mr Obama, 63, the keynote speaker at the Democratic National Convention in Chicago on Tuesday, has known Ms Harris, 59, for two decades, aides say. They first met at a California fundraiser in 2004.
Both rose in local politics, she as a prosecutor and he as a community organiser and state senator, before entering the US Senate. Both have represented historical firsts - he as the first Black US president, and she as the first woman and first Black and South Asian person to serve as vice president.
Ms Harris was an early supporter of Mr Obama's 2008 presidential campaign when she was San Francisco district attorney, showing up at his campaign launch in Springfield, Illinois, and knocking on doors for him ahead of the Iowa caucus that helped propel him to the nomination.
He admired her work in California, viewing her as tough, but created a stir in 2013 by calling her "by far the best-looking attorney general in the country" at a fundraiser they both attended.
He phoned her later to apologise.
Mr Obama backed Mr Biden's pick of Ms Harris as vice president, according to a Democrat briefed on Mr Biden's deliberations. He has kept in regular touch since the 2020 election, aides say. The former president and his wife Michelle have shared dinner with Ms Harris and her husband, Doug Emhoff, at least a couple times.
"She was an early supporter of his, and he was an early admirer of hers, without question," said David Axelrod, a longtime Obama adviser. "He will not be talking about someone he doesn't know."
Unsolicited advice
Democrats' move not to mount a competitive nominating process after Mr Biden stepped aside seemed to surprise the former president.
"Although you called for an open process and ... Democrats have ... put in place an open process, it appears that people feel very strongly that you need to be our nominee," Mr Obama said in a call with Ms Harris, according to a transcript released by his office.
A clip of the Obamas congratulating Ms Harris warmly in the call was released by the Harris campaign in a one-minute video that has been viewed by millions.
A Harris aide said the former president now reaches out to Ms Harris with unsolicited advice, which the aide said was welcome, even if she does not always take it. Ms Harris spoke to Mr Obama during her vice presidential selection process, the aide said.
"He has offered to support her campaign in any way that he can – including policy or strategic advice, fundraising, and of course campaign travel to help get-out-the-vote," another Obama aide said.
Echoes of 2008
Echoes of Mr Obama have been evident at Ms Harris' rallies since she became the Democratic standard bearer, drawing crowds of thousands.
"They're very different political figures, but certainly the excitement around her is familiar to those of us who were around in 2008," said Jamal Simmons, a former Harris adviser.
Mr Obama's campaign buzzed with the themes of hope and change; Ms Harris' campaign, with running mate Tim Walz, the governor of Minnesota, has found energy in promoting joy.
The Harris aide said she was pleased that both Obamas were speaking at the convention. Michelle Obama, who famously called on Democrats in 2016 to go "high" when Republicans went low with political digs, is hugely popular in the party and, polls show, would have had significant support for a presidential run herself had she shown a desire to pursue one. She didn't.
Meanwhile, former president Obama remains an almost mythical figure among Democrats.
His eight-year presidency is viewed with nostalgia and his cultural status - he still releases closely watched music play lists and summer reading lists, seven years after leaving office - has kept him relevant with young people in the party's base.
Bumps in relationship with Biden
Mr Obama's influence with Ms Harris has grown at the same time that his relationship with Mr Biden, his former vice president, has become more complicated.
Mr Obama, along with former House speaker Nancy Pelosi, is viewed by some as having been a driving force behind the party revolt that led Mr Biden to step aside over his disastrous debate against Mr Trump in late June.
Mr Obama's aides say only that he served as a sounding board for the president.
A White House official acknowledged that Mr Biden had been upset with those who wanted him to drop out of the race but said he was confident in his decision now and would work with Mr Obama to make sure Mr Trump is defeated in November.
Mr Obama and Mr Biden have had multiple ups and downs.
Some in Mr Biden's orbit believe Mr Obama put his thumb on the scale for Hillary Clinton to be the 2016 presidential nominee, rather than Mr Biden, who was considering a run even while grieving the death of his son Beau. Mr Obama gave a eulogy for Beau Biden.
"You can love and have affection for someone, and it can still be complicated," said one Democrat with ties to both men.
Mr Biden will not be present for Mr Obama's prime-time convention speech. After making his own remarks on Monday night in Chicago, he is spending the rest of the week on vacation in California.