### Answer
Based on the documentation, custom functions in Retell AI require external endpoints that you host [(1) ](
) . When you create a custom function, Retell sends a POST request to your specified URL with the function name and parameters . The function execution happens outside of Retell's platform on your own server or endpoint .
For a phone directory lookup, you would need to:
1. Host your own endpoint that can handle the directory lookup logic
2. Configure the custom function in Retell's dashboard to point to your endpoint
3. Define the parameters your function needs (like name, department, etc.)
Retell provides pre-built functions for common use cases, but for custom logic like phone directory lookups, you'll need to implement and host the function externally [(2) ](
) [(1) ](
) .