How to handle forms where a user's information can change the need of other slots

For a e-commerce bot, Say I have a set of variables that user needs to fill. Var1, Var2, Var3, Var4, Var5, and Var6 However depending on the user’s input for Var1 and Var2 my required set of variables can change.

For example: if a website sells various types of clothing Variables can be: clothing type, color, foot size, foot width, neck size, chest size, inseam, waist, and so on. on the form: if user enters: clothing type: shirt We do not need to ask for inseam, waist, foot dimension.

How do we do it? My thoughts: in the validate action, based on the slot filled, I can fill other slots which are not required with a tag, so that form does ask about it.

Is there a better way to do it?

Regards, Abhishek

Have you seen our docs on dynamic forms?

1 Like

No, let me check that, thank you.