.hardboiledfish
05/21/2025, 5:37 PMVapi Support Bot
05/21/2025, 5:39 PMjson
{ "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)Praveen
05/22/2025, 12:05 AM