I am testing out some simple rules with conditions and struggling to get them to work.
In the example below, my slot “call_fallback” is either “None” or “yes”. However, regardless of what my slot is set to, whenever I hit the intent “show_slot”, it triggers the rule.
Should this rule not trigger if my slot is set to None i.e. the default value?
I was not setting the slot’s “influence_conversation” flag (the documentation said this was the default so I didn’t put it in!). I have now changed this to “true” and this rule now triggers (my slot is type ‘text’ by the way:
However, this was a test to try and trigger an action during a form field validation. In my custom form field validation I set the “call_fallback” slot to ‘yes’ and try to trigger the action_default_fallback with this rule:
In summary, I am just trying to understand how I can exit a form slot if I am using custom validation i.e. how I call another action. To help demonstrate this I have a created a simple form (triggered by saying “start form”) that asks for text entry. The custom validation looks for the word “go” to proceed (obviously this is just for demonstration purposes). In this example, I can never leave the slot UNTIL I say “go” i.e. people can get stuck in the form unless they enter a valid input.
I have tried setting slots in the validation response to try and trigger another rule but they simply never trigger.
I have attached the files if you want to take a look?
If you take a look at the actions.py, I’ve commented in there. If I say anything else apart from go, how can I trigger the action_default_fallback action e.g. for the default fallback response?
I want to leverage features in my already existing action_default_fallback action to do things like count for repeated failures etc. Otherwise I am stuck in this slot until I say “go”, right?
Thanks for looking by the way. Any pointers appreciated.