Skip to main content

band bxml gather

Generate a Gather BXML verb

Synopsis

Generates a Response containing a Gather verb that collects DTMF digits and posts them to --url. Use --prompt to speak a message before gathering and --max-digits to cap input length.

band bxml gather [flags]

Examples

band bxml gather --url https://example.com/voice/gather
band bxml gather --url https://example.com/voice/gather --prompt "Press 1 for sales." --max-digits 1

Options

-h, --help help for gather
--max-digits string Maximum number of digits to gather
--prompt string Prompt to speak before gathering input
--url string URL to send gathered digits to (required)

Options inherited from parent commands

--account-id string Bandwidth account ID (overrides config)
--environment string API environment: prod, test (overrides config)
--format string Output format: json or table (default "json")
--plain Simplified flat JSON output (recommended for scripts and agents)

SEE ALSO

  • band bxml - Generate Bandwidth XML (BXML) snippets