Built-in Tools
Phonic provides built-in tools that work seamlessly while handling calls on Phonic’s infrastructure. The quickest way to enable one is to add its name to an agent’s or conversation’s tools array (e.g. "tools": ["keypad_input"]) — no tool creation needed. You can also create them as tool instances with your own name and description (see Creating built-in tools as instances below); both behave identically at runtime.
Keypad Input (DTMF)
keypad_input lets the agent press keypad buttons including digits (0-9) and special keys (#, *, A, B, C, D). Phonic uses out-of-band DTMF (RFC 4733) signaling with our telephony integration.
Include keypad_input in the agent’s tools list. When running a conversation via WebSocket, handle the dtmf message on your infrastructure.
Natural Conversation Ending
natural_conversation_ending lets the agent hang up. Include it in the agent’s tools list. By default the agent speaks before hanging up; to change that, set speech_before_tool_call under the tool_natural_conversation_ending key in built_in_tool_configs (see Configuring built-in tools on an agent). When running via WebSocket, handle the assistant_ended_conversation message on your infrastructure.
Choose Not to Respond
choose_not_to_respond lets the agent stay silent for a turn instead of always replying — useful when the caller is thinking out loud, talking to someone else, or hasn’t finished speaking. Include it in the agent’s tools list. By default the agent stays silent for the rest of the turn. To have it wait and then speak a follow-up if the caller is still silent, set respond_after_sec to the number of seconds to wait — either in the agent’s built_in_tool_configs under the tool_choose_not_to_respond key, or on a tool instance (see below).
Configuring built-in tools on an agent
To change how a built-in tool attached by its bare name behaves, set the agent’s built_in_tool_configs. Its keys are built-in tool IDs, which are the tool name prefixed with tool_: tool_natural_conversation_ending, tool_keypad_input, tool_web_search, and tool_choose_not_to_respond. Bare names such as natural_conversation_ending are rejected.
tool_natural_conversation_endingandtool_keypad_inputtakespeech_before_tool_call:"required"(speak first),"optional"(model decides), or"suppressed"(stay silent before the call).tool_web_searchtakesspeech_before_tool_calland an optionalcan_run_during_user_speech.tool_choose_not_to_respondtakesrespond_after_sec.
A built-in tool not listed in built_in_tool_configs uses its default configuration. When you update an agent, built_in_tool_configs replaces the stored map, so include every entry you want to keep.
Creating built-in tools as instances
Instead of attaching a built-in by its bare name, you can create it as a tool with your own name and description — in the dashboard’s Create tool menu, or via tools.create with type set to built_in_natural_conversation_ending, built_in_keypad_input, or built_in_choose_not_to_respond. This is useful when you want a custom-worded description for the model, and you attach the instance to an agent by its name just like any other tool.
These instances take no custom parameters and always run in sync mode (execution_mode is optional and defaults to "sync"). built_in_natural_conversation_ending and built_in_keypad_input accept an optional speech_before_tool_call setting — "required" (speak first), "optional" (model decides), or "suppressed" (stay silent before the call). It defaults to "required" for built_in_natural_conversation_ending and "optional" for built_in_keypad_input. built_in_choose_not_to_respond accepts an optional respond_after_sec — the number of seconds to wait before the agent speaks a follow-up if the caller stays silent; leave it unset (the default) to keep the agent silent for the rest of the turn.