You can see,when local is test,it run
but I want to when local is other thing, then all action fallback
and use slot_was_not_set? how to write?when local is not test, then all response the same
You can see,when local is test,it run
but I want to when local is other thing, then all action fallback
and use slot_was_not_set? how to write?when local is not test, then all response the same
I need the help,thanks
slot_was_not_set?
Hi!
I think you need to use rasa FormValidationAction to check this slot value
Or maybe you can chance this slot to boolean
- slot_was_set:
- local: False
no,the local has a lot of values.local is the location of some courts,I write a rasa for different courts.
I use another story:
or:
action: utter_nlu_fallback
but I thinks the way use too much rows,is there a way write ‘not equal local:test’?only a little rows.
and I use it just in story,I don’t use form, it too troublesome
I think you can create custom action like that:
slot_local_value = tracker.get_slot('local')
if slot_local_value != "teste":
dispatcher.utter_message(response = "utter_nlu_fallback")
else:
return []