Trigger another intent with in the active form of another intent using custom actions

we can call or trigger another intent from active intent like below

if we have A intent and B intent

Now user is in A intent our requirement is trigger B intent with in this A intent

Below are example the actions and slots of A and B

just return in A action like below :

def submit( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any]) ->List[Dict]:
intent_name=tracker.latest_message.get(“intent”, {}).get(“name”) if intent_name ==“B” return [SlotSet(‘slot_name’, None), FollowupAction(‘followup action name’)]

Replace your slot set name and follow up action name in return statement ex: return [SlotSet(‘utter_slots_B"’, None), FollowupAction(‘B_action’)]