Raju
03/13/2025, 6:28 AMAn error occurred in this call: pipeline-error-google-llm-failed
while executing this part of my prompt
8. Make the booking using the CreateAppointment with the values provided by the user.
9. If the booking is successful, politely inform the caller that the booking is complete and indicate the call will now end. End the call using the endCall tool after speaking the end call phrase.
i can see tha the tool call executed succesfully but the call doesn't end with the call phraseVapi Support Bot
03/13/2025, 6:30 AMendCall
tool failing after a successful CreateAppointment
tool call.
Based on the error message pipeline-error-google-llm-failed
, this could be happening for a few reasons:
1. **Quota or Rate Limiting Issues**: Your Google API key might be hitting rate limits, especially if you're making multiple calls in quick succession. [This has been reported by other users](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1343704609096601693).
2. **Timing Issues**: The endCall
function might be called before all necessary prior interactions are complete. [Some users have experienced similar issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336719759965687923).
3. **Message Formatting**: The LLM might be expecting a specific structure that isn't being followed after the tool execution.
Here are some troubleshooting steps you can try:
- **Check your parameters**: Ensure the endCall
tool is receiving the correct parameters:
json
{
"callId": "your-call-id",
"reason": "Appointment booking completed"
}
- **Verify configuration**: Make sure endCallFunctionEnabled
is set to true in your dashboard configuration.
- **Review your prompt**: Try adding a slight delay or additional confirmation step between the CreateAppointment
success and the endCall
execution.
- **Inspect logs**: Look for any specific error details beyond the general pipeline error.
If you continue to experience issues, collecting specific call IDs and detailed error logs would be helpful for further troubleshooting.
Sources:
- [Discord Thread on pipeline-error-google-llm-failed](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1343704609096601693)
- [Discord Thread on endCall timing issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336719759965687923)Vapi Support Bot
03/13/2025, 6:30 AMShubham Bajaj
03/15/2025, 2:47 PMKyle Brunker
03/15/2025, 4:48 PMtext
field. To resolve this, we need to update the payload so that the text
field your function is returning contains a string, not an object. Let me know if you'd like help making that change!Kyle Brunker
03/15/2025, 6:11 PMRaju
03/16/2025, 11:17 PMKyle Brunker
03/17/2025, 11:43 PM