It would be an interesting story, but maybe if you want it closer to reality, it would be corrupted from inception. People would be allowed to have discourse about it, against it or otherwise, but it would be made into a crime to pass human based laws against the AI, or attack it . In reality the AI would be just a whole complicated theater so it will look and feel like " people" have influence, but in the end its would be just kind of complaint box that no one reads, and does nothing for anyone, but for a cabal of rich people.
The AI would talk and talk, then no action, or action but just so it doesn't work, or just so enough space for corruption so whatever is passed is not what it was talked about so on. In other words, AI job would merely be of appearance, and nothing else.
Then you would have true believers and defenders paid for, and people active against it, ... But, plot twist, the opposition leaders are indirectly paid for by the same cabal of rich people, they only want ' opposition' so that people can vent and think they are doing something and have a say in yet another controlled theater. Real opposition is violently suppressed in secret. In reality the mayority of people instinctively know what is going on, and don't participate. Years pass and millions sit in the passive middle, knowing human law and real action is a crime, so eventually the whole theater starts collapsing on its own.