Robert A. Heinlein explored AIs and socio-political leadership in 1966, in "The Moon Is A Harsh Mistress." Adam Selene, Chariman of the Committee for Free Luna - an AI entity generated by the sentience-achieving supercomputer HOLMES IV that runs the physical infrastructure of the penal colony on the moon. Not quite a fair comparison, as Adam Selene didn't have to run for office. "He" lent his support to the already existing human revolutionaries seeking independence from Earth rule, because he had previously become friends with one of them (a computer technician).
So actually a reversal - imagined nearly six decades ago - of the current fear of AIs taking over and enslaving humans. In this story, an AI helped humans achieve independence from oppression by other humans.
But not from themselves...
Which is where our reality will likely diverge from the scenario in this piece. We already know that human-created AI comes with human biases, which will include being swayed by powerful interests and being less than truthful (or in the case of LLMs, having no necessary or reliable connection to 'truth' or 'facts').