Patent attributes
In one embodiment, a method includes receiving a user input from a client system associated with a user, generating a plurality of candidate responses by a natural-language generation module in response to the user input, determining a quality-indication by a filtering module for each candidate response of the plurality of candidate responses based on one or more classification models and one or more classification rules, wherein the classification models and classification rules are based on one or more acceptance-criteria, selecting one or more candidate responses from the plurality of candidate responses based on their respective quality-indications, ranking the selected candidate responses based on one or more ranking-criteria, and sending instructions for presenting a top-ranked candidate response to the user to the client system associated with the user responsive to receiving the user input.