Dynamically added slots aren't waiting for user input

@SamS Thanks for pointing me to this thread. I’m still confused. What in the actions.py code tells Rasa to look at the next slot? I pasted his actions.py code below.

he has a forms in the domain that ask these questions in sequence, but absent that detailed in the domain file, how would actions.py instruct questions to be asked in sequence?

or,. if its just modifying a form, what in the actions.py tells it to ask a certain question in a particular order?

in my case, I want two questions asked in sequence (or in an order I specify) and then take open ended responses. I’d prefer to be entirely instructed from actions.py. Thanks!

async def required_slots(
        self,
        slots_mapped_in_domain: List[Text],
        dispatcher: "CollectingDispatcher",
        tracker: "Tracker",
        domain: "DomainDict",
) -> Optional[List[Text]]:

    latest_intent = tracker.latest_message.get("intent")["name"]
    if latest_intent == "mood_unhappy":
        return ["tell_me_more"] + slots_mapped_in_domain
    return slots_mapped_in_domain

async def extract_tell_me_more(
    self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict) -> Dict[Text, Any]:

    text_of_last_user_message = tracker.latest_message.get("text")
    return {"tell_me_more": text_of_last_user_message}