I have problems in custom action responsing

Hello I’m new to RASA and trying to make chatbot for foreigner in my school. I want to get dictionary in txt file and if I find same key, print the value of the key example:

Your Input : Where is N14?

Bot : Here’s N14’s link.

Bot : link

I don’t know why this don’t work. Thanks

building.txt (9.7 KB)


from typing import Any, Text, Dict, List

from rasa_sdk import Action, Tracker

from rasa_sdk.executor import CollectingDispatcher

import ast #딕셔너리 읽는 것

class ActionResponseMap(Action):

def name(self) -> Text:

    return "action_response_map"

def run(self, dispatcher: CollectingDispatcher,

        tracker: Tracker,

        domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:



    dispatcher.utter_message(text="Here is the map of the {}".format("building"))


    for key,value in dictionay_building:


            print(key," : ",value)


    return []

You should past the error msg of action server