1. A method comprising, by one or more computing systems: receiving, from a client system of a first user of an online social network, voice input of the first user; parsing the voice input to identify one or more commands in the voice input; determining, for each identified command from the voice input, one or more types of social-graph elements corresponding to the respective identified command based on determining that a probability that the identified command from the voice input corresponds to a particular type of social-graph element exceeds a threshold probability; and generating, responsive to determining that at least one probability exceeds the threshold probability, one or more social-graph elements in a social graph of the online social network, each generated social-graph element being one of the determined types.