### 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) ](
) .