I don't know why this not work.. can you help?

Hello I’m new to RASA and I tried to make
I’m making a chatbot for foreigners at University(South Korea). I have several questions.

  1. I think I put the story and data properly, but the bot is not answering.

  2. I put the building numbers in the lookup of the yml. But I don’t know how to use it. How can I use “RegexEntityExtractor”?

  3. I want to make it responses in domain.yml responses: utter_find_building:

       - text: "Oh! Here is the map of {building} for you" 
    
     slots:
    
       building:
    
         type: text
    
         influence_conversation: true
    

I tried taking it out of the slot like this, is this the right way to make it?

Let me give you an example of the flow of conversation I want to make. User: Hi Bot: Hi. USER: Where is the S1-4? BOTT: Let me give you a link to S1-4. User: bye Bot: bye I’m sorry for many questions… thank you

domain.yml

version: “2.0”

intents:

  • greet

  • goodbye

  • find_building

entities:

  • building

responses:

utter_greet:

  • text: “Hey! How are you?”

utter_goodbye:

  • text: “Bye”

utter_find_building:

  • text: “Oh! Here is the map of {building} for you”

slots:

building:

type: text

influence_conversation: true

session_config:

session_expiration_time: 60

carry_over_slots_to_new_session: true

config.yml

language: en

name: “SpacyNLP”

model: “en_core_web_md”

case_sensitive: False

policies:

  • name: TEDPolicy

    max_history: 5

    epochs: 100

    constrain_similarities: true

pipeline:

  • name: “RegexEntityExtractor”

    case_sensitive: False

    use_lookup_tables: True

    use_regexes: True

    “use_word_boundaries”: True

stories.yml version: “2.0”

stories:

  • story: find building

    steps:

    • intent: greet

    • action: utter_greet

    • intent: find_building

      entities:

      • building: “N14”
    • action: utter_find_building

    • intent: goodbye

    • action: utter_goodbye

  • story: greeting

    steps:

    • intent: greet

    • action: utter_greet

nlu.yml

version : “2.0”

nlu:

  • intent: greet

    examples: |

    • hey

    • hello

    • hi

  • intent: goodbye

    examples: |

    • bye
  • intent : find_building

    examples: |

    • Where is the building?

    • Where is the building [S1-1]{“entity”:“building”}?

‘’’

  - Where is the building [S21-14]{"entity":"building"}?

  - Where is the building [N1]{"entity":"building"}?

‘’’

  - Where is the building [N21]{"entity":"building"}?

  - Where is the building [E1-1]{"entity":"building"}?

‘’’

  - Where is the building [E12-2]{"entity":"building"}?

  - Where is the building [E12-3]{"entity":"building"}?
  • lookup: building

    examples: |

    • S1

    • S1-1

    • S1-2

    ‘’’

    • S21-14

    • S21-13

    • N1

    • N2

‘’’

  - N20-2

  - N21

  - E1-1

  - E1-2

‘’’

  - E12-2

  - E12-3

stories.yml

version: “2.0”

stories:

  • story: find building

    steps:

    • intent: greet

    • action: utter_greet

    • intent: find_building

      entities:

      • building: “N14”
    • action: utter_find_building

    • intent: goodbye

    • action: utter_goodbye

Hi @Evergyu Hard to go through the complete code of your assistant. Did you go through some of our tutorials to understand how to build one? I’d recommend you to start with the Rasa Playground to understand how different elements interact with each other when building a basic assistant.

Thanks for your answer. I’ll do it