Generate a Question Equivalence Rule

You can use the GetResources action to suggest a question equivalence rule, based on a set of questions. You can use this to automatically generate an initial question equivalence rule, which you can modify to optimize the rule for your question equivalence class.

For example:


This example generates a rule that matches the questions with the IDs 9706856188043740111, 8129920660480699726, and 3067998369792637739.

You can also optionally add additional questions in a text filter, for example to specify the reference question for the question equivalence class that you want to create, or to include questions that do not currently exist in the Answer Bank index.

For example:


The Filter parameter takes a percent-encoded JSON object, which contains the filters to apply. In this case, the unencoded JSON object is:

{ "rule_suggestion_text" : ["How do I get regular updates about MyCompany?"] }

You can also use GetResources to find question equivalence classes that do not have an associated rule, by setting the Type parameter to question_equivalence_class, and using the Filter parameter to search for the incoming state (which is for classes that do not have rules). For example:


This corresponds to the following filter:

{ "state" : "incoming" }

You can modify the question equivalence rule as required, and add it to the question equivalence class by using the ManageResources action. See Update a Question Equivalence Class.

You can also test that the question equivalence rule matches all the rules that you want to add to the question class by using the GetResources action. See Test Your Question Equivalence Rule.