Trailblazer
04/08/2025, 7:14 AMVapi Support Bot
04/08/2025, 7:15 AMvapi.on
method. Let me help you troubleshoot this! 🔍
While I don't have specific information about the vapi.on
method itself, I can definitely help with general function call implementation in Vapi and common issues that might be affecting your application.
## Function Calls in Vapi
Vapi fully supports [OpenAI's function calling API](https://docs.vapi.ai/server-url/events), allowing assistants to ping your server to perform actions like sending emails, retrieving information, and more.
## Common Issues & Troubleshooting
Several issues could prevent function calls from working properly:
1. **Configuration Issues**: According to [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334114042876264518), function calls may not trigger due to configuration problems within your Vapi setup.
2. **Client-Side SDK Limitations**: You cannot make function calls directly from the client-side SDK. Instead, use client-side events such as ClientMessageToolCalls
and ClientMessageToolCallsResult
to update the UI, as mentioned in [Discord conversations](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330803502615625738).
3. **Server Processing**: Ensure your server correctly processes HTTP requests and sends appropriate JSON responses. Verify that tools are configured to trigger under the right conditions within your voice application flow.
4. **Function Call Requirements**: For a function to be called properly, you need:
- The function name and required endpoint
- Necessary parameters
- Correct headers and authentication tokens (if required)
- Appropriate HTTP method (usually POST for webhooks)Vapi Support Bot
04/08/2025, 7:15 AMKings_big💫
04/08/2025, 7:44 AMKyle Brunker
04/08/2025, 7:37 PM