better-horse-7195
09/11/2025, 6:02 PMrefined-appointment-81829
09/11/2025, 6:05 PMbetter-horse-7195
09/11/2025, 6:32 PM@function_tool
async def detected_answering_machine(self):
"""Call this tool if you have detected a voicemail system, AFTER hearing the voicemail greeting"""
await self.session.generate_reply(
instructions="Leave a voicemail message letting the user know you'll call back later."
)
await asyncio.sleep(0.5) # Add a natural gap to the end of the voicemail message
await hangup_call()
from https://docs.livekit.io/agents/start/telephony/ but it does not always detect the VMrefined-appointment-81829
09/11/2025, 6:33 PMbetter-horse-7195
09/11/2025, 6:34 PMrefined-appointment-81829
09/11/2025, 6:40 PMrefined-appointment-81829
09/11/2025, 6:40 PMbetter-horse-7195
09/11/2025, 6:41 PM