Using SIP Tools in 008 Agent
In the SIP environment of 008 Agent, you can use native tools to manage the ongoing call. These tools are automatically triggered from your prompts for call transfers. However, if a tool requires the call to be placed on hold during its execution, this must be explicitly stated in the toolβs JSON Schema description.
π§ Available SIP Tools
Section titled βπ§ Available SIP Toolsβ| Tool Name | Description |
|---|---|
hangUp | Ends the current call. |
call_transfer | Transfers the call to another extension or agent. |
call_hold | Places the call on hold. Should be used only if another tool explicitly requires it. |
call_unhold | Resumes a previously held call. |
call_info | Retrieves call information: caller number, current time, CDR data, etc. Ideal for contextual logic. |
β Best Practices
Section titled ββ Best Practicesβ- Always use
call_holdwhen a toolβs description specifies it. - Do not call
call_unholduntil the previous tool has responded. - For transfers, itβs enough to specify in the prompt which extension to transfer to.
π Example of a Tool Requiring Call Hold (call_hold)
Section titled βπ Example of a Tool Requiring Call Hold (call_hold)β{ "name": "consultar_conocimiento_008", "parameters": { "type": "object", "description": "You must ALWAYS use call_hold when invoking this tool, placing the call on hold until the response is received. Do not use call_unhold until you have the answer.", "properties": { "query": { "type": "string", "description": "This will contain the user's question" } }, "required": ["query"] }}βοΈ In this case, the call must automatically be placed on hold when the tool is invoked, and it should not be resumed until a response is received via call_unhold.
π Transfer Logic Example
When a user requests to speak with a specific team, use call_transfer specifying the appropriate extension.
π§βπ» Prompt Example:
"If the user asks to speak with the support team,transfer the call to extension 2202 and mention you aretransferring the call to the 008 Agent support team."By using these tools, your Agent becomes a fully capable live call operator β managing holds, transfers, and contextual data to provide a seamless voice experience.