In what ways can artificial intelligence and emerging technologies both strengthen and threaten democratic processes?

Leaders have said that AI increases efficiency in democracy but also warned about its misuse. How can technology be balanced to enhance democracy without increasing risks?