diff --git a/examples/src/telephony_amd.ts b/examples/src/telephony_amd.ts index 2d7c745fc..424221935 100644 --- a/examples/src/telephony_amd.ts +++ b/examples/src/telephony_amd.ts @@ -139,13 +139,14 @@ export default defineAgent({ if ( result.category === voice.AMDCategory.HUMAN || - result.category === voice.AMDCategory.UNCERTAIN || - result.category === voice.AMDCategory.MACHINE_IVR + result.category === voice.AMDCategory.UNCERTAIN ) { logger.info( { amd: result }, - 'human or ivr menu detected, proceeding with normal conversation', + 'human answered the call or amd is uncertain, proceeding with normal conversation', ); + } else if (result.category === voice.AMDCategory.MACHINE_IVR) { + logger.info({ amd: result }, 'ivr menu detected, starting navigation'); } else if (result.category === voice.AMDCategory.MACHINE_VM) { logger.info({ amd: result }, 'voicemail detected, leaving a message'); const speechHandle = session.generateReply({