First i ran the command rasa run actions and then i ran rasa train and then rasa shell. I get an error. kindly help me
Failed
to replace placeholders in response ‘Today’s temperature is {temp}’. Tried to replace ‘temp’ 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 response. Return response without filling the response.
Traceback (most recent call last):
File “c:\users\pc\appdata\local\programs\python\python37\lib\site-packages\rasa\core\nlg\interpolator.py”, line 27, in interpolate_text
text = text.format(values)
KeyError: ‘temp’
Today’s temperature is {temp}
This is my actions.py
import requests
from rasa_sdk import Action, Tracker
from rasa_sdk.events import SlotSet
from rasa_sdk.executor import CollectingDispatcher
class ActionWeather(Action):
def name(self):
return “action_weather”