https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to call an apify actor api
# ❓・ai-evy-support
t
@AI Evy how to call an apify actor api
a
Thanks for tagging me @thisisalbe. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer I don't have specific information about calling Apify Actor APIs in the available Retell AI sources. However, I can explain how API integration works with Retell AI voice agents. API Integration enables voice agents to interact with external systems like CRMs, databases, and other tools to turn conversations into real actions [(1) ]() . When a customer makes a request, the AI voice agent sends a request to an external system via API, retrieves relevant information, or submits an update . For connecting external APIs with Retell AI, you would typically use Retell AI's webhook and API integrations to make real-time automation simple, secure, and scalable . If you need specific guidance on integrating Apify Actor APIs with your Retell AI implementation, I'd recommend: - Visit [Contact Sales]() - Visit [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] API Integration](https://www.retellai.com/glossary/api-integration) ​
t
How do I add a body to a custom function request call? @AI Evy
a
Thanks for the follow-up, @thisisalbe. I'll get back to you soon.
### Answer To add a body to a custom function request call in Retell AI, you need to define parameters for your custom function using JSON schema format [(1) ]() [(2) ]() . The request body is automatically included when you use POST, PATCH, or PUT HTTP methods . Here's how to configure it: 1. **Select HTTP Method**: Choose POST, PATCH, or PUT (body parameters are only available for these methods) 2. **Define Parameters**: Use JSON schema format to define the parameters that will be sent in the request body Example parameter schema:
Copy code
json
{
 "type": "object",
 "properties": {
 "city": {
 "type": "string",
 "description": "The city of the weather"
 }
 },
 "required": [
 "city"
 ]
}
When Retell calls your custom function, it will send a request with the following structure : - **Header**:
X-Retell-Signature
(for verification) and
Content-Type: application/json
- Body (in JSON format) : Contains
name
(function name) ,
call
(call object) , and
args
(the arguments as a JSON object) The parameters you define in the JSON schema become the
args
object in the request body that gets sent to your endpoint .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.