Hello,
I am currently developing a lead-qualification WhatsApp chatbot, and since the system prompt/instructions are getting increasingly long, complex, and costly, I've been thinking of using multiple "agents"/autonomous nodes (ANs) instead of letting only one AN handle all the tasks. To start, I'd like to "delegate" the user-classification task to a separate AN.
Specifically, I'd like the first AN to make a call to the second one with the necessary classification criteria. Then I'd like the second AN to return the group where the user falls into, according to the provided criteria. Then the first AN should proceed with the necessary steps, based on the group.
My question is, how do I ideally go about this?.
I've tried using the "Generate Content" card, but it's quite limited for more complex tasks, in particular, because it cannot have its own tools. I've also tried using a transition to another AN, but then the first AN doesn't really wait for a response, and I'm not sure how to send the second AN's response back to the first one in this case.
Thanks for any hints!