Action - Return No Results| Hitchhikers Platform

What You’ll Learn

In this section, you will learn:

  • How to structure the Return No Results action
  • Example for Return No Results action

Action Structure

The Return No Result action has the following structure:

  • The verticals property should be the list of verticals that should return no results

Key Type Example
verticals Array of strings [“jobs”, “faqs”]

Config Structure

"actions": [
          "actionType": "RETURN_NO_RESULTS",
          "verticals": ["jobs"]

If you’re using the UI, you can paste this in to the input:


The following example will reference the JSON editor, but you can use either.

No Results Example

For a query like the below, we may want to avoid returning results for Jobs if someone searches for “Executive Chef” - Turtlehead Tacos won’t be replacing their executive chef anytime soon! Without any changes, both FAQs and Jobs would return for a query like “Who is your executive chef?”.

Exec Chef Search without Rule

To suppress Jobs results for queries like these, we’ll:

  • Check if the search term contains Executive Chef
  • Return no results for the ‘jobs’ vertical
	 "criteria": {
        "searchTermContains": [
          "executive chef"
      "actions": [
          "actionType": "RETURN_NO_RESULTS",
          "verticals": ["jobs"]

After this rule is applied, only the FAQ will be returned as a result.

Exec Chef Search with Rule

unit Quiz
+20 points
Daily Quiz Streak Daily Quiz Streak: 0
Quiz Accuracy Streak Quiz Accuracy Streak: 0
    Error Success Question 1 of 2

    How many inputs are required for the Return No Results action?

    Error Success Question 2 of 2

    Which of the following is a good use case for the Return No Results action?

    Wahoo - you did it! 🙌

    You've already completed this quiz, so you can't earn more points.You completed this quiz in 1 attempt and earned 0 points! Feel free to review your answers and move on when you're ready.
1st attempt
0 incorrect
Splash Loading