Confining the number of intents to look for a particular response

I am building a chatbot where the following two type of path is followed -

Path 1

user : Hi
bot : Hi i am bot, I hope you are fine
user : I am fine  (intent- greet_happy )
bot : great to hear that  

Path 2

user : Hi
bot : Hi i am bot, I hope you are fine
user : I am not good (intent - greet_sad)
bot : sad to hear that   

I want my rasa to confine the intent lookout to only two intents out of 10 intents I have for the particular response by the user. Is there any way to achieve it in rasa ?

You could use forms and the from_trigger_intent along with a form validate to throw out any intents that don’t meet your requirements.

forms:
  how_are_you_form:
    required_slots:
      response_intent:
        - type: from_trigger_intent
          value: greet_sad
          intent: greet_sad
        - type: from_trigger_intent
          value: greet_happy
          intent: greet_happy