I am trying to extract name from the user into the slot ‘name’.
I have added intent: “myname” in the NLU and the registered it in domain. I have also set the slot “name” with entity mapping to the entity “name”. But for some reason I keep getting this error:
Slot 'name' uses a 'from_entity' mapping for a non-existent entity 'name'. Skipping slot extraction because of invalid mapping.
I absolutely cannot figure out why this is happening. Is there any solution to do this or what am i doing wrong?
- intent: myname
examples: |
- my name is [John]{"entity":"name"}
- name is [Doe]{"entity":"name"}
- [John]{"entity":"name"} is my name
- my identity is [Peter]{"entity":"name"}
- [Steven]{"entity":"name"}
- sure. here is my name [Tim]{"entity":"name"}
Below is all the places in domain where i have mentioned and registered “name”
slots:
name:
type: text
influence_conversation: True
mappings:
- type: from_entity
entity: name
I have other slots but all of them are custom types and name is the only entity extraction i wish to do.
entites:
- name
intents:
- myname
forms:
user_details_form:
required_slots:
- name
What is going on? Have I missed something?