Failed to replace placeholders in response- rasa chatbot

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}

There is no slot with this name nor did you pass the value explicitly when calling the response

This is the answer to your question. Can you share a link to the repo?

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”

def run(self, dispatcher, tracker, domain):
    city = tracker.get_slot("city")
    temp = int(self.weather(city) ['temp'] -273)

    dispatcher.utter_template("utter_temp", tracker, temp=temp, temp_min=temp_min)
    return [SlotSet("temp", temp_min)]

def weather(self,city):
    api_key = "272848452bcd5161666828c54c6c095d"
    url = f"https://api.openweathermap.org/data/2.5/weather?q={city}&appid={api_key}"

    response = requests
    .get(url)
    json_data = response.json()
    format_add = json_data['main']
    temp_min = json_data['main'] ['temp_min']
    format_string = "Temperature is:{} celsius, Minimum Temperature is:{} celsius".format(temp, temp_min)
    return format_string