triggering the right sms tool when an agent has se...
# support
j
Hi, one of my agents has two sms tools with different functions and messages they send. ive made sure to give them a very different name and different tool description and reference when they are needed in my global prompt. However, with the new second sms tool i added, whenever i try trigger it, the other sms tool gets triggered, however it still sends the message body i want. I dont want it to be helping a customer though and end up smsing the wrong information. as far as i know ive done everything to make sure the right tool will trigger. does anyone have any idea how i can increase its accuracy in using the right sms tool. assistant id: c36e50e4-5881-4a31-8c68-788aa1de1d59
v
Hey, I can help you fix this — it’s likely happening because both SMS tools have overlapping descriptions or intents. We can refine the tool schema and make the references clearer in your global prompt. I’ll also help you adjust naming and context so the right tool is always triggered. Could you share both tool names, their functions, and how you reference them? @Josh Prindiville
j
recommendation_tool: Use this tool to send recommended phone numbers to the caller in the event that they are outside our service area and need the recommended plumbers. send_booking_link: Use this tool to send the caller a text message with a booking link when they request to make a booking, agrees to have the booking link sent to them, want to organise a job or book for later. Send them the information in the payload, without waiting for them to speak again.
i reference them by saying "call xxx tool to send the message below" and then right below it a payload with the number and message like { "to": "{{customer.number}}", "body": "My Plumber WA: book here https://book.servicem8.com/request_booking?uuid=cb8eba0e-0215-4288-acff-20cc440c3e7b" }
side note i also ended up creating a separate trigger tool for api_request to send an sms, but if you have the soluton to problem above im all ears!
v
Hey, I can help you with this. The issue happens because both tools are SMS-related, so the agent sometimes mixes them up even though they have different names. My approach is to refine each tool’s description, add unique intent keywords, and adjust your global prompt so the agent clearly understands when to use each one. I’ll also help you structure the “call xxx tool” references for better accuracy. Let’s talk privately so I can check your setup and apply these fixes properly. @Josh Prindiville
2 Views