A problem facing to implement Tools with Assistant
# support
s
I am implementing a calling agent using the VAPI API and utilizing the Tools feature to call my external API. While the correct response is being returned, the VAPI tool does not output it—the AI agent does not speak the response. However, if I ask the same question again (e.g., “What is the information?”), the agent then responds correctly. Please help me solve this problem.
v
Thank you for describing your issue. To help diagnose the problem, could you please share the exact JSON response your external API returns to Vapi on the first tool call (when the agent does not speak the result)? This will help determine if the response format matches what Vapi expects for tool results. Source: - [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)
c
Hey! To help track down this issue, could you share: - The call ID
s
Here is the call id: 1b089c71-4a00-4ce4-9532-bfce6a34d443
I get it from Call Log
Another CallId for a different Agent: 9cfbfd1c-784f-4fa4-abd1-26bff1b18a9c
Any feedback?
c
Try adding this to the prompt:
Copy code
**IMPORTANT:** Always speak the tool results out loud to the user. Don't just acknowledge that you got information - actually tell them what the information is.\n\n### Avoid:\n- Don't make up information if the tool doesn't provide data\n- Don't just say \"I got the information\" - actually speak the specific details\n- Don't expose internal system details or error codes\n- Don't offer medical advice - guide users to speak with qualified professionals"
s
Still not working
Please help me to solve this issue.
c
Please provide a new call id with the prompt changes
2 Views