https://retellai.com/?utm_source=discord&utm_medium=seo logo
api integration
# ❓・ai-evy-support
s
@AI Evy api integration
a
Thanks for tagging me @sreehari_aalmosthuman. I'll look through relevant sources and get back to you shortly.
### Answer API Integration with Retell AI allows your voice agents to connect with external systems like CRMs, databases, and other business tools to complete real tasks beyond simple conversations [(1) ]() . This enables agents to retrieve account information, book appointments, update records, and trigger follow-up workflows automatically . ## How API Integration Works API Integration acts as a bridge between your AI agent and your tech stack, allowing voice agents to pull live data, update backend systems, and personalize responses in real time . When a customer makes a request, the AI voice agent sends a request to an external system via API, retrieves relevant information or submits updates, then uses this real-time data to continue the conversation naturally . ## Implementation with Retell AI You can integrate Retell AI with your existing systems using custom functions. Here's how to get started with the JavaScript SDK:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.create({ agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD' }) ;
console.log(chatResponse.agent_id) ;
[(2) ]() ## Integration Capabilities Retell AI supports integration with: - Customer databases for personalized interactions [(3) ]() - CRM systems for context-aware conversations - Service systems for efficient issue resolution - Workflow automation platforms like Make.com and n8n - Telephony providers like Twilio and Vonage ## Best Practices When integrating with business systems: - Enable real-time access to customer profiles and preferences - Automate data entry by logging call details into your CRM - Connect to ticketing systems to track and update customer requests - Use well-documented RESTful APIs with proper authentication and encryption For detailed implementation guidance, refer to Retell AI's custom function integration documentation .
​ To learn more, see the sources I considered: [[1] API Integration](https://www.retellai.com/glossary/api-integration) [[2] Create Chat](https://docs.retellai.com/api-references/create-chat) [[3] Voice API: Integrate Phone AI Agents with Your System | Retell AI](https://www.retellai.com/blog/how-to-integrate-phone-ai-agents-with-your-existing-api-systems) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy voice to voice api integration
a
Thanks for the follow-up, @sreehari_aalmosthuman. I'll get back to you soon.
### Answer ## Voice-to-Voice API Integration with Retell AI Voice-to-voice API integration with Retell AI allows your AI voice agents to interact with external systems during live conversations, enabling real-time data retrieval and actions [(1) ]() . This creates dynamic voice experiences where agents can access CRMs, databases, and other business tools while maintaining natural conversation flow [(2) ]() . ## How Voice-to-Voice Integration Works When integrated with APIs, Retell AI voice agents follow this process : 1. **Trigger**: Customer makes a request during the voice conversation 2. **Data Exchange**: The AI voice agent sends a request to external systems via API and retrieves relevant information 3. **Dynamic Response**: The agent uses real-time data to continue the conversation naturally 4. **Automated Follow-up**: Actions like CRM updates or notifications happen instantly based on call outcomes ## Implementation with Custom Functions You can create custom functions that integrate your voice agents with external APIs [(3) ]() . Here's the process: ### Configure Function Details Add a name and description for the custom function using underscores for separation [(4) ]() [(3) ]() : - Name:
get_user_details
- Description:
Get user details based on name and age
### Select HTTP Method Choose from available HTTP methods : - GET - POST - PATCH - PUT - DELETE ### Define Parameters Use JSON schema format for function parameters :
Copy code
json
{
 "type": "object",
 "properties": {
 "city": {
 "type": "string",
 "description": "The city of the weather"
 }
 },
 "required": [
 "city"
 ]
}
[(4) ]() ## Request & Response Handling When a custom function is called, Retell sends a request to your specified URL with function name and parameters . The request includes : - **Header**:
X-Retell-Signature
for request verification and
Content-Type: application/json
- **Body**: Contains
name
(function name) ,
call
(call context) , and
args
(function arguments) Response formats supported include string, buffer, JSON object, or blob - all converted to string before sending to the LLM . ## Integration Benefits Voice-to-voice API integration enables businesses to [(1) ]() [(2) ]() : - Deliver hyper-personalized conversations at scale - Automate complex, multi-step processes without human handoff - Accelerate call resolutions by instantly accessing core business systems - Maintain conversation context while executing backend actions This creates voice agents that act as dynamic operators within your business, capable of retrieving CRM data, modifying records, and triggering workflows during live conversations [(2) ]() .
​ To learn more, see the sources I considered: [[1] Voice API: Integrate Phone AI Agents with Your System | Retell AI](https://www.retellai.com/blog/how-to-integrate-phone-ai-agents-with-your-existing-api-systems) [[2] API Integration](https://www.retellai.com/glossary/api-integration) [[3] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[4] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
wss://api.retellai.com/v1/agent/YOUR_AGENT_ID/ws
@AI Evy wss://api.retellai.com/v1/agent/YOUR_AGENT_ID/ws
a
Thanks for the follow-up, @sreehari_aalmosthuman. I'll get back to you soon.
### Answer ## WebSocket Connection for Custom LLM Integration The WebSocket URL
wss://api.retellai.com/v1/agent/YOUR_AGENT_ID/ws
is used for custom LLM integration with Retell AI [(1) ]() . This endpoint allows you to connect your own LLM to handle voice conversations through WebSocket communication . ## Implementation Steps To use this WebSocket connection, you need to: 1. Set up a WebSocket server to handle the connection 2. Integrate with your chosen LLM for processing conversation logic 3. Handle function calling if you need your agent to take actions [(2) ]() ## Custom LLM Integration When connecting to this WebSocket endpoint, you can integrate with various LLM providers [(1) ]() . The documentation provides examples for: - Azure OpenAI - OpenAI - OpenRouter ## Function Calling Support Through this WebSocket connection, you can implement function calling to let your voice agent take actions beyond talking [(2) ]() . This includes: - Calling external APIs - Booking appointments - Transferring or ending calls - Getting external knowledge The WebSocket interface allows you to have full programmatic control over your agent's behavior while leveraging Retell AI's voice infrastructure for speech-to-text, turn-taking, and text-to-speech capabilities.
​ To learn more, see the sources I considered: [[1] Integrate LLM](https://docs.retellai.com/integrate-llm/integrate-llm) [[2] Integrate Function Calling](https://docs.retellai.com/integrate-llm/integrate-function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy where can i find the api
a
Thanks for the follow-up, @sreehari_aalmosthuman. I'll get back to you soon.
### Answer Based on the sources available, I can see API endpoints in the documentation, but I don't have comprehensive information about where to find all Retell AI APIs in the available sources. From what I can see: ## API Documentation Location The API references appear to be documented at
docs.retellai.com/api-references/
[(1) ]() . For example, the List Phone Numbers endpoint is documented at [List Phone Numbers]() . ## API Authentication To use Retell AI APIs, you'll need an API key for authentication [(2) ]() . The API key should be included in request headers as:
Copy code
Authorization: Bearer YOUR_API_KEY
## Available Endpoints From the sources, I can see there's at least: - Phone number management endpoints [(1) ]() - A test case creation API mentioned: ` [(3) ]() However, I don't have complete information about all available API endpoints in the provided sources. For a comprehensive list of all Retell AI APIs, I'd recommend checking: - [API Key Overview]() [(2) ]() - The main API documentation section at docs.retellai.com Would you like me to provide a general answer based on my knowledge instead, or do you have a specific API endpoint you're looking for?
​ To learn more, see the sources I considered: [[1] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) [[2] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[3] Question about API's](https://discord.com/channels/1186424376300679209/1404590446214385705) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
any where we can purchase the api
@AI Evy anywhere i can purchase the api
a
Thanks for the follow-up, @sreehari_aalmosthuman. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific information about where to purchase Retell AI API access. The sources focus on managing API keys once you have access, but don't cover the purchasing or signup process [(1) ]() [(2) ]() . For purchasing API access, I'd recommend: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer based on my knowledge instead, or do you need help with managing existing API keys once you have access?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[2] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) ​
s
@AI Evy i like to build a platform and like to integrate retell ai for voice as a agent
a
Thanks for the follow-up, @sreehari_aalmosthuman. I'll get back to you soon.
### Answer ## Building a Platform with Retell AI Voice Agents To build a platform integrating Retell AI voice agents, you can leverage several integration approaches depending on your platform's architecture [(1) ]() . ## Integration Options ### Custom Functions for API Integration You can create custom functions that allow your voice agents to interact with your platform's backend systems [(2) ]() [(3) ]() . When called, Retell sends a request to your specified URL with the function name and parameters [(3) ]() . ### Configuration Steps 1. Configure function details - Add a name and description for the custom function, separated with underscores [(4) ]() [(3) ]() : - Name:
get_user_details
- Description:
Get user details based on name and age
2. Select HTTP Method - Choose from GET, POST, PATCH, PUT, or DELETE 3. Add endpoint URL - Specify where Retell will send requests to execute your custom function 4. Define parameters using JSON schema format :
Copy code
json
{
 "type": "object",
 "properties": {
 "city": {
 "type": "string",
 "description": "The city name"
 }
 },
 "required": ["city"]
}
[(4) ]() ### Request Verification To verify requests are from Retell, check the
X-Retell-Signature
header [(3) ]() :
Copy code
javascript
import { Retell } from "retell-sdk";
this.app.post("/check-weather", async (req: Request, res: Response) => {
 if (
 !Retell.verify(
 JSON.stringify(req.body) ,
 process.env.RETELL_API_KEY,
 req.headers["x-retell-signature"] as string,
 )
 ) {
 console.error("Invalid signature") ;
 return;
 }
 const content = req.body;
 if (content.args.city === "New York") {
 return res.json("25f and sunny") ;
 } else {
 return res.json("20f and cloudy") ;
 }
}) ;
## Platform Integration Benefits Integrating Retell AI enables your platform to [(5) ]() : - Deliver hyper-personalized conversations at scale - Automate complex, multi-step processes without human handoff - Accelerate call resolutions by instantly accessing core systems ## Getting Started For platform development, you'll need to: 1. Contact [Contact Sales]() for API access 2. Review the comprehensive [API documentation]() [(6) ]() 3. Implement custom functions to connect your platform's backend systems The integration allows voice agents to act as dynamic operators within your platform, retrieving data, updating records, and triggering workflows during live conversations [(5) ]() .
​ To learn more, see the sources I considered: [[1] Voice API: Integrate Phone AI Agents with Your System | Retell AI](https://www.retellai.com/blog/how-to-integrate-phone-ai-agents-with-your-existing-api-systems) [[2] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) [[3] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[4] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[5] API Integration](https://www.retellai.com/glossary/api-integration) [[6] Web Agent](https://discord.com/channels/1186424376300679209/1354479008775143426) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.