or:
Intent A
Intent B: conditioned on a slot is filled
action: action_A
So we want to use intent A or Intent B (if a intent fills a slot) to initiate a story.
Also in a story can we condition on if an entity is detected in the intent. Example:
- story: parts query result not found, done
steps:
- intent: intent_A
- entities_found:
- name: true/false
I am asking this, because the story demands that the intent should have name entity/slot. I do not want slot to be auto-filled from entity ‘name’.
If entities are not allowed in story: I can autofill slot, and validate is later.
@ashek1520 Yes, you can use the Or: for the stories with two different intent for your first question. Please see this reference, I’m sure you already seen it Stories
@ashek1520 I’m not sure about the second question, and never seen this entities_found: but on the other hand if you are looking for intent and then detect the entities please see this reference: Stories Even you can set the slot for the same if you required.
Can you share the link or idea you have taken for entities_found: me just curious about this. Thanks.
Thanks @nik202
for the first question, I have used or before. or can be used in two possibilities:
Or of multiple inents and/or or of multiple slots. I wanted to try nested or.
Example:
# pseudo code
- or:
- intent: medicine_query
- intent: information
- slot_was_set:
- name: medicine <-- slot is set during 'information' intent only
- action: medicine_form
In words: I want to run medicine_form if the (intent is medicine_query) or (if intent ‘information’ is initiated with slot medicine).
I guess Rasa does not provide this option, but I found an alternate way using entities, as