Hi there, I have a form running that passes validation when I only require 2 slots, but when I require more I’m seeing that the follow-up questions for requested slots are not getting triggered.
I have followed the formbot pattern in the rasa examples folder.
Here is a dump of my actions server logs:
2019-06-11 16:28:46 DEBUG rasa_sdk.forms - Extracted ‘iphone’ for extra slot ‘product’ 2019-06-11 16:28:46 DEBUG rasa_sdk.forms - Extracted ‘broken’ for extra slot ‘condition’ 2019-06-11 16:28:46 DEBUG rasa_sdk.forms - Validating extracted slots: {‘product’: ‘iphone’, ‘condition’: ‘broken’} 2019-06-11 16:28:46 DEBUG rasa_sdk.forms - Request next slot ‘action’ 2019-06-11 16:28:46 DEBUG rasa_sdk.executor - Finished running ‘product_form’
Here is the validation in actions.py
:
@staticmethod def action_db() -> List[Text]: return ["return", "support"] def validate_action( self, value: Text, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> Any: if value.lower() in self.action_db(): return {"action": value} else: dispatcher.utter_template("utter_wrong_action", tracker) return {"action": None}
And here is the shell, where I’d expect the followup question to appear:
(base) base ❯ rasa shell -v /Users/a1451195/anaconda3/lib/python3.7/site-packages/dask/config.py:168: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. data = yaml.load(f.read()) or {} 2019-06-11 16:28:37 INFO root - Starting Rasa Core server on http://localhost:5005 Bot loaded. Type a message and press enter (use '/stop' to exit): Your input -> hi Thank you for choosing X Support, my name is Wendy. How may I assist you today? Your input -> my iphone is broken Your input ->
Thanks for any help you can provide