Hillary Clinton will be appearing on an upcoming episode of Madam Secretary, and details have been released ahead of the season 5 premiere. The CBS political drama stars Téa Leoni as Elizabeth McCord, a former CIA analyst who assumes the position of Secretary of State following the mysterious death of her predecessor. The series, which is executive produced by Lori McCreary, has drawn generally positive reviews and has commented on many of the real-life issues facing the U.S. government.

Though Leoni's Secretary McCord has been compared to Clinton, the 2016 presidential candidate has not appeared on the series before now. Madeleine Albright, who held the position of Secretary of State under Clinton's husband's administration, appeared in a season 2 episode of the series. It was first announced in July that Albright, Clinton, and another former Secretary of State, Colin Powell, would make an appearance in this episode. Now, just days before the premiere, some insight into what went on behind-the-scenes has been shared.

TVLine reports that, during a set visit last month, McCreary and stars Keith Carradine and Erich Bergen revealed what it was like to have Clinton and the other former Secretaries of State on set. McCreary recalls that the politicians were giving with their "time and energy," adding "it was really an honor that they would spend their time with us." Carradine, who stars on the show as U.S. President Dalton, shared a funny moment with Clinton, in which she referred to him as "Mr. President." In fact, he says that all of the Secretaries of State referred to him as such, noting their "spirit of play" on set.


But possibly the most intriguing anecdote comes from Bergen, who plays Blake Moran, personal assistant to Secretary McCord. Bergen has a background in musical theater, which also happens to be a passion of Clinton's. While chatting with the politician on set, Bergen learned that she knew of his role in the show Waitress, and told him she "was a big fan of Smash," a musical drama that aired on NBC and was canceled after just two seasons.

Though this is Clinton's first time on this particular show, it's not her first time playing a version of herself on T. In fact, it's not even her first time this year. In the first episode of the revival of Murphy Brown, Clinton shared a moment with the eponymous journalist, making a joke about her emails. The episode also featured a fake Twitter conversation with U.S. President Donald Trump. And, in 2016, Clinton made a brief appearance on Broad City, taking a selfie with Abbi and Ilana at her campaign headquarters in New York.

Madam Secretary season 5 premieres on Sunday, October 7 on CBS.