The Framers of the Constitution called for the President to be elected by a "body of electors," since they did not trust the judgement of all citizens. And a state's electors are chosen by "a state convention" (although this can vary slightly depending on the state).