Collect keypad input
gather_dtmfCreate a hosted IVR step that plays a prompt, collects DTMF keypad digits, stores them for retrieval, and can move a live Vobiz call into it.
Instructions
Create a hosted IVR step that plays a prompt and collects keypad (DTMF) digits with Vobiz : the digits are posted back to this server, signature-checked and stored, and you read them with get_gather_result and the returned flow_id. Give call_uuid (+ confirm: true) to move a LIVE call into the step now (a transfer: its current flow stops), or use the returned url as make_call answer_url or unhold_call resume_url for a call that is not up yet. Input ends after num_digits, on finish_on_key, or after digit_end_timeout of silence between keys, then then runs (default: say 'Thank you' and hang up). If nothing is pressed within execution_timeout the prompt ends without posting a result, so get_gather_result keeps reporting waiting; check the call with get_call_status. To press keys on a remote IVR yourself use send_dtmf; for free-form flows use generate_answer_xml. The step lives 24 hours in this server's memory. HTTP mode with VOBIZ_PUBLIC_URL only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| then | No | Up to 10 XML actions (same format as generate_answer_xml) run after input is received, e.g. speak a confirmation then dial. Default: say 'Thank you' and hang up. | |
| confirm | No | Required (true) with call_uuid, set only after the user agreed: the transfer replaces the live call's current flow. Ignored without call_uuid. | |
| language | No | Locale for speaking prompt_text, e.g. en-US (default), en-IN, hi-IN, de-DE. Ignored without prompt_text. | |
| call_uuid | No | UUID of a LIVE call to move into this step right now (the request_uuid from make_call, or from list_live_calls). Omit to only create the step and get its url. | |
| num_digits | No | Digits to collect before the input is submitted, 1-32 (default 32). Use 1 for a single-key menu. | |
| prompt_text | No | Spoken prompt (text-to-speech, max 1000 characters), e.g. 'Press 1 for sales'. Give this and/or prompt_audio_url. | |
| finish_on_key | No | Key that submits the digits early (default #). none: submit only on num_digits or digit_end_timeout, so # counts as a digit. | |
| prompt_audio_url | No | https .mp3/.wav played as the prompt, after prompt_text when both are given. | |
| digit_end_timeout | No | Seconds of silence between keys after which the digits entered so far are submitted: 2-10, or auto (default). | |
| execution_timeout | No | Seconds to wait for the first key after the prompt finishes, 5-60 (default 15). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True on success. On a failure the result is isError with ok: false plus `error` (kind), `message`, `retryable` and sometimes `http_status`. | |
| url | No | https URL of the step's XML, usable as make_call answer_url or unhold_call resume_url (valid 24 hours, lost on server restart). | |
| xml | No | The generated <Gather> VobizXML, for inspection. | |
| note | No | How to read the result. | |
| flow_id | No | 32-hex id of the hosted step; pass it to get_gather_result to read the digits. | |
| transferred | No | True when call_uuid was given and Vobiz accepted moving that call into the step. |