from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.forms import FormAction
class Wfh_Request_Form(FormAction):
def name(self) -> Text:
return “wfh_request_form”
From what I can tell you seem to be missing a definition of utter_submit.
Please fix the formatting of the action.py you posted.
It might be helpful for you to have a look at our form example on github rasa/examples/formbot at master · RasaHQ/rasa · GitHub
I changed my domain.yml file after your suggestion but the error is still not resolved. And I even tried running the official example but the same error is encountered.
I tried running the official example according to the readme instructions but the bot is not able to utter slot values after the conversation. And when I tried rasa interactive it throws the same error. Can you please try run this example rasa/examples/formbot at master · RasaHQ/rasa · GitHub
What I meant is the rasa action server, it is the command rasa run actions, forgetting this command can lead to the same error.
However I do indeed have get the same error message when running the example in interactive learning. I will look into this and get back to you when I find the problem.
There was an error when running interactive learning in the example because IL did not default to using endpoints.yml if --endpoints option was not specified. This has been fixed and the example works now.
Trying running your bot with the latest version from github or try with version 1.1.5, which should be available through pip within the next couple of days.
Whenever I load the bot to the shell and input the following commands, the slot values are not filled correctly. Can you look at the conversation below and tell me what I am doing wrong here?
2019-07-11 22:53:48.729007: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): ,
Bot loaded. Type a message and press enter (use ‘/stop’ to exit):
Your input -> i want to search a restaurant
what cuisine?
Your input -> indian
how many people?
Your input -> 5
do you want to seat outside?
Your input -> no
please provide additional preferences
Your input -> no additional preferences
please give your feedback on your experience so far
Your input -> excellent
All done!
sorry, I didn’t understand you, please try input something else