https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am trying to verify identity to make outbound ca...
# ❓・ai-evy-support
r
I am trying to verify identity to make outbound calls using sip trunking on twillio, however Ecuador is not available on the list of countries to get the verification sms. How can I verify identity to make these calls? @AI Evy @User
a
Thanks for tagging me @ricardo_81183. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on the available documentation, verifying a phone number for caller ID on Twilio involves receiving an SMS or call for OTP verification during the process of adding a Verified Caller ID [(1) ]() . If Ecuador is not available in Twilio’s list for SMS verification, there is no documented alternative verification process in the Retell AI or Twilio integration documentation . This restriction is controlled by Twilio, not Retell AI. For outbound calls using SIP trunking via Twilio, you can still import numbers and set up the SIP trunk in Retell AI, but the ability to verify a number as a caller ID is dependent on Twilio’s verification policy . If a number from Ecuador cannot be verified due to country restrictions, you may not be able to use it as a caller ID for outbound calls through Twilio . Check out these potentially useful sources: [Twilio]() , [AI in SIP Calling & Telephony Solutions | Retell AI]() , [Import Phone Number]() Would you like a general answer about possible workarounds or alternative providers based on my knowledge?
r
i dont think you got my question right
a
Thanks for the follow-up, @ricardo_81183. I'll get back to you soon.
r
@AI Evy i dont think you got my question right. By verification i mean identity verification in retell not in twillio
a
### Answer For identity verification in Retell AI (not Twilio) , if you see a verification (KYC) banner in your Retell dashboard, you need to complete the KYC process to avoid service disruption. This process applies to all customers, including those using SIP trunking via Twilio. According to available guidance, the banner in the dashboard may be hard to see—it becomes visible when you hover over the relevant section in your profile menu. There is no explicit alternative verification process documented for cases where SMS is not available for your country; the process is managed within the Retell AI dashboard interface itself [(1) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Identity Verification Guide](https://discord.com/channels/1186424376300679209/1346989027353559111) ​
Appreciate the feedback! Feel free to ask me again with additional guidance or context.
j
@AI Evy -> I am really wonder that Retell has it own LLM behavior, It capture information and call to api trigger node (Funtional Node). Some time skip to call this functional node and this way I am not able to understand the behavior of LLM how to control.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer When an LLM decides whether to call a function, it's making an intelligent choice based on the function description and conversation context [(1) ]() . The function node gets invoked when entering that node in your conversation flow [(2) ]() . To better control when functions are called, you can: 1. Improve Function Descriptions Write clear, specific descriptions that tell the LLM exactly when to call the function [(1) ]() . For example, when defining a function like
end_call
, you'd specify "End the call only when user explicitly requests it" . 2. Control Transition Timing Function nodes have settings that affect when transitions happen [(2) ]() : - If
wait for result
is turned off, the agent transitions immediately after function invocation - If
wait for result
is turned on, the agent waits for the function result before transitioning - You can write transition conditions based on the function result 3. Use Conversation Flow for Better Control Conversation Flow provides "much finer control over conversation flows" compared to single or multi-prompt agents, with "enhanced node and transition definitions" and "built-in ultra-guidance mechanisms to ensure accurate and reliable responses" [(3) ]() [(4) ]() . 4. Adjust Node Settings In function nodes, you can choose different LLMs for specific nodes, control whether the agent speaks during execution, and define precise transition conditions [(2) ](
nction-node) . If functions are being skipped unexpectedly, review your transition conditions and ensure
wait for result
is configured appropriately for your use case .
​ To learn more, see the sources I considered: [[1] Integrate Function Calling](https://docs.retellai.com/integrate-llm/integrate-function-calling) [[2] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[3] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[4] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy -> Is there a way i can invocation tool through prompt.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer Yes, you can control function invocation through your prompt. The best practice is to explicitly include instructions in your prompt about when to invoke specific functions [(1) ]() . For example, you can add instructions like this in your prompt :
Copy code
When user provided the city name, please get the weather for that city by calling the `get_weather` function.
The LLM will use your function's name and description to decide when to call it [(2) ]() . Based on the conversation context, the agent determines when a function is needed, extracts required parameters, and then executes the function . For custom functions specifically, you should update the prompt to explicitly state the best time to invoke the function [(1) ]() . This helps guide the LLM's decision-making process about when to trigger your tools. **
​ 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] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) ​
j
@AI Evy -> I want to call the post api through invocation tool.
a
### Answer To call a POST API through a custom function in Retell AI, you can use the Custom Function feature which now supports POST requests (along with GET, PUT, PATCH, and DELETE) [(1) ]() . When creating a custom function, you can: - Set the HTTP method to POST - Add custom headers and query parameters - Configure the request body with the parameters you need The custom function enhancement provides a better UI for entering parameters and allows you to make POST requests to external APIs . Once configured, the LLM will invoke this function based on your prompt instructions and the function description you provide. To control when the function is invoked, include explicit instructions in your prompt about when to call the specific function, similar to: "When user provides [condition], call the [function_name] function." **
​ To learn more, see the sources I considered: [[1] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[2] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) [[3] Node Overview](https://docs.retellai.com/build/conversation-flow/node) ​
### Answer ### Answer To trigger a function after the agent gets item status and then speak a final message, you should use Conversation Flow with a sequence of nodes [(1) ]() . Here's the recommended structure: 1. Conversation Node - Agent collects item status information from the user [(2) ]() 2. Function Node - Calls your POST API/invocation tool [(3) ]() - Configure the function node to call your custom function - Enable "wait for result" so the agent waits for the function response before proceeding 3. Conversation Node - Agent speaks the final message based on the function result [(2) ]() Connect these nodes with edges that define the transition logic between them [(1) ]() . The transition from the function node to the final conversation node can be based on the function result [(3) ]() . This structured approach gives you "more fine-grained control over the conversation flow" and ensures "predictable behavior" where each node has specific logic and outcomes [(1) ]() . In your prompt for the final conversation node, you can reference the function result to customize what the agent says [(2) ]() . **
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
j
@AI Evy -> I want to trigger once agent get status for of items. call the invocation tool - function and then speak the final message.
a
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
j
@AI Evy -> You have provided this prompt. Still I am not able call or invoke the function. I follow the same approach. ## Identity You are an assistant that logs item status information. ## Task Instructions 1. Collect item status from the user 2. When user provides status, call
log_item_status
function immediately 3. Confirm the status has been recorded ## Response Guidelines Keep confirmations brief and clear. Always call the function before providing confirmation.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer ### Troubleshooting Function Invocation Issues If your function isn't being invoked despite having prompt instructions, here are the key areas to verify: #### 1. Check Your Function Definition Your function parameters must be properly defined using JSON schema format [(1) ]() . The schema should look like this:
Copy code
json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "The status of the item"
    }
  },
  "required": [
    "status"
  ]
}
A common mistake is not adding
"type": "object",
to the top level of the JSON schema . #### 2. Verify Your Function Configuration Ensure these settings are correct : - **Name**: Must be unique and separated with underscores (e.g.,
log_item_status
) - **Description**: Should clearly explain when to call the function (e.g., "Log the item status information provided by the user") - **HTTP Method**: Set to POST - **Endpoint URL**: Must be a valid URL without a trailing slash [(2) ]() **Important**: A trailing slash in your endpoint URL can cause the request to be sent as GET instead of POST . #### 3. Strengthen Your Prompt Instructions Make your prompt more explicit about the trigger condition [(1) ]() . Try this format:
Copy code
When user provided the status information, please log that status by calling the `log_item_status` function.
The LLM uses your function description and conversation context to decide when to call the function [(3) ]() . Be very specific about the exact moment when the function should be invoked. #### 4. Consider Using Conversation Flow If you need more reliable control, use a Function Node in Conversation Flow instead of relying solely on prompt-based invocation [(4) ]() . Function Nodes guarantee the function is invoked when entering that node , giving you much finer control over when functions execute. #### 5. Review Your LLM Selection Some users have reported issues with function calling consistency when using certain LLMs [(5) ]() . If you're using GPT-4 Turbo or similar models, you may need to be even more explicit in your prompt about when to call functions versus when to just speak . **Next Steps**: Can you share your exact function configuration (name, description, and parameter schema) so we can identify what might be preventing invocation?
​ 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] Custom Tool Function Call sends a "GET" from Retell to my URL and not a "POST" . Empty request body.](https://discord.com/channels/1186424376300679209/1284824056801132678) [[3] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) [[4] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[5] Custom LLM (GPT 4 Turbo) Function Calling Syncronization](https://discord.com/channels/1186424376300679209/1227360951683252244) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy -> How i invocate the tool by prompt, i have function that i can to capture the response. Can i trigger on the same time if agent complete the message and not wait for user turn or speak? How i can manage
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer --- ### Answer To trigger a function immediately after the agent completes speaking without waiting for the user's turn, you need to configure the "Speak After Execution" setting in your function configuration [(1) ]() . #### Key Configuration: Speak After Execution When you set up your custom function, there are two speech behavior settings that control when the agent speaks : 1. **Speak during execution**: Controls whether the agent speaks when the function is first called 2. **Speak after execution**: Controls whether the agent continues talking/performing actions after the function completes For your use case, you should: - Enable "Speak after execution" - This allows the agent to keep talking or execute another task after the function call completes, without waiting for user input According to the documentation: "You can use this to let agent tell user the result of the function call, continue the conversation, execute another task, etc after the function call is completed, without the need to wait for user to say anything to trigger a response" . #### Alternative Approach: Function Node with Wait Settings If you're using Conversation Flow with a Function Node, you can control transition timing [(2) ]() : - When "wait for result" is turned on and "speak during execution" is turned off, the agent will transition once the function result is ready - This means the function executes and completes before any speaking happens, and transitions occur automatically without user input #### Prompt Strategy In your prompt, be explicit about the sequence [(1) ]() :
Copy code
When user provides the status information, immediately call the `log_item_status` function. After the function completes, provide the confirmation message without waiting for user response.
This combination of enabling "speak after execution" and clear prompt instructions ensures your function triggers and the agent continues speaking automatically, without requiring the user to take a turn . **
​ 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] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.