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.
-
I think I put the story and data properly, but the bot is not answering.
-
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”?
-
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