Documentation
¶
Overview ¶
Command features-dtmf-menu is a keypad-driven phone menu (IVR) bot.
The caller interacts entirely with DTMF keypresses, no speech. A DTMF aggregator turns each key sequence into a "DTMF: ..." transcription that the LLM reacts to:
- press 1 for business hours
- press 2 for the office location
- press 3 to request a callback: the caller enters their callback number and presses # to finalize it (the aggregator's terminator key, which flushes the sequence immediately instead of waiting for the idle timeout)
DTMF arrives as InputDTMFFrame from the transport (e.g. a telephony provider), so there's no STT in the pipeline. The bot speaks its responses with TTS, like a real phone menu would.
OPENAI_API_KEY=… CARTESIA_API_KEY=… \ go run ./examples/features/features-dtmf-menu -t twilio -x your_username.ngrok.io
Then call the Twilio number and use the keypad.