My actions.py file
actions.py (5.5 KB)
My actions.py file
actions.py (5.5 KB)
Hi @Narayanan,
I’d recommend you to pick a shorter issue title!
Your problem is, that you are not closing the elif-statement
in required_slots. By adding an else-statement:
if((tracker.get_slot("org_name") and tracker.get_slot("year")) and tracker.get_slot("month")):
return ["org_name","year","month"]
elif(tracker.get_slot("org_name") and tracker.get_slot("year")):
if tracker.get_slot("month_required") == False:
return ["org_name","year","month_required"]
else:
return ["org_name","year","month_required","month"]
else:
return <list>
it should work properly - as far as I have seen.
Still didnt solve my problem…
This problem is with regards to the formbot example in rasaHQ github page. I did the following steps. PFA folder
actions.py (4.6 KB) config.yml (301 Bytes) credentials.yml (658 Bytes) domain.yml (2.0 KB) endpoints.yml (1.3 KB)
and the data files are nlu.md (8.4 KB) stories.md (4.2 KB) All these are contained within a folder along with the models folder
Could you please run in a separate command:
rasa run actions -vv
and post the output while running the action in your modified version?
2019-06-14 10:25:38 INFO rasa_sdk.endpoint - Starting action endpoint server… 2019-06-14 10:25:38 INFO rasa_sdk.executor - Registered function for ‘restaurant_form’. 2019-06-14 10:25:38 INFO rasa_sdk.endpoint - Action endpoint is up and running. on (‘0.0.0.0’, 5055)