Second slot conditioned on first slot value in form

In a form with two requested slots, I need second slot only when first slot is filled with a particular value. What could be the best way to implement it in Rasa 2.x?

Look at Dynamic Form Behavior

@ChrisRahme Looks like it will fulfill the purpose. Can you share some actual implementation examples of this Dynamic Form Behaviour? I am not able to find one.

The code on the docs is really the best I can recommend, simple and to the point.

But you can look at a more complicated implementation here (line 1206).

1 Like