Hello,
I’m using custom slot mappings for the slot ‘ot_id’:
def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:
return {
'ot_id': self.from_entity(entity='id', intent='inform_id')
}
In the debug log of action server, the ‘ot_id’ slot was extracted successfully:
2019-08-13 11:48:33 DEBUG rasa_sdk.forms - Trying to extract requested slot 'ot_id' ...
2019-08-13 11:48:33 DEBUG rasa_sdk.forms - Got mapping '{'type': 'from_entity', 'entity': 'id', 'intent': ['inform_id'], 'not_intent': []}'
2019-08-13 11:48:33 DEBUG rasa_sdk.forms - Successfully extracted '2' for requested slot 'ot_id'
2019-08-13 11:48:33 DEBUG CustomActions.CustomFormAction - Validating extracted slots: {'ot_id': '2'}
But after that when i get the ‘ot_id’ slot value from validate_ot_id(), it’s None:
ot_id = tracker.get_slot('ot_id')
print(ot_id)
I don’t have any idea how this happened.