The assistant calls the tool without even taking a...
# support
r
I have this inboound caller which can respond to customer queries and can also take grocery orders and then emailing the appropriate recipients. The problem is the assistant is just not abiding by the script, it calls the tool even before the customer starts speaking and sometimes it calls the tool with only partial data received from the customer. here is my callId - d34e6743-25a1-43ac-b435-3ed15f7f73ea
v
@Richard It sounds like there might be an issue with the trigger mechanism for the tool invocation within your voice assistant's workflow. To address this, we should review the conditions under which the assistant is programmed to call the tool. The assistant should wait for the customer to finish speaking and ensure that all necessary data is collected before calling any tools. To resolve this, you may need to adjust the voice recognition settings to better detect when the customer has finished speaking, or refine the logic that determines when enough information has been gathered to proceed with tool invocation. If you have access to the assistant's configuration or script, look for settings related to speech end detection, such as silence detection thresholds or voice activity detection (VAD) parameters. Additionally, review the logic that checks for complete data before proceeding. If you're not sure how to make these adjustments or if the problem persists, please reach out to support for more detailed assistance with your specific case and provide them with the callId you've mentioned. They will be able to investigate the issue further and provide a tailored solution.
You can continue this conversation by mentioning me in the message.
r
improved it a bit but still it calls the tool with partial data. Here's the callId - dab20da3-9e98-406a-a289-c3bf8635165a
even if I am just starting to speak sometimes it just calls the tool rightaway - 25584db2-c8c3-4f26-bc49-3bae7de1df77 (callId)
s
Hey @Richard you need to ensure your tool call description contains the tool usage, purpose, expected input parameters and optional output under 200 characters. The description must be of similar words as per your prompt to ensure it gets called most of the time.
Lastly you can try explicit tool call prompting.
Copy code
trigger the toolName with input parameters
example
Copy code
trigger the sendEmail tool with username, email, subject
Do let me know how it goes.
r
Oh ok great, I will try it out and let you know 👍
@Shubham Bajaj btw in the sendEmail tool, I am having userData ( which contain the user query, name and contact number) as one of the input parameter
So should I split them into 3 or should I let it be it ?
s
example
trigger the sendEmail tool with {{userQuery}}, {{name}}, {{contactNumber}} Ask: "What is your name" and map result to {{name}}
@Richard does this helps, do let me know if you have more doubts.
r
Yup this helps. Thanks bro
2 Views