https://retellai.com/?utm_source=discord&utm_medium=seo logo
DO i need to explain the function in my voice agen...
# ❓・ai-evy-support
w
@AI Evy DO i need to explain the function in my voice agent prompt?
a
Thanks for tagging me @wonybologna. I'll look through relevant sources and get back to you shortly.
### Answer Yes, it's best practice to explicitly explain when to invoke custom functions in your voice agent prompt. [(1) ]() For example, you should include instructions like:
Copy code
When user provided the city name, please get the weather for that city by calling the `get_weather` function.
This helps the agent understand the appropriate timing and context for calling your custom functions.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
w
If i give you my current prompt and functions can you help me properly integrete my funtiont into the prompt when trying to get my lead to book @User
If i give you my current prompt and functions can you help me properly integrete my funtiont into the prompt when trying to get my lead to book @AI Evy
If i give you my current prompt and functions can you help me properly integrete my funtiont into the prompt when trying to get my lead to book @AI Evy
a
Thanks for the follow-up, @wonybologna. I'll get back to you soon.
### Answer I can help guide you on how to properly integrate booking functions into your prompt based on Retell AI's documentation. For booking appointments, you should explicitly state in your prompt when to invoke the booking function [(1) ]() [(2) ]() . Here's the recommended approach: For custom booking functions: Add clear instructions like:
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
[(1) ]() For Cal.com integration: Include in your prompt:
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
[(2) ]() Best practices for function integration: - Explicitly describe when the function should be called [(1) ]() [(3) ]() - Make sure your function has a clear name and description (e.g., "Book the appointment for 30-minute consultation calls") [(2) ]() - Define the parameters your function needs using JSON schema format [(1) ]() [(3) ]() If you'd like specific help integrating your particular prompt and functions, feel free to share them and I can provide more targeted guidance based on Retell AI's documentation. **
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Book Calendar](https://docs.retellai.com/build/book-calendar) [[3] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @wonybologna. I'll get back to you soon.
### Answer I'm ready to help you integrate your booking function into your prompt. Share your current prompt and function details, and I can provide specific guidance on how to properly structure it. When you share your information, I'll help you: - Add clear instructions about when to invoke your booking function [(1) ]() [(2) ]() - Ensure your function parameters are properly defined [(1) ]() [(3) ]() - Structure the prompt to guide the agent through the booking flow [(4) ]() Go ahead and paste your current prompt and function configuration, and I'll provide targeted recommendations based on Retell AI's best practices. **
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Book Calendar](https://docs.retellai.com/build/book-calendar) [[3] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[4] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.