Tools rule
A tool has two halves:- UI/config definition
- prompt instructions telling the bot when to use it
End Call
Enable End Call when the bot should be allowed to terminate the call after success, refusal, wrong number, abusive customer, or other terminal states. The tool description should be clear:Transfer targets
Only two transfer methods exist, and each is tied to a transport. CXB Core resolves a target by matching the bot’s enabled targets against the active transport.| Method (enum) | Transport | Use case |
|---|---|---|
websocket_reverse_transfer | WebSocket transport | Reverse-transfer the live call to an extension/number. |
livekit_sip_refer | LiveKit SIP | SIP REFER to a phone_number, tel: URI, or sip: URI. |
Agent Desk is a separate handoff path, not a transfer method. It does not appear in the transfer-method enum and is not resolved by the transfer-target logic. To send a customer into the human-agent queue, enable Agent Desk settings on the bot and confirm agents are available in CXB Console. See the Test Calls page for the Agent Desk verification checklist.
Callback scheduling
If this bot should detect “call me back later” requests, enable the callback toggle (callback_prompt_injection). It only fires when the campaign also enables callback detection — see Callbacks for the full double-gate behavior.
Custom HTTP tools
Custom tools can call external APIs during the conversation. Ops checklist:- tool name is short and action-oriented
- description tells the bot exactly when to use it
- HTTP method and URL are correct
- required arguments match the API
- timeout behavior is acceptable
- spoken pre-message is natural in the call language
tool_call and custom_tool_result.
CRM pre-fetch
Use pre-fetch when the bot needs customer data before speaking. Typical flow:- CXB API receives call/campaign variables.
- CXB API calls CRM pre-fetch endpoint.
- CRM response fields become
crm.*variables. - Bot prompt/opening message uses those fields.
Post-call push
Use post-call push when CRM must receive call outcome data. Map:- call metadata
- recording URL
- analysis fields
- disposition/sub-disposition
- QC fields
- campaign variables if needed
Knowledge Base RAG
Enable Knowledge Base RAG when the bot needs grounded answers from uploaded documents. Ops checklist:- KB is active and has documents/chunks.
- KB description explains what the documents contain.
- Bot has the correct KB attached.
- Trigger instructions tell the bot when retrieval is mandatory.
- Strict mode is enabled only when the bot must answer only from KB.
- Fallback message is safe when no answer is found.
search_knowledge.