I was using UnfeaturizedSlot type and return {“requested_slot”:None} to stop the form when enough slots are filled. Everything was working fine until UnfeaturizedSlot type was deprecated.
requested_slot:
type: rasa.shared.core.slots.UnfeaturizedSlot
initial_value: null
auto_fill: true
influence_conversation: true
I tried using TextSlot type for requested_slot slot but the form continues even after the requested_slot is set to None.
Here is a sample custom action ,
def validate_...(..):
global value, threshold
if value >= threshold:
dispatcher.utter_message(text='The threshold is reached, enough slots are filled') #for own reference to see if condition is working
return {“requested_slot”:None}
elif tracker.get_intent_.....:
return {'slot_name':value1}
return {'slot_name':value1}
I read the documentation but I couldn’t figure how to resolve the problem.