How to obtain the entity name using slot?

I would like to get the entity (name and country) from the user. kindly help

slots:
  names:
    type: text
    mappings:
    - type: from_intent
      intent: name_entry
      value: True
      
      
  country:
    type: text
    mappings:
    - type: from_intent
      intent: country_entry
      value: True

Create an entity “entity_name” in your training data. example:

[country](entity_name)
[name](entity_name)

and map it to a slot

What do you mean? Where do you want to “get it”? Do you want to:

  • Store the entity in a slot after a user message?
  • Retrieve the entity value in a response/action?
  • Retrieve the slot value in a response/action?