@ZeroBot.ai
Hello! It's great to hear that you're integrating VAPI into ZeroBot. Yes, you can track the duration of a call while it's active. VAPI provides real-time call event webhooks that you can use to monitor the status and duration of calls. You can set up a webhook to listen for call progress events and then use that information to track the call duration.
When a user is about to run out of minutes, you can programmatically end the call using VAPI's call control features. You would need to implement logic in your application that checks the user's remaining minutes against the call duration and then sends a command to end the call when the minutes are exhausted.
For web calls, you can use similar mechanisms provided by the VAPI for web-based communication. Make sure to handle the logic for both web and phone calls to ensure a seamless experience for your users.
If you need more detailed information on how to set this up or if you have any specific questions about the implementation, please let me know!