Hello! We've been using LiveKit for a phone agent ...
# cloud
b
Hello! We've been using LiveKit for a phone agent usecase. We have a serverless function that spins up and creates a room with an agent inside. We've been observing a case where the agent leaves the room, but that won't be reflected on the LiveKit side in some cases up to 3 hours later. We've made some updates to explicitly delete the room when the function spins down, but our understanding was that when there are no (human) participants left in the room, it will close automatically. Is that correct and is there anything else we need to do to ensure the room is closed correctly? We want to be able to use this data for billing purposes, so its very important these metrics are correct.
cc: @some-wall-33951