claytonfarr
02/26/2025, 7:14 PMAI Evy
02/26/2025, 7:14 PMAI Evy
02/26/2025, 7:14 PMAI Evy
02/26/2025, 7:14 PMclaytonfarr
02/26/2025, 7:18 PMAI Evy
02/26/2025, 7:18 PMAI Evy
02/26/2025, 7:18 PMget_knowledge and add an appropriate description
3. Define parameters for your knowledge retrieval function using JSON schema format:
javascript
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query to retrieve information from the knowledge base"
}
},
"required": [
"query"
]
}
4. Set up your endpoint URL where Retell will send the POST request to execute your custom knowledge retrieval function
5. Configure the speech behavior - you might want to enable "Speak during execution" so the agent can acknowledge it's looking up information
Your server would need to handle the knowledge retrieval logic and return the relevant information when the function is called.
The custom function approach gives you more control over when and how knowledge is retrieved, unlike the built-in KB feature which automatically retrieves information for every response.
For implementation details on custom functions, you can refer to the documentation on integrating custom functions and function calling.AI Evy
02/26/2025, 7:18 PM