1. How Dynamic Tool Calling Works
2. Adding a Custom Tool to Your Agent
To configure a custom tool for your AI Agent:- Open your agent from the dashboard.
- In the configuration panel, click the Custom Tools tab.
- Click Add Custom Tool in the top right.
- Fill in the tool configuration fields:
Configuration Fields
3. Configuring Custom Headers & Authentication
If your API requires an API key, Bearer token, or custom headers:- Under the Headers section, click + Add Header.
- Enter the key and value:
Headers are securely stored and sent directly by your backend server on every request. They are never exposed to the caller.
4. Configuring Tool Parameters
Parameters define the data that the AI will extract from the caller’s spoken words or pass as fixed default values:- Under the Parameters section, click + Add Parameter.
- Configure each parameter:
- Name: The JSON key (e.g.
date,time,order_id,customer_name). - Type:
string,number,integer, orboolean. - Description: Guidance for the AI (e.g.
Date in YYYY-MM-DD format (e.g. 2026-08-21)). - Required: Check if the tool cannot execute without this parameter.
- Name: The JSON key (e.g.
Passing Hardcoded or Default Values
If you want the AI to always pass a fixed value (such as a company ID or fixed phone number) without asking the caller:- In the Description, write:
Always pass "+919019068738"orFixed user ID. Always pass "USR_12345". - The AI will automatically include that exact value in the payload without asking the customer.
5. Testing Your Tool in the Dashboard
Before placing a live call, you can test your tool directly from the dashboard:- On the tool card, click the Test (▶️) button.
- Enter sample test parameter values in the modal.
- Click Run Test.
- The modal will display the exact HTTP status (
HTTP 200 SUCCESS,401,500) and the returned JSON data.
6. Instructing Your AI Agent in the System Prompt
While Gemini will automatically detect tools based on their description, mentioning them in your System Prompt & Rules ensures strict, deterministic workflow execution:7. Connecting to n8n Webhooks
You can trigger any n8n workflow live during a call:- In n8n, create a Webhook node with method
POST. - Copy the Production Webhook URL (e.g.,
https://your-n8n.app/webhook/voice-lead). - In Trikon Voice Custom Tools, add a new tool:
- Method:
POST - URL: Your n8n webhook URL
- Parameters:
customer_name,intent,phone_number
- Method:
- When the caller speaks, n8n receives the live payload instantly and continues your automation flow (sending WhatsApp messages, updating Google Sheets, notifying Slack, etc.).
