Mapping for a non-existent intent

I try to define lists of intents for the optional parameters intent. When I run the model, There is a Warning: UserWarning: Slot 'should_continue' uses a 'from_intent' mapping for a non-existent intent '['affirm', 'learn_more', 'thanks']'. Skipping slot extraction because of invalid mapping.

should_continue:
    type: bool
    influence_conversation: false
    mappings:
    - type: from_intent
      intent: 
      - affirm
      - learn_more
      - thanks
      value: true
      conditions:
      - active_loop: continue_form
        requested_slot: should_continue
    - type: from_intent
      intent:  deny
      value: false

rasa version:

Rasa Version      :         3.1.0
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.1.1
Rasa X Version    :         None
Python Version    :         3.7.9

Hello, intent does not seem to accept a list of intents… Try to make a separate mapping for each intent as follows:

should_continue:
    type: bool
    influence_conversation: false
    mappings:
    - type: from_intent
      intent: affirm
      value: true
      conditions:
      - active_loop: continue_form
        requested_slot: should_continue
   - type: from_intent
      intent: learn_more
      value: true
      conditions:
      - active_loop: continue_form
        requested_slot: should_continue
   - type: from_intent
      intent: thanks
      value: true
      conditions:
      - active_loop: continue_form
        requested_slot: should_continue
    - type: from_intent
      intent:  deny
      value: false```
Didn't test it but I think it should work fine for you

Hi, @ygdo Thanks for your reply. I have used as an alternative solution. I need to write a lot of YML code if I separate the intents while the dialog is complex. It looks stupid.

Yes I know :frowning:. Try to open an issue on github so that might be included in next updates.