do not restrict auto-fill to group/role
@@ -197,10 +197,8 @@ class FormAction(Action):
# slot name is equal to the entity type
slot_equal_entity = slot == requested_slot_mapping.get("entity")
- # use the custom slot mapping defined by the user to check whether we can
- # fil a slot with an entity that has a role or group set
- slot_fulfils_entity_mapping = False
- if requested_slot_mapping.get("role") or requested_slot_mapping.get("group"):
+ # use the custom slot mapping 'from_entity' defined by the user to check
+ # whether we can fil a slot with an entity
matching_values = self.get_entity_value(
requested_slot_mapping.get("entity"),
tracker,
