Auto-tags and Auto-replies: Advanced Conditions
In This Article
Multiple Search is available for the Auto-tags and Auto-replies tools. Use Multiple Search to look for several words, or parts of a word, at the same time with the help of AND/OR operators.
Search with the "OR" Operator
Use the "|" operator to search with either/or logic.
For example, “ worse | bad” and “worse|bad” will show you all the reviews that contain at least one of the chosen words. Use spaces to search for exact matches. If you enter " bad" without a space at the end, you'll see results that include "badly". If you enter a space after the query, you will see only exact matches for "bad". Search queries are not case-sensitive.
Use Spaces in your Query to Search for Exact Matches
Add a space before the search term to exclude any results where other letters precede your search term.
For example: In the query "can't | freeze" there is a space before " freeze", so the results will not include words that have letters before this combination (such as "unfreeze"). There is no space after " freeze", so the results will include other forms of the word: "freeze", "freezing", "freezes".
Add a space after the search term to exclude any results where other letters come after your search term.
For example: Search for "use | can't" to see reviews that contain the word "use", but do not contain the word "user".
- Add a space before and after the search term to look for an exact match.
- When a review starts with a specific word, you can use a combination of the conditions "Review text contains" and "Review text starts with". Please note that for the rule to work correctly, you need to separate these conditions with the "AND" operator. As a result, these rules will cover both situations: when the review starts with a specific word AND when this word is used somewhere in a review.
- This combination of conditions ensures that the Auto-reply will not be triggered if a Review contains a word where your condition's text is a part of that word. For example, if your condition contains " great ", the rule will not fire for Reviews that contain "greatly".
- Here is an example of a combination we recommend:
Use the "AND" Operator to Include Multiple Conditions
To include multiple conditions with the "AND" logic, click "+Add More Conditions". All conditions separated by an "AND" operator must be met for the Auto-tag or Auto-reply rule to work.
When you create Auto-reply rules, it's possible to set up different conditions. Let's take a look at the most common use-cases.
If we create the following two rules:
Review text contains fun
Review text contains love
-> This means the rule will be applied only if a review has all the listed conditions (the rule should have both "fun" and "love").
Review text contains fun|love
-> There is one condition for the review to contain several words separated with "|". This means the rule will be applied for a review that has any of these words.
If we receive the following two reviews:
Rule 1 will be applied only to Maria's review, as it contains both conditions. The review from Irina doesn't satisfy the condition for Rule 1.
Rule 2 will be applied to both reviews. Both reviews have at least one of the words that trigger the rule.
If you notice that your rules don't work, please take a look at the following setup mistakes.
Review Text and Review Translation
Issue: The conditions “Review text contains” and “Review Translation contains” have similar words.
Explanation: These conditions are separated by the "AND" operator, which means both conditions must be met for the rule to work. Since it isn't possible for the Review to contains these words in both the text and in the translation, this rule won't work.
Instead, try using just one of these conditions per rule.
Issue: The condition "Review text contains" has a combination of words, but the review text has more words between them.
Explanation: In the following example, the engine will look for exact matches for "good app" and "love this app", but will not include Reviews that contain "good project and app" or "I love this amazing app".
Spaces in Conditions
Issue: The condition does not include spaces before and/or after words, and the rule fires for more Reviews than expected.
Explanation: Learn more about adding spaces to search for exact matches in the previous section of this article: Use Spaces in Your Query to Search For Exact Matches.
"AND" Operator: No Reviews Are Found
Issue: Conditions are separated by "AND" operators, so there are never any Reviews that match all conditions at once.
Explanation: Instead of using the "AND" operator in a single rule, try separating your queries with the "OR" operator (learn more in the section on how to Use the "OR" Operator). If needed, create multiple rules to encompass the various required conditions.
The Review Meets the Conditions of Multiple Rules
If a Review meets the conditions of multiple rules, then the most recently created rule is applied. To check which rule is most recent, you can look at the list of rules. The newer the rule, the higher up it is in the list.
Note: publishing modes do not affect this logic. Even if you use Approval mode, only the most recent rule is applied.
Still have questions? Reach out to us at firstname.lastname@example.org