Tools Being Triggered at the Wrong Times
# support
s
I have two tools that are being triggered at times that I didn't specify in the prompt. The following is an excerpt from the prompt: > Main Objectives and Instructions > > -You will begin the call by going to STEP 1 and asking the "Assessment Questions." > - Then you will proceed to STEP 2 to send them the link to the questionnaire > - If, and only if, the lead doesn't answer the call, run the 'NoResponse' tool > - After, and only after, completing step 3, run the 'SendQuestionnaire' Tool > I was doing a web test through the Vapi web app and at some point in the call, the Assistant starts saying the Request Start Message of the 'NoResponse' tool, and the Request Failed Message of the 'SendQuestionnaire' tool. After that, the Assistant no longer responds and ends the call. I expected the 'NoResponse' tool to trigger only if the client doesn't answer. As for the 'SendQuestionnaire' tool, I expected it to trigger only when I've provided my name, email, and phone (which is step 3 in my prompt) Not sure if the error comes from my prompting (I thought I was clear enough to not leave any ambiguity in my instructions) or the fact that it's done through the Web through the Vapi website instead of an actual phone call. The reason why I couldn't do an actual phone call is because I don't want to incur additional charges from testing. For reference, here's the call ID: 48b234a2-bd50-4dc2-9fe9-df62ca1bbabc https://cdn.discordapp.com/attachments/1339689865440268328/1339689865691791360/image.png?ex=67afa2ea&is=67ae516a&hm=46cd356eb2db85bdce1f8f4c2ffd146525fe9b4c7fee5c7d14d67a265dc6e1f3& https://cdn.discordapp.com/attachments/1339689865440268328/1339689865981202472/image.png?ex=67afa2ea&is=67ae516a&hm=e0ec178aa41099d88cf609782065be5ab4f4cc2c623f42fc7205fc4ddeaefb32&
m
couple of helpful points: * What model are you using? * For sending the questionnaire the description is vague, based on what you said the model is doing exactly what it's supposed to. I would recommend to define a better trigger "I.E if a customer wants the questionaire use this function" And then in your prompt, prompt it to ask the user if they want the questionaire. -- For the second tool, The entire first sentence could be deleted and probably the second. You could condense all that down to "If the lead doesn't answer when the assistant calls, fire this function to trigger a workflow"
You want to keep your descriptions as clear and concise as possible with an objective trigger, and then in your prompt, have it say something that makes the user answer with that decisive trigger. If you're using a last gen model ie 3.5, the importance of that is multiplied drastically.
s
I'm using the GPT 3.5 Turbo
m
yep, make the changes I recommended and also try using 4o mini it's very cost comparable and significantly better at firing tools
I guarantee it will fix it
s
Got it. I'll implement the changes you recommended. Thanks so much for your help, @Mason | Building KOI
m
Anytime man glad to help
c
Thanks, Mason!
4 Views