Using tools - the agent successfully used the tool...
# support
u
The tool in this case is to send an outbound text message. The agent was able to successfully use the tool and send the text, but on the phone call, it's saying "sorry I was unable to send it to you".
v
Suggestion: Check that your server returns a clear result message after the outbound text tool call, and ensure your assistant's prompt or logic uses this result to inform the user. For example, after the tool call, your server should respond like:
Copy code
json
{ "result": "The text message was sent successfully." }
Make sure your assistant's prompt is set up to use this result in its next spoken message, so it doesn't default to an error message when the tool succeeds. Adjusting this should align the agent's spoken response with the actual tool outcome. [See example in documentation](https://docs.vapi.ai/examples/outbound-sales#handle-function-calls) Sources: - [Outbound Sales Example – Handle function calls](https://docs.vapi.ai/examples/outbound-sales#handle-function-calls) - [Prompting Guide – Error Handling](https://docs.vapi.ai/prompting-guide#include-fallback-and-error-handling)
p
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!