Restrict Slot values

Hi all,

I need to restrict the slot values to 4 digit numbers alone. Is there any way to do so from the domain.yml file

I tried with Slot type as float. Slots: repo_id : type : float min value: 1000.0 max_value:10000.0 it works.

but wish to know any other way for doing the same

You can try using regex. Here’s the official documentation.

Thanks a lot. That helps