Change story flow based on a slot value

Hi I am taking user input using RASA forms but i want to change story based on a particular slot value

Can anyone suggest me how to design for that

Thanks in advance :slight_smile:

I do this, but not with the I do it in the I have an ordernumber form, which asks the user for the order_id of their order.

In the I check it like:

match = re.match("([^0-9]|^)[0-9]{6}([^0-9]|$)", value)
        if match:
            ordernumber =
            dispatcher.utter_template('utter_ask_postcode', tracker)
            return {'ordernumber': ordernumber}
            dispatcher.utter_template('utter_wrong_ordernumber', tracker)
            return None

If the ordernumber is valid, it asks for postcode (utter_ask_postcode). If not, it asks for the ordernumber again.

You can easily use that to make a forking path; check the user input and have different utter_template calls based on what the input was.