I am trying to pass a value from custom action to a template’s variable. I got an error as
" Failed to fill utterance template ‘value from custom action is {my_variable}’. Tried to replace ‘my_variable’ but could not find a value for it. There is no slot with this name nor did you pass the value explicitly when calling the template. Return template without filling the template."
action.py
class ActionCustom(Action):
def name(self):
return "utter_template"
def run(self, dispatcher, tracker, domain):
# send utter default template to user
dispatcher.utter_template("utter_template", tracker, my_variable="hello world")
# ... other code
return []
I am also facing the same issue. In my case, I’m picking a UserName from a DataFrame and want to display it in the utter_response, but it’s not working.
I guess we have to define the custom action, but I don’t want to do that. Just for displaying some static value, why we need to create custom action.