quaint-waitress-91864
08/07/2025, 10:11 PM@function_tool
async def detected_answering_machine(self):
"""Call this tool if you have detected a voicemail system, AFTER hearing the voicemail greeting"""
global voicemail_detected
doctor_name = self.physician_name
await self.session.generate_reply(
instructions=f"Leave a voicemail message letting the user know that you were sent by {doctor_name}'s office, and that they can call this number back when they are ready for their history."
)
await asyncio.sleep(0.5) # Add a natural gap to the end of the voicemail message
await delete_room()quaint-waitress-91864
08/09/2025, 2:13 AM