Custom Functions & Tool Calls
Extend your AI agents with custom API integrations and business logic
Create powerful custom functions that connect your AI agents to any external API, database, or service. Build reusable integrations with our visual function builder, import from cURL commands in seconds, or use pre-built templates for common services like Calendly, Stripe, and HubSpot.
Key Highlights
Discover what makes this feature stand out
Import from cURL Command
Paste any cURL command and instantly generate a fully-configured API function. Automatically extracts HTTP method, URL, headers, authentication, and request body - reducing 10-15 minutes of manual setup to seconds.
Intelligent Parsing Engine
Advanced parser detects method types, separates path and query parameters, converts authentication formats, and infers data types from JSON bodies. Handles multi-line commands with backslash continuations.
Visual Function Builder
Configure functions through an intuitive interface with step-by-step guidance. Set up basic details, configure headers and parameters, define request bodies, and test before deployment.
Pre-Built Templates
Start with ready-to-use templates for popular services including Calendly appointments, Stripe payments, HubSpot CRM, and more. Each template includes best practices and smart defaults.
Built-In Function Tester
Test your functions directly in the builder with real API calls. Validate responses, check error handling, and ensure everything works before assigning to agents.
Flexible Assignment
Assign multiple functions to any agent with conditional execution rules. Functions execute in real-time during conversations based on customer needs and conversation context.
Benefits
See how this feature can transform your business
Reduce function setup time from 15 minutes to 30 seconds with cURL import
Eliminate configuration errors with intelligent parsing and validation
Connect to any REST API without writing code
Reuse functions across multiple agents and use cases
Test integrations before deployment with built-in tester
Scale integrations without technical overhead
Why Choose VoiceInfra for Custom Functions & Tool Calls
Built by engineers who understand enterprise telephony complexity
Instant Deployment
Deploy in minutes, not months. No complex integrations or lengthy setup processes required.
Enterprise Security
Enterprise-grade infrastructure with end-to-end encryption and advanced security features.
Proven Scalability
Handle thousands of concurrent calls with fast response times and high availability.
Expert Support
Direct access to our engineering team during setup and beyond. White-glove onboarding included.
Use Cases
Explore how this feature can be applied in different scenarios
Appointment Scheduling
Connect to Calendly, Google Calendar, or custom booking systems to check availability and schedule appointments during calls.
Payment Processing
Integrate Stripe, PayPal, or payment gateways to process transactions, create invoices, and handle refunds in real-time.
CRM Integration
Update Salesforce, HubSpot, or custom CRM systems with customer data, create contacts, update deals, and log activities.
Database Operations
Query databases for customer information, inventory levels, order status, or any business data needed during conversations.
Notification Systems
Send SMS alerts, email follow-ups, Slack notifications, or trigger webhooks based on conversation outcomes.
Custom Workflows
Build multi-step workflows that combine multiple API calls, data transformations, and business logic execution.
How It Works
Get started with this feature in a few simple steps
Choose Creation Method
Select from three options: Import from cURL (fastest), use a pre-built template (easiest), or create from scratch (most flexible). Each method produces the same powerful function.
Configure Function Details
If importing from cURL, paste your command and watch as the system auto-extracts method, URL, headers, auth, and body. For manual creation, fill in basic setup including name, description, HTTP method, and base URL.
Set Up Parameters & Body
Define path parameters, query parameters, and request body schema. The cURL importer handles this automatically, while manual creation offers full control with type inference and validation.
Test Your Function
Use the built-in tester to make real API calls with sample data. Validate responses, check error handling, and ensure the integration works correctly before deployment.
Assign to Agents
Link your function to one or more AI agents. Configure when and how the function should be called based on conversation context and customer needs.
Monitor & Iterate
Track function execution in call logs and analytics. Monitor success rates, response times, and error patterns to optimize your integrations.
Implementation Timeline
Get up and running quickly with our streamlined deployment process
Day 1
Initial setup and configuration
Day 2-3
Integration and testing phase
Day 4-5
Training and optimization
Day 6+
Full production deployment
Technical Specifications
Enterprise-grade infrastructure built for reliability and scale
99.9% Uptime SLA
Enterprise-grade reliability with redundant infrastructure
Sub-second Response
Ultra-low latency for natural conversation flow
Global Infrastructure
Worldwide coverage with regional data centers
Multi-LLM Support
OpenAI, Anthropic, Google - choose the best model for your needs
Frequently Asked Questions
Find answers to common questions about this feature
Simply paste any cURL command into the import dialog. Our intelligent parser extracts the HTTP method, URL (separating base URL from query parameters), all headers including authentication, and request body. It automatically generates function names from the URL path, infers parameter types, and creates a complete function configuration ready for testing.
The cURL importer handles Bearer tokens, Basic auth (--user flags converted to Base64), API keys in headers, and custom authentication schemes. For OAuth flows or other complex auth, you can manually configure authentication after import or use our pre-built templates.
Absolutely! The cURL import creates a standard function configuration that you can edit just like manually-created functions. Modify parameters, update headers, change the request body, or adjust any setting. The import is just a faster starting point.
Every function includes a built-in tester. Click 'Test Function' to make real API calls with sample data. You'll see the actual request sent, response received, status codes, and any errors. This ensures your integration works correctly before assigning to production agents.
Yes! Functions are reusable across all your agents. Create once, assign to many. This is perfect for common integrations like CRM updates, payment processing, or appointment scheduling that multiple agents need to perform.
Agents handle function failures gracefully. You can configure error handling behavior: retry with exponential backoff, fall back to alternative functions, or inform the customer and continue the conversation. All failures are logged for monitoring and debugging.
Ready to transform your operations?
Schedule a demo to see how our solutions work for your industry.