https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can I add a customize function that sends certain ...
# ❓・ai-evy-support
l
@AI Evy Can I add a customize function that sends certain fields when the call ends in the conversational flow agent
a
Thanks for tagging me @leenalhamwi. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can add custom functions to conversation flow agents that can send specific fields [(1) ]() . Custom functions allow you to extend your agent's capabilities by integrating external APIs, providing additional knowledge, or implementing custom logic . When a custom function is called, Retell sends a request to your specified URL with the function name and parameters . You can configure the function to: 1. Configure function details - Add a name and description for the custom function 2. Select HTTP Method - Choose from GET, POST, PATCH, PUT, or DELETE 3. Add endpoint URL - Specify where Retell will send the request 4. Set request headers - Include custom headers with static or dynamic variables 5. Define parameters - Use JSON schema format to define what data gets sent 6. Set response variables - Extract values from the API response and save them as dynamic variables for later use The request includes a
call
object that contains context about the call, including real-time transcript up to the time the request is sent . You can use this to capture and send specific fields from the conversation. For triggering functions at call end specifically, you would need to structure your conversation flow with an end node that calls your custom function before terminating the call [(2) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.