https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> for utc timezone what shoul...
# ❓・ai-evy-support
b
@AI Evy for utc timezone what should the current_time variable be
a
Thanks for tagging me @bcro.. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Dynamic Variables]() * [Simulation Testing Now Live for All Agents]() * [Discord message from @miku_42 on 2025-02-15]() -----------------------------
### Answer You can use the current_time_[timezone] variable with your specific timezone [(1)]() . For UTC, you would format it as:
Copy code
json
{{current_time_UTC}}
This will show the current time in UTC timezone, similar to how other timezone examples work like current_time_Australia/Sydney or current_time_America/New_York [(2)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy give me end call function best practices
a
Thanks for the follow-up, @bcro.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [End call]() * [Custom LLM Best Practices]() * [Integrate Function Calling]() * [How to use function calling to end the call in Retell AI](

▾

) -----------------------------
### Answer 1. Add the end call tool in the tools section [(1)]() 2. Define clear termination conditions in your prompt, for example: "If the user says 'thank you', 'goodbye', or 'bye', use the end_call tool to terminate the conversation." 3. Structure your end call instructions clearly with numbered steps: "When the conversation comes to an end or the user says 'bye': 1. Say 'have a great rest of your day' 2. Use 'end_call' tool to end the call" [(2)]() 4. For Node.js implementation, here's the function definition:
Copy code
typescript
{
  type: "function",
  function: {
    name: "end_call",
    description: "End the call only when user explicitly requests it.",
    parameters: {
      type: "object",
      properties: {
        message: {
          type: "string",
          description: "The message you will say before ending the call with the customer.",
        },
      },
      required: ["message"],
    },
  }
}
[(3)]() 5. Keep end call as a general function in the main prompt rather than in individual states for multi-prompt agents [(4)]() 6. When writing prompts for the LLM, add specific instructions like: "Do not mix the tool name in your response" to avoid the agent vocalizing the function call [(5)]() 7. Set max call duration and max silence duration in settings as a fallback to ensure calls eventually end [(2)]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.