A custom tool lets an agent call any API in the middle of a conversation, for example to check availability, look up a membership, get prices or stock, submit a booking or add a contact to your CRM.
Wrap values in double curly braces:
{{agent_input.…}}: a value the agent fills in from the conversation when it calls the tool{{contact.…}}: a field from the customer’s profile{{secret.…}} and {{variable.…}}: values you’ve saved under Tools → Variables{
"service": "{{agent_input.selected_service}}",
"email": "{{contact.email}}",
"api_key": "{{secret.booking_system_key}}"
}
See Sharing secrets and API keys to set up the values your tools need.
<aside> 🔒
Always keep API keys and passwords in a sensitive variable and reference them with {{secret.…}}. Never paste them into the tool itself.
</aside>
Need help building a custom tool? Contact us and we’ll set it up with you.