I want to make a main agent that calls sub agents for specific tasks based on the input of a user in a chatbot format. How would I do this?

Hi how’s it going?

I want to have almost like a delegation agent that knows which sub agents to call based on the question asked in the chatbot conversation. Would the best way to do this be to just have one agent and give it all the different tools that would be used to answer questions?

Or is it possible to have one delegation agent that decides which agents it needs help from to answer the question.

The main thing here is that I don’t need all the tools or agents used sequentially or at once. The use of a tool or agent will be dictated by the question asked in the chatbot interface.

Thanks so much for your help!

Welcome!

While you wait for valuable input from other colleagues, I invite you to check out this thread, where this delegation topic is discussed.

An example I shared there using Flows showcases a Technical Support Specialist and a Billing Support Specialist who are brought in (one, the other, both, or neither) depending on the user’s request.

2 Likes

Thanks for the reply!