This might be basic but I was wondering if it was possible to set a variable when an intent is found without extracting an entity and then using that variable later on.
Kind of hard to explain so let me use an example:
Say you have two intents. One is for if someone is talking about apples and the other oranges. Now say you don’t want to extract an entity (apple or orange in this case) because it is unreliable and instead what you want to do is create a variable if an entity is detected. For example lets say the person is talking about apples and it detects that intent = apples you would set a var (var = “apples”).
I am asking because lets say in your domain file you have utter_question and it follows a template like utter_question:
text: Oh I see you’re talking about ______ would you say you like them?
- title: Yes payload: /affirm
- title: No payload: /deny
In this case if you could replace the _____ with either apple or oranges you wouldn’t have to create diferent utter statements. Obviously with only 2 it isn’t a big deal but imagine if we wanted to ask the same question about 100 different things but the string was the exact same as opposed to the specific ______ part.