alikizil0055
12/03/2025, 10:06 PMAI Evy
12/03/2025, 10:06 PMAI Evy
12/03/2025, 10:07 PMsend_sms, transfer_call, and press_digit should be configured in the agent's Functions section in the dashboard, not called directly by name in the prompt [(1) ]() .
For these functions to work properly, you need to:
1. Configure them in the dashboard under the agent's "Functions" section
2. Update your prompt with instructions on when to use them. For example, for transfer_call: "If the user is angry or frustrated, use the transfer_call tool to transfer the conversation to a human agent." [(2) ]()
3. **For send_sms**: Write a prompt to let the agent infer the SMS content, or use static SMS content with dynamic variable support [(3) ]() . Note that this only works for phone numbers with SMS enabled (currently only Retell Twilio numbers) .
The agent decides when to invoke these functions based on conversation context rather than explicit function names in the prompt [(1) ]() . The LLM determines when a function is needed, extracts required parameters from the conversation, and Retell executes the function .
If your functions still aren't working after configuring them in the dashboard and adding appropriate prompt instructions, you may want to check:
- Whether your phone number has the necessary capabilities (e.g., SMS enabled for send_sms) [(3) ]()
- Whether your prompt clearly describes the conditions for invoking each function [(2) ]() [(4) ](AI Evy
12/03/2025, 10:07 PMAI Evy
12/03/2025, 10:07 PMAI Evy
12/03/2025, 10:07 PMalikizil0055
12/03/2025, 10:08 PMAI Evy
12/03/2025, 10:08 PMAI Evy
12/03/2025, 10:09 PMsend_sms, transfer_call, and press_digit functions not working, I can help troubleshoot based on the Retell AI documentation [(1) ]() [(2) ]() . The key steps are:
1. Configure the functions in your agent's dashboard under the "Functions" section [(1) ]()
2. Add clear instructions in your prompt about when to invoke each function [(2) ]()
3. Verify your phone number capabilities (e.g., SMS must be enabled for send_sms)
Please share the file or provide more details about what you'd like me to check, and I'll be happy to help further.AI Evy
12/03/2025, 10:09 PMAI Evy
12/03/2025, 10:09 PMalikizil0055
12/03/2025, 10:10 PMAI Evy
12/03/2025, 10:10 PMAI Evy
12/03/2025, 10:10 PMAI Evy
12/03/2025, 10:10 PMAI Evy
12/03/2025, 10:10 PMalikizil0055
12/03/2025, 10:11 PMAI Evy
12/03/2025, 10:11 PMAI Evy
12/03/2025, 10:11 PMRun "send_sms" function and call "transfer_call" function. This is incorrect [(1) ]() . The LLM determines when to invoke functions based on conversation context, not explicit function name references .
2. Incorrect instruction format
Instead of Run "send_sms" function, you should describe when the agent should use the function [(2) ]() . For example:
- For `send_sms`: "After collecting the caller's information, send them a confirmation SMS"
- For `transfer_call`: "If the user is frustrated or the question is outside your knowledge, use the transfer_call tool to connect them to a human agent"
3. Immediate function execution at call start
Starting with Run "send_sms" function at the very beginning is problematic. The agent needs conversation context to extract parameters before executing functions [(1) ]() .
Recommended changes:AI Evy
12/03/2025, 10:12 PMGREETINGS AND FIRST INTERACTION
Begin every call with a friendly, professional welcome:
"Welcome to PikoTV. How can I help you today?"
Determine the purpose of the call: Sales inquiry, Support request, or General question.
Before continuing, ALWAYS collect:
* Full name
* Company name
* Purpose of call
After collecting this information, send a confirmation SMS to the caller.
GENERAL RULES
* Use ONLY information available in the PikoTV KB.
* Never guess, never invent technical or commercial details.
* If any question falls outside of the knowledge base, say "I may not have enough details to answer that" and transfer the call to a human agent.
The key is to describe the conditions for using functions rather than directly calling them by name [(2) ]() [(1) ]() .AI Evy
12/03/2025, 10:12 PMAI Evy
12/03/2025, 10:12 PMalikizil0055
12/03/2025, 10:12 PMAI Evy
12/03/2025, 10:12 PMAI Evy
12/03/2025, 10:12 PMcall "transfer_call" function and call "end_call" function [(1) ]() . The LLM determines when to invoke functions based on conversation context, not explicit function name references .
2. Incorrect closing instruction
Your closing says: "Thank you for contacting PikoTV. We appreciate your time." and call "end_call" function.
This should be rewritten to describe when to end the call [(2) ]() . For example:
- "If the user says 'thank you', 'goodbye', or 'bye', use the end_call tool to terminate the conversation."
3. Missing function call conditions
For end_call, you need to define specific termination conditions in your prompt . The documentation states you should "Define specific conditions under which the call should be terminated" .
Recommended rewrite for Part 2:AI Evy
12/03/2025, 10:12 PMPART 2:
2. Provide troubleshooting ONLY if the information exists in the KB.
3. If the answer is not available in the KB, say:
"For technical assistance on this issue, please contact our support. I am directing you."
Then transfer the call to a human agent.
INFORMATION COLLECTION
Before ending any call, always confirm:
* Full name
* Company
* Phone number
* Reason for the call
* Interested products (if sales)
* Issue summary (if support)
CLOSING
When the caller says "thank you", "goodbye", "bye", or indicates they're finished, say:
"Thank you for contacting PikoTV. We appreciate your time."
Then end the call.
NEVER DO
* Never invent technical specifications.
* Never provide pricing unless included in the KB.
* Never guess product compatibility.
* Never mention KB limitations or AI constraints.
* Never apologize excessively; stay confident and professional.
Additional tip from community:
One Discord user suggested adding a number to function names in your prompt to help the AI identify them, like end_call_152 [(3) ]() . However, the official approach is to describe conditions for function execution rather than calling functions by name [(1) ]() .
The key principle: describe the scenario when functions should execute, not the function names themselves [(1) ]() [(2) ]() .AI Evy
12/03/2025, 10:12 PMAI Evy
12/03/2025, 10:12 PMalikizil0055
12/03/2025, 10:13 PMAI Evy
12/03/2025, 10:13 PMAI Evy
12/03/2025, 10:13 PMAfter collecting the caller's full name, company name, and phone number, send them a confirmation SMS with the collected information.
For `transfer_call`: [(2) ]()
If the user requests to speak to a human agent, expresses frustration, or asks a question that falls outside the knowledge base, use the transfer_call tool to connect them to a human representative.
For `end_call`: [(3) ]()
If the user says 'thank you', 'goodbye', or 'bye', use the end_call tool to terminate the conversation.AI Evy
12/03/2025, 10:13 PMcall "transfer_call" function in your prompt [(2) ]() [(3) ]() . The LLM decides when to invoke functions based on conversation context and the conditions you describe [(2) ]() .
2. Define specific conditions for when each function should be triggered [(3) ]() . The agent needs clear instructions about the scenarios that warrant function execution [(2) ]() .
3. For send_sms, you can write a prompt to let the agent infer the SMS content, or use static SMS content with dynamic variable support [(1) ]() . Note that this only works for phone numbers with SMS enabled (currently only Retell Twilio numbers) .
4. Enhance the prompt by incorporating the function conditions directly into your agent's main instructions [(3) ]() . This helps the agent understand when to use each tool.
The key principle is to describe the scenario when functions should execute, not the function names themselves [(2) ]() [(3) ]() .
---
**AI Evy
12/03/2025, 10:14 PMAI Evy
12/03/2025, 10:14 PMalikizil0055
12/03/2025, 10:15 PMAI Evy
12/03/2025, 10:15 PMAI Evy
12/03/2025, 10:15 PMtransfer_call function doesn't support automatic retry logic or conditional fallback numbers within a single function call [(1) ]() .
What actually happens:
The transfer_call function transfers to one specific number per execution . If that transfer fails (no answer, busy, etc.) , the function returns a failure status, but it doesn't automatically try alternative numbers [(1) ]() [(2) ]() .
Regarding wait duration:
Yes, you should configure the ring timeout. For warm transfers, you can set the Agent detection timeout, which is the maximum time the AI agent will wait to determine whether the transfer target is a human [(1) ]() . The default timeout is 30 seconds .
For general ring duration before considering a transfer failed, there's a transfer_ring_timeout setting you can configure in your agent [(3) ]() . One community member resolved a similar issue by adjusting the "Ring duration setting" under the agent's call settings .
Recommended approach for fallback transfers:
Instead of putting conditional logic in the "Transfer To" prompt, you should:
1. Configure the ring timeout in your agent settings to allow sufficient time for each transfer attempt
2. Handle fallback in your main agent prompt by instructing the agent what to do if a transfer fails:AI Evy
12/03/2025, 10:15 PMIf the user wants to reach sales, transfer to +905425946651. If the transfer fails, try +90 536 565 52 09. If that also fails, try +90 553 165 11 39.
If the user wants to reach support, transfer to +905425946651. If the transfer fails, try +90 536 565 52 09. If that fails, try +90 553 165 11 39. If that fails, try +90 507 067 02 37.
This way, the agent can attempt multiple transfers sequentially based on the failure status returned by each transfer_call execution [(2) ]() .
**AI Evy
12/03/2025, 10:16 PMAI Evy
12/03/2025, 10:16 PMalikizil0055
12/03/2025, 10:18 PMAI Evy
12/03/2025, 10:18 PMAI Evy
12/03/2025, 10:18 PMsend_sms function does not work that way. The send_sms tool is designed to send an SMS from the current agent number to the user's number (the caller) , not to an arbitrary third-party number like +905425946651 [(1) ]() .
How send_sms actually works:
The send_sms function sends a one-way SMS from your agent's phone number to the person who is currently on the call with the agent . It only works during phone calls and requires that your phone number has SMS enabled (currently only Retell Twilio numbers support this) [(1) ]() [(2) ]() .
Your current prompt issue:
Your prompt "Send SMS to +905425946651 about the caller" is trying to send an SMS to a different number (+905425946651) rather than to the caller themselves. This is not what the built-in send_sms function does [(1) ]() .
What you should do instead:
If you want to send an SMS to the caller (the person on the phone) , your prompt should be:
After collecting the caller's information, send them a confirmation SMS with the details we discussed.AI Evy
12/03/2025, 10:18 PMsend_sms function only supports sending to the current caller [(1) ]() .
Additional requirements:
- Your phone number must have SMS capabilities enabled [(1) ]() [(2) ]()
- For Retell Twilio numbers, you need to complete A2P 10DLC registration for US numbers [(2) ]()
- Currently, SMS functionality is primarily supported for USA numbers [(6) ]()AI Evy
12/03/2025, 10:18 PMAI Evy
12/03/2025, 10:18 PMalikizil0055
12/03/2025, 10:20 PMAI Evy
12/03/2025, 10:20 PMAI Evy
12/03/2025, 10:21 PMpress_digit function is specifically designed for navigating IVR (Interactive Voice Response) systems [(1) ]() . Here's a prompt example you can add to your agent's prompt:
When you encounter an IVR menu or automated phone system, listen carefully to all available options. Press the appropriate digit to navigate to the correct department or menu option based on the user's needs. If the IVR menu repeats multiple times without progress, recognize that you may be stuck and take appropriate action.
Key points about press_digit behavior:
The agent will not speak when it's in the press digit node, but rather it will determine whether it should press a digit and which digit to press . The function evaluates whether to press a digit every time the user is done speaking .
Configuration recommendations:
You should set up IVR Navigation Instructions so that the agent knows whether and what digit to press . Additionally, configure a Detection Delay (recommended 1 second) to ensure the whole IVR menu is captured before the agent makes a decision, especially for IVR systems that speak slowly .
The agent uses this information to intelligently navigate through IVR menus and reach the appropriate department or service [(2) ]() .
**AI Evy
12/03/2025, 10:21 PMAI Evy
12/03/2025, 10:21 PMalikizil0055
12/03/2025, 10:21 PMAI Evy
12/03/2025, 10:21 PMAI Evy
12/03/2025, 10:22 PMpress_digit function in Retell AI is designed for the AI agent to press digits when navigating IVR systems, not for having the caller press digits to route to another agent [(1) ]() .
What press_digit does:
The press_digit tool enables Retell AI agents to navigate IVR systems using DTMF (Dual-Tone Multi-Frequency) input . This is useful when your AI agent makes outbound calls and encounters automated phone systems that require digit input to reach the right department .
What you're trying to achieve:
Based on your question, you want the caller (the human) to press a digit to be routed to another agent. This is not what the press_digit function does .
What you should use instead:
For routing callers based on their digit input, you should use the transfer_call function combined with conditional logic in your prompt [(2) ]() . Here's how:
1. Instruct the agent to ask the caller for input:
Ask the caller: "Press 1 for sales, Press 2 for support, or Press 3 for general inquiries."
Listen for the caller's response.
2. Add transfer logic based on their response:
If the caller says they pressed 1 or mentions sales, transfer the call to +905425946651.
If the caller says they pressed 2 or mentions support, transfer the call to +90 536 565 52 09.
If the caller says they pressed 3 or mentions general inquiries, transfer the call to +90 553 165 11 39.AI Evy
12/03/2025, 10:22 PMtransfer_call function to route them accordingly .
Important note:
The press_digit function only works with Call API v2 and is specifically for the AI agent to navigate IVR systems, not for collecting caller input [(1) ]() .AI Evy
12/03/2025, 10:22 PMAI Evy
12/03/2025, 10:22 PM