Tools not triggering straight away (intermittent)
# support
s
When my assistant has to run a tool, sometimes I have to say another word before it actually runs it? Any ideas; its intermittent, and often says its done it before actually doing it
v
Thanks for reporting this issue with intermittent tool triggering. To help troubleshoot this better, could you share some additional details about your setup: 1. Which model are you using with your assistant (e.g., GPT-3.5, GPT-4o mini)? Different models have varying abilities to trigger tools consistently. 2. Have you made any recent configuration changes to your assistant's settings, particularly to the [speech configuration](https://docs.vapi.ai/customization/speech-configuration) or [endpointing settings](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336875140990111796)? 3. Could you describe the specific tools that are experiencing this intermittent triggering issue? Are all tools affected or just certain ones? 4. Have you noticed any patterns in when the issue occurs - for example, is it more common with longer conversations or specific phrases? Sources: - [Speech Configuration Documentation](https://docs.vapi.ai/customization/speech-configuration) - [Endpointing Settings Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336875140990111796) - [Tool Configuration Documentation](https://docs.vapi.ai/tools/GHL) - [Model Selection Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339689865440268328)
s
Hi @Vapi 1. GPT-4o mini 2. No nothings changed 3. dynamicDestinationTransferCall tool 4. Cant pin point it, sometimes the tool responds and says 'transfering now' then doesnt, but as soon as I was another (random) word then it works
k
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
s
8970056b-baea-4ce7-ba01-68219481f7de 11:47:19:499 The bot to trigger the tool The bot didnt trigger the tool until I spoke another word
k
Hey SidewaysCat, you have to do a rework in your prompt. Instead of having two instructions first to say some content and then trigger the tool call, you have to combine them together to generate the content as well as trigger the tool. Here is how it needs to be done? Say:
X
and trigger the <tool_name> tool
For your information, I came to this conclusion after evaluating your call log and your prompt. Wherever you have used this tool named "get_number" write before the dynamic destination transfer tool triggering instruction.
s
Should I include < around the tool name?. So for example it would look like the below:
Copy code
### Other Sales-Related Inquiries  
**Caller mentions general sales inquiries:**  
1. Say: "I’ll transfer you now to the Sales team who can assist you." and trigger  the 'getNumber' tool to receive the number.
2. Use the dynamicDestinationTransferCall tool with the number you just received.
OR
Copy code
### Direct Staff Requests  
**Caller asks for a specific staff member:**  
Respond: "Let me check if I can find [Staff Name]’s in the directory." and trigger the <getNumber> tool and trigger the <dynamicDestinationTransferCall> tool
k
I would suggest you to go with the option 1 and see how it goes for you.
s
What’s best practise when specifying a tool in the prompt? 1. ‘toolName’ 2. 3. {toolName} Or does it not matter
k
The first approach is the best.