Getting slot values in tracker as None

Hi,

I am new to RASA. I am trying to get the slot values with a custom action defined. I can see that the value is matching correctly. But the current slot value shows None. Any help is highly appreciated

2022-02-14 20:11:23 DEBUG    rasa.core.processor  - Received user message 'show sites SITE_9K policy' with intent '{'name': 'show_sites', 'confidence': 0.999980092048645}' and entities '[{'entity': 'sitename', 'start': 11, 'end': 18, 'confidence_entity': 0.9977743029594421, 'value': 'SITE_9K', 'extractor': 'DIETClassifier'}, {'entity': 'parameter', 'start': 19, 'end': 25, 'confidence_entity': 0.9975111484527588, 'value': 'policy', 'extractor': 'DIETClassifier'}]'
2022-02-14 20:11:23 DEBUG    rasa.core.processor  - Current slot values: 
        sitename: None
        parameter: None

Below is a snippet from domain file:

entities:
  - sitename
  - parameter

slots:
  sitename:
    type: text
    influence_conversation: false
    mappings:
      - type: custom
  parameter:
    type: text
    influence_conversation: false
    mappings:
      - type: custom

actions:
  - action_sites

Hi @Vishwas,
Try changing the mapping from type: custom to type: from_entity and provide entity: sitename. Below is an example for your corresponding slot definition.

slots:
  sitename:
    type: text
    influence_conversation: false
    mappings:
      - type: from_entity
        entity: sitename
  parameter:
    type: text
    influence_conversation: false
    mappings:
      - type: from_entity
        entity: parameter

Hope it helps :blush:!!