I want the slot value to return the name that is being entered. However, it returns “None”.
Intents
- intent: ask_name
examples: |
- whats your name?
- what is your name?
- what's your name?
- what do i call you?
- tell me your name
- intent: give_name
examples: |
- my name is [ikeyan](name)
- [ikeyan](name)
- you can call me [ikeyan](name)
- [ikeyan](name) is my name
- im [ikeyan](name)
- i'm [ikeyan](name)
- i am [ikeyan](name)
Slots
Slots:
name:
type: any
mappings:
- type: custom
entity: name
Responses:
utter_ask_name:
- text: "My name is Ymir. What's your name?"
- text: "I'm Ymir. What's your name?"
utter_give_name:
- text: "Hi {name}. Pleased to meet you!"
Stories:
- story: name
steps:
- intent: ask_name
- action: utter_ask_name
- intent: give_name
- action: utter_give_name
I’m a beginner with chatbots. So any help would be really appreciated. Thank you.