Add an IVR

Add an IVR.

MCP tool

create_ivr

Tool parameters

You need to specify the following parameters in your request.

Note: The supported parameters are not limited to those listed below. You can ask your MCP client what other settings are supported using a prompt such as "What settings can I configure when adding an IVR?".
Parameter Required Description
name Yes The IVR name.
number Yes The IVR number.
prompt No The name of the IVR prompt. Valid values are default or the name of an existing custom prompt file on the PBX. Up to five prompts are supported; separate multiple prompt names with commas, for example, default,IVR.wav.The IVR prompt that plays greeting and explains the IVR menu options to callers.
Note: If you are unsure which values are supported, you can ask your MCP client using a prompt such as "How can I get the available prompt?"
prompt_repeat No The number of times to repeat the prompt.
digit_timeout No The number of seconds to wait between key presses.
resp_timeout No The number of seconds to wait for the caller to operate.
press_key_option_list No The complete list of key routes. Providing this list replaces all existing key routes.

Configure what happens when a caller presses a key or does not respond. Each key route includes:

  • Key:0–`9`, * (star), # (hash), invalid input, or no response before timeout.
  • Input type: PIN list (pin_list) or single key (single_key).
  • When it applies: all the time (all_time), during global office hours (global_office_time), during custom office hours (custom_office_time), or during custom time periods (custom_time_periods).
  • Action: end the call (end_call); send it to an extension (extension), extension voicemail (ext_vm), group voicemail (group_vm), another IVR (ivr), a ring group (ring_group), a queue (queue), or an external number (external_num); dial by name (dial_by_name); play a greeting (play_greeting) or prompt (play_prompt); join a conference (conference); follow a call flow (call_flow); or connect to an AI receptionist (ai_receptionist).
  • Destination: the destination number, such as 1000. An internal destination ID can also be used.
  • Caller ID name: the name to display for the default destination.

Example

The following example demonstrates how to use a natural language request in Codex to call this tool and add an IVR.

Prompt example
Help me create an IVR.
name:Add-IVR
Number:6204
Response example