Chatbot to chatbot communication with parent-child relationship

Lets say I have 2 rasa chatbots child1 and child2 running on 5006 and 5007 ports respectively. Is it possible to create a parent rasa chatbot named parentBot, which will run on 5005 port and have the ability to talk to child1 and child2 based on child bot intents? example: lets say child1 contains the intent create_student and child2 contains the intent update_student. parentBot should redirect to child1 or child2 based on user input.

Hello,

Yes, it is absolutely possible to create a parent Rasa chatbot (parentBot) that can route user conversations to different child Rasa chatbots (child1 and child2) based on the detected intent. Here’s a common approach to achieve this:

Conceptual Approach: Intent Classification and Redirection

The core idea is that the parentBot will act as a central point of contact. It will:

Receive User Input: The user will interact with parentBot running on port 5005. Perform Intent Classification: parentBot will analyze the user’s input and determine the intended action. Route Based on Intent: Based on the classified intent, parentBot will decide which child chatbot (child1 or child2) is best suited to handle the request. Communicate with Child Bot: parentBot will then forward the user’s input (and potentially some context) to the appropriate child bot. Receive Child Bot’s Response: The child bot will process the request and generate a response. Relay Response to User: parentBot will receive the response from the child bot and send it back to the user.

Best Regards kevin657