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?