Can i provide multiple intents in not_intent key in form slot mapping
Yes, you can provide them as a list.
Thanks for reply. Can you just provide an example for better understanding so it will be helpful for all
forms:
your_form:
slot_name:
- type: from_intent
value: my_value
intent: intent_name
not_intent:
- excluded_intent
- another_excluded_intent
To tag on this question, if I have a couple of forms that I would like to exclude the same intents, is it possible to define that list as a variable and specify that variable for not_intent?
i.e
excluded_intents:
- excluded_intent_1
- excluded_intent_2
forms:
your_form:
slot_name:
- type: from_intent
value: my_value
intent: intent_name
not_intent:
excluded_intents
your_form_2:
slot_name:
- type: from_intent
value: my_value
intent: intent_name
not_intent:
excluded_intents
There’s a feature for this that’ll come up in the next minor release! https://github.com/RasaHQ/rasa/pull/7931
Sure! waiting for your post!
Hi @mloubser, and what about a list in the intent
key? I’ve tried but it’s seems rasa is not prepared for it:
UserWarning: Slot 'my_slot' uses a 'from_intent' mapping for a non-existent intent '['intent_1', 'intent_2']'. Skipping slot extraction because of invalid mapping.
My domain file looks like this:
my_slot:
type: bool
influence_conversation: true
mappings:
- type: from_intent
value: true
intent:
- intent_1
- intent_2
Thanks!