features-dtmf-menu

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: BSD-2-Clause Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL