Having squad act as single assistant
Hi, I've managed to get a squad working, but I'm still having a couple of hiccups.
Initially I tried a single assistant with a fairly long prompt, but the assistant wasn't following the prompt as closely as I would have liked.
I proceeded to split the assistant up into a squad of smaller assistants (smaller prompts), each tasked with achieving a specific outcome before the conversation could be passed to the next squad member with the next goal.
Ultimately, I want the squad of assistants to act like a single uninterrupted assistant, without the user knowing that they've been transferred. So, I keep the voice the same for all the squad members and I try to ensure that tool, destination and first messages flow on one another.
The issue I'm having is that I try and verify an account with a tool, which then tells the assistant to respond with a success message. I've prompted the assistant to immediately transfer the call, after the tool call, but the following happens:
Initially I tried a single assistant with a fairly long prompt, but the assistant wasn't following the prompt as closely as I would have liked.
I proceeded to split the assistant up into a squad of smaller assistants (smaller prompts), each tasked with achieving a specific outcome before the conversation could be passed to the next squad member with the next goal.
Ultimately, I want the squad of assistants to act like a single uninterrupted assistant, without the user knowing that they've been transferred. So, I keep the voice the same for all the squad members and I try to ensure that tool, destination and first messages flow on one another.
The issue I'm having is that I try and verify an account with a tool, which then tells the assistant to respond with a success message. I've prompted the assistant to immediately transfer the call, after the tool call, but the following happens:
- Assistant runs tool call
- Success message plays
- Assistant says they will transfer the call and waits for the user to respond (THIS IS THE PROBLEM)
- User responds (SHOULDN'T BE NECESSARY)
- Destination message plays
- Transferred assistant first message plays