Not calling the tool no matter what I do.
# support
a
I have an agent and it;s not calling the tool no matter what I do, what is the issue? There used to be logs to show things as they happened but now I can't see them. Here is the call id: 2c330b23-5e6e-47b3-8042-b8bed1c8b7c0 Thanks so much! @Shubham Bajaj thanks!
v
Hi there! šŸ‘‹ I understand how frustrating it can be when your agent isn't calling a tool and you can't see the logs to troubleshoot. I'm unable to directly access your specific call logs using the ID you provided, but I can definitely help with general troubleshooting steps for both issues you're experiencing. ## Why Your Agent Might Not Be Calling the Tool There are several possible reasons why your Vapi agent isn't calling the tool: ### Configuration Issues According to the [troubleshooting information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334114042876264518) I found, configuration issues within your VAPI setup can prevent tools from being automatically called. This could include: - Incorrect tool configuration - The tool not being configured to trigger under the right conditions - Server-side issues with processing HTTP requests ### Response Format Problems The JSON response format might be incorrect. The tool call response should be a string without line breaks, and JSON responses need to be stringified according to [this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342315282198298729). Make sure your response follows this format:
Copy code
json
{
  "results": [
    {
      "toolCallId": "<your-tool-call-id>",
      "name": "<your-function-name>",
      "result": "Success" // Or any success message
    }
  ]
}
### Synchronous vs Async Settings Check if your tool is set to
synchronous
instead of
async
as mentioned in [this discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342315282198298729). ## Troubleshooting Missing Logs As for your logs not being visible anymore, here are some potential reasons: ### Dashboard or Temporary Glitch
There might be an issue with the dashboard or a temporary glitch according to [this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334199867073105920). Try clearing your browser cache. ### Database Outage Vapi has experienced database outages in the past that affected log visibility as mentioned [here](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334001638876250233). ### Using Your Call ID for Support Since you have the call ID (2c330b23-5e6e-47b3-8042-b8bed1c8b7c0), you can: 1. Contact Vapi support at support@vapi.ai and provide this ID 2. Vapi support can use this ID to access detailed logs and system information related to your call as noted in [this thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334058014159802400) When contacting support, also include: - The timestamp of the call - What you expected to happen - What actually happened Would you like me to provide more specific troubleshooting steps for any of these issues? Sources: - [Troubleshooting steps for Vapi agent not calling tool](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334114042876264518) - [Possible reasons for Vapi agent not calling tool](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342315282198298729) - [Possible reasons for Vapi logs not visible](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334199867073105920) - [How to use Vapi call ID to troubleshoot issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334058014159802400) - [Troubleshooting steps for Vapi logs not visible](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334001638876250233)
I understand how frustrating these technical issues can be, especially when you can't see the logs to help troubleshoot. I've gone ahead and escalated your case to our support team who can directly access your call logs using the ID you provided. A support specialist will be able to look at exactly what's happening with your agent and why it's not calling the tool, as well as investigate why your logs are no longer visible. They'll have access to detailed system information that I don't have visibility into. The support team has been provided with all the details you've shared, including your call ID (2c330b23-5e6e-47b3-8042-b8bed1c8b7c0) and the issues you're experiencing. They'll reach out to you directly to help resolve this. In the meantime, if you discover any additional information about the issue or have any other questions, please let us know! šŸ‘
a
Hey Titus, could you share the call ID for which it was working previously so I could compare what's the difference and what would've gone wrong for this shared call ID?
a
Do you see any issues with the current call I’d
a
I don't see any issue with the call ID shared. It's most likely to me that it was a prompt or could be one of the cases where LaM is not working as it was supposed to be. Still, if a call ID where it was working as expected would help me potentially find out any discrepancies if any.
a
@Shubham Bajaj is there a way to pass the current call transcript to a tool?
a
The payload contains the call object, which contains the transcript.
a
I mean during the call not the end of call report @Shubham Bajaj for example...
tool call passes transcript to tool then tool does things make sense?
current trasncript of the call so far
a
Yes, you get the transcript during this server message of type tool calls inside artifacts. You can use artifacts to get the current call transcript. However, we don't pass the transcript as an argument to the tool call. You get the transcript from artifacts, so we don't need to include it in the tool call arguments.
Let me know if you require further help or have more questions.
a
awesome i found it thanks!!
a
Marking this ticket as Solved āœ…
Hi, checking if this is resolved/solved for you?
a
yes
a
Marking this ticket as Solved āœ…
6 Views