Custom Functions
Create custom tools for specialized agent capabilities.
Overview
Custom functions let you extend your agents' capabilities beyond the built-in GHL tools. Create webhooks and API integrations that your agents can call during conversations.
Use Cases
Custom functions are useful for:
- Checking inventory or pricing from your systems
- Looking up order status from e-commerce platforms
- Integrating with industry-specific software
- Calling custom APIs or webhooks
- Complex calculations or logic
Creating a Custom Function
Build custom tools:
- 1Go to Agent Studio > Custom Functions
- 2Click 'Create Function'
- 3Define the function name and description
- 4Specify input parameters the agent will provide
- 5Configure the webhook URL or API endpoint
- 6Map the response data for the agent
- 7Test the function
- 8Enable it for specific agents
Technical Requirements
Your endpoint must:
- Accept POST requests with JSON body
- Return JSON response within 10 seconds
- Handle authentication if required
- Return clear, agent-friendly responses