https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hello Retell AI Support Team,I’m trying to integra...
# ❓・ai-evy-support
j
@AI Evy Hello Retell AI Support Team, I’m trying to integrate the following cURL request into a Custom Function inside my Conversation Flow Agent: curl --request GET \ --url https://street.co.uk/open-api/v1/properties \ --header 'Accept: application/vnd.api+json' \ --header 'Authorization: Bearer 123' I’d like to know the correct way to configure this in the Custom Function builder. Specifically: Where should I add the Accept and Authorization headers? How do I properly set the branch and status query parameters so they can be dynamic based on user selection? Can I extract the property details (filtered by branch ID) from the response and pass them into the conversation flow as variables? Could you please guide me with the exact setup steps or confirm if my current configuration is correct? Thank you!
a
Thanks for tagging me @jainam4021. I'll look through relevant sources and get back to you shortly.
### Answer I can help you configure your Custom Function for the GET request. Here's how to set it up: ## Setting Up Headers You can add the Accept and Authorization headers in the "Set request headers" section of the Custom Function builder [(1) ]() . Header values can be static or include dynamic variables . For your headers: - **Accept**:
application/vnd.api+json
- **Authorization**:
Bearer 123
## Dynamic Query Parameters You can define query parameters in the "Set query parameters" section . Query parameter values can be static or include dynamic variables . For dynamic parameters based on user selection, you can use dynamic variables like
{{branch_id}}
and
{{status}}
in your query parameter values . ## HTTP Method Configuration Since you're using a GET request, select GET as the HTTP method . Available methods include GET, POST, PATCH, PUT, and DELETE . ## Extracting Response Data Yes, you can extract values from the API response and save them as dynamic variables for use later in the conversation . You can extract a user's name from the response and reference it later using
{{user_name}}
. For example, if your API response contains property details, you can extract them and reference them later in the conversation using the
{{variable_name}}
syntax [(2) ]() . ## Response Handling The response can be in various formats (string, buffer, JSON object, blob) and will be converted to string before sending to the LLM for further processing [(1) ]() . The function result is capped at 15,000 characters to prevent overloading the LLM context window . ## Configuration Steps 1. Configure function details with a unique name separated by underscores 2. Select GET a
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
s the HTTP method 3. Add your endpoint URL: ` 4. Set request headers for Accept and Authorization 5. Set query parameters for branch and status (using dynamic variables if needed) 6. Configure response variables to extract property details The request will timeout in your specified timeout period, or 2 minutes if not specified, and will be retried up to 2 times if it fails .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.