Hierarchical process Help

Hello guys, I have built a simple multiagent project in that firstly I used sequential process, and it is working as expected.
Model used: gpt-4o-mini.
But when I switch to hierarchical process, it is executing only one agent multiple times and still no response.
According to the question, it has to pick the agents that are required, it should not execute the other agents where it is not used.
Has anyone built the multiagent using hierarchical process,
Anyone help me out?