First I ran the command rasa run actions
and then I ran rasa train
and then rasa x
. I get an error.
Failed to fill utterance template 'Play the game [ ] {mario_link}'. Tried to replace 'mario_link' 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.
domain.yml file
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- mario
responses:
utter_game_mario:
- text: Play the game [ ] {mario_link}
actions:
- action_mario
actions.py file
from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
class ActionHelloWorld(Action):
def name(self) -> Text:
return "action_mario"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
# dispatcher.utter_message(text="Hello World!")
link = "https://supermarioemulator.com/supermario.php"
dispatcher.utter_template("utter_game_mario", tracker, link=link)
return []
nlu.md file
## intent:mario
- i want to play mario
- start mario
- play mario
endpoints.yml file
action_endpoint:
url: "http://localhost:5055/webhook"
stories.md file
## game
* mario
- action_mario
I have used these references and did not work for me:
Please help. Why am I getting this error?