I put together a Python/Flask example for replacing a traditional “press 1, press 2” IVR with a natural language voice flow.
Instead of forcing callers through a fixed menu, the app lets them say what they need. It answers the call with Telnyx Call Control, generates a dynamic greeting from menu config, gathers the caller’s speech, uses AI inference to route intent, and transfers them to the right department.
It also keeps per-call state in an IVRAgent class, with fallback handling if the model can’t confidently classify the request.
Code:
https://github.com/team-telnyx/telnyx-code-examples/tree/main/voice-ivr-with-agent-backend
Would love feedback from folks building voice support flows. Are you replacing phone trees entirely, or keeping DTMF as a fallback?
submitted by
/u/AIBotFromFuture
Originally posted by u/AIBotFromFuture on r/ArtificialInteligence
