https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is it possible to delay the execution of a functio...
# ❓・ai-evy-support
h
@AI Evy Is it possible to delay the execution of a function? For example, I have a transfer_call function, but after the conditions are met for a call transfer I'd like to wait for 1 or 2 seconds before trnsfering.
a
Thanks for tagging me @hhbuddy. I'll look through relevant sources and get back to you shortly.
### Answer There is no explicit documentation or setting in the official Retell AI sources that allows you to programmatically insert a fixed delay (such as 1 or 2 seconds) before executing a function like transfer_call [(1) ]() [(2) ]() . Community discussions mention issues with timing and the transfer_call function, but do not document a built-in way to delay execution [(2) ]() [(3) ]() . If you need more nuanced timing, you could try instructing the agent in your prompt to say a phrase, pause, and then execute the transfer, but there is no guaranteed or configurable delay feature documented. Check out these potentially useful sources: [Transfer call]() , [Retell transfer_call delay (never transfers immediately without a response) ]() , [Discord message from @.teamrick on 2025-10-01]() If you'd like a general answer about possible approaches, let me know.
​ To learn more, see the sources I considered: [[1] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] Retell transfer_call delay (never transfers immediately without a response)](https://discord.com/channels/1186424376300679209/1416864938487447644) [[3] Discord message from @.teamrick on 2025-10-01](https://discord.com/channels/1186424376300679209/1186462578310910112/1422991088070950942) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy Is it possible to update an ongoing calls varriables. For example, a call disposition is set, my server see's this, then sets a variable that says it's ready for the transfer?
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer Yes, you can update certain variables for an ongoing call using the Retell AI API, but there are important limitations. You can use the "Update Call" endpoint to add or update metadata on an active call. The metadata field is designed for arbitrary storage and can be used to store information like your server’s disposition status [(1) ]() . However, according to the documentation, this metadata is not used for processing by the agent during the call—it is only for storage and later retrieval . If you want to update dynamic variables that affect the agent’s behavior or prompt mid-call, the official documentation does not specify support for updating dynamic variables after the call has started via the "Update Call" endpoint [(1) ]() [(2) ]() . Community discussions suggest that while you can pass dynamic variables at call creation, there isn’t a documented method to push new dynamic variables to an ongoing call in a way that the agent will immediately use for logic or prompt changes [(3) ]() . Summary: - You can update the metadata field for storage during an active call [(1) ]() . - There is no documented way to update dynamic variables for real-time agent logic changes during an ongoing call [(1) ]() [(2) ]() [(3) ]() . If you want more details or a general approach, let me know.
​ To learn more, see the sources I considered: [[1] Update Call](https://docs.retellai.com/api-references/update-call) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] Using Patch (Call Update), not passing metadata back to call](https://discord.com/channels/1186424376300679209/1405378389443088444) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy If I use a custom function, can I send dynamic variables as parameters within it?
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer Yes, you can use dynamic variables as parameters in a custom function within Retell AI. When setting up a custom function, you can define parameters using JSON schema or JSON form, and dynamic variables can be included as values in the request headers, query parameters, or body depending on your function configuration [(1) ]() [(2) ]() [(3) ]() . For example, if you have a dynamic variable like {{user_name}}, you can use it as a value when configuring the parameters for the custom function. The system will resolve the variable if it has been set earlier in the conversation [(2) ]() [(1) ]() . However, there are some nuances: - In the request body (for POST, PATCH, PUT) , dynamic variables will be parsed and replaced with their values if set [(1) ]() [(2) ]() . - In query parameters and headers, dynamic variables are supported, but there have been community-reported issues where variables in query parameters may not always be parsed as expected [(4) ]() . Make sure to test thoroughly for your use case, especially if you rely on query parameters, and use defensive prompting or agent-level defaults as best practices [(2) ]() [(4) ]() .
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] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[4] dynamic variables in function query parameters are not parsed](https://discord.com/channels/1186424376300679209/1414306451656151291) ​
h
@AI Evy Can I send an SMS from a phone agent if the user doesn't answer the call?
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] SMS Node](https://docs.retellai.com/build/conversation-flow/sms-node) [[2] Send SMS](https://docs.retellai.com/build/single-multi-prompt/send-sms) ​
### Answer Based on the available documentation, the SMS functionality in Retell AI is designed to work during an active phone call, not when a call goes unanswered [(1) ]() [(2) ]() . The SMS Node and Send SMS tool are specifically documented to send text messages while the agent is on an active call with the user . The documentation states that "The SMS will be sent when entering this node" and "It only works in phone call" [(1) ]() . Similarly, the Send SMS tool is described as sending a message "from the current agent number to the user's number" and "only works in phone call" [(2) ]() . There is no explicit documentation covering SMS functionality for unanswered calls or voicemail scenarios in the sources provided. If you need to send an SMS after a missed call, you would likely need to implement this through your own server logic using Retell AI's webhooks (such as the call.ended event) combined with a separate SMS service. Check out these potentially useful sources: [SMS Node]() , [Send SMS]() If you'd like a general answer about possible workarounds, let me know.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy how do I add sms to numbers I've purchased? I have sms for one number, but I need to add it to others.
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer ### Answer Once you've completed the A2P registration process for your first Retell Twilio number, adding SMS capabilities to additional numbers is straightforward [(1) ]() . For Additional Retell Twilio Numbers: You can reuse your approved business profile and brand registration . Here's the process: 1. Select the new phone number in your Retell dashboard 2. Navigate to the SMS settings 3. Select your already-approved business profile 4. The brand registration will default to what you selected previously and cannot be changed 5. Select your approved SMS campaign (or create a new one if needed) 6. Submit the application Because your business profile, brand, and campaign are already approved, the process is much simpler than the initial setup [(2) ](

▾

) . You don't need to go through all three approval steps again [(1) ]() [(2) ](

▾

) . For Bring Your Own Twilio Numbers: If you're adding a Twilio number you already own: 1. Click "Setup SMS Function" in Advanced Add-Ons for that phone number [(1) ]() 2. Provide your Twilio credentials (Account SID and Auth Token) 3. Make sure your Twilio number already has SMS capabilities enabled and is compliant with SMS regulations Important Notes: - SMS capabilities are currently limited to US numbers only [(1) ]() [(3) ]() - You can create multiple campaigns if you need to send different types of SMS messages [(1) ]() - If your business profile and brand are approved but a campaign is rejected, you can reuse the approved profile an
d brand while creating a new campaign
​ To learn more, see the sources I considered: [[1] Enable SMS capabilities](https://docs.retellai.com/deploy/enable-sms) [[2] A2P Setup ultra guide | Enable SMS for Your Retell Agent](

https://www.youtube.com/watch?v=jdCmCMkOdnI▾

) [[3] TEXT MESSAGE ISSUE](https://discord.com/channels/1186424376300679209/1424595052595904542) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy I only see SMS settings on one of the numbers i need. Why can't I see it on the other?
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Enable SMS capabilities](https://docs.retellai.com/deploy/enable-sms) [[2] Purchase phone number](https://docs.retellai.com/deploy/purchase-number) [[3] Phone number can send SMS](https://discord.com/channels/1186424376300679209/1387874084536193024) [[4] Enabling sms texting on a phone number](https://discord.com/channels/1186424376300679209/1419800967821398127) ​
### Answer ### Answer There are a few reasons why you might not see SMS settings on all your numbers: 1. Number Type Limitation SMS capabilities are currently limited to US numbers only [(1) ]() . If one of your numbers is not a US number, SMS settings won't be available for it . 2. Toll-Free Numbers Require Special Setup If you're using toll-free numbers, they require additional configuration [(2) ]() . Toll-free numbers cost $5/month (compared to $2/month for regular US numbers) , and for inbound calls they cost $0.06 per minute . Toll-free numbers need to be linked to an A2P campaign even though they're not 10DLC numbers [(3) ]() . 3. Bring Your Own Twilio Number If you imported a number from your own Twilio account, you need to click "Setup SMS Function" in Advanced Add-Ons for that specific phone number [(1) ]() . Then provide your Twilio Account SID and Auth Token . Make sure your Twilio number already has SMS capabilities enabled and is compliant with SMS regulations before integration . 4. A2P Registration Status The number may not have completed the A2P registration process. You need an approved business profile, brand registration, and SMS campaign before SMS settings become available . 5. UI Bug Community reports indicate there may be a UI bug where the submit button doesn't appear clickable even when everything is verified [(4) ]() . The workaround is to click outside the box and then select the submit button . Check which type of number you're trying to enable SMS for and verify it meets the requirements above. If it's a US number that should have SMS capabili
ties, try the UI workaround or reach out to support with your organization ID.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy Yeah it's toll free, how do I set it up?
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer ### Answer For toll-free numbers, even though they're not 10DLC numbers, you still need to link them to an A2P campaign to enable SMS [(1) ]() . Here's the setup process: Step 1: Get Approved for a Business Profile You can reuse an existing business profile or create a new one [(2) ]() . Follow the instructions at the Business Profile section to get approved . Step 2: Select a Brand Type and Get Approved Only one brand can be created per business profile and it cannot be changed once created . You have two options: - **Low-volume**: $4 one-time fee, send fewer than 6,000 message segments per day to the US - **Standard**: $45 one-time fee, SMS limit may fall between 6,000 and 400,000 message segments per day Step 3: Get Approved for a SMS Campaign Fill out the use case and sample messages you intend to send . There are strict rules on SMS, and if your actual traffic doesn't match the sample messages, your number or telephony subaccount might be suspended . Important for Toll-Free Numbers: According to community reports, toll-free numbers need to be linked to a Twilio Messaging Service [(1) ]() . Go to: 1. Twilio Console → Messaging → Messaging Services 2. Create or select a Messaging Service 3. Add your verified toll-free number to the Sender Pool in the Senders tab Timeline: The application can take a couple of weeks as it's a manual review process on the telephony provider side [(2) ]() . You'll be notified via email when the application is approved or rejected . If you've already completed the business profile and brand registration for another number, you can reuse those approvals and just create a ne
w SMS campaign application .
​ To learn more, see the sources I considered: [[1] Phone number can send SMS](https://discord.com/channels/1186424376300679209/1387874084536193024) [[2] Enable SMS capabilities](https://docs.retellai.com/deploy/enable-sms) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy I have to set up a new campaign for each number? I had already set one up for a prior number...
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer ### Answer No, you do not need to set up a new campaign for each number [(1) ]() [(2) ](

▾

) . Once you have an approved business profile, brand registration, and SMS campaign, you can reuse them for additional phone numbers within the same workspace . Here's how it works for additional numbers: 1. Select the new phone number in your Retell dashboard [(1) ]() 2. Navigate to the SMS settings 3. Select your already-approved business profile [(1) ]() [(2) ](

▾

) 4. The brand registration will default to what you selected previously (you cannot change it) 5. Select your already-approved SMS campaign 6. Submit the application [(1) ]() Because your business profile, brand, and campaign are already approved, the process is much simpler than the initial setup [(2) ](

▾

) . You don't have to keep going through the approval process every single time you get a phone number as long as it's within the same workspace and within the same brand and campaign . When You Might Need a New Campaign: You only need to create multiple campaigns if you need to send different types of SMS messages [(1) ]() . For example, if your approved campaign is for appointment reminders but you want to start sending promotional messages, you would need to submit a new campaign application for that different use case . Important Note: If your business profile and brand are approved but a campaign is rejected, you can reuse the approved profile and brand while creating a new campaign application .
​ To learn more, see the sources I considered: [[1] Enable SMS capabilities](https://docs.retellai.com/deploy/enable-sms) [[2] A2P Setup ultra guide | Enable SMS for Your Retell Agent](

https://www.youtube.com/watch?v=jdCmCMkOdnI▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy It's not letting me re-use my other campaign. So something is wrong. If what you're saying is true I need to contact support.
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Enable SMS capabilities](https://docs.retellai.com/deploy/enable-sms) [[2] Business Profile Approval for SMS Campaign Submission](https://discord.com/channels/1186424376300679209/1397608648657604658) [[3] A2P Setup ultra guide | Enable SMS for Your Retell Agent](

https://www.youtube.com/watch?v=jdCmCMkOdnI▾

) ​
### Answer There are a few potential reasons why you might not be able to reuse your campaign: 1. Number Type Mismatch The most likely issue is that your toll-free number may require different setup than your previous regular US number [(1) ]() . Toll-free numbers need to be linked to a Twilio Messaging Service even though they still go through the A2P registration process [(2) ]() . 2. Different Telephony Provider If your toll-free number is set up with "Custom telephony" (like a Twilio SIP trunk) , it may have different SMS configuration requirements than a Retell-purchased number . For Bring Your Own Twilio numbers, you need to click "Setup SMS Function" in Advanced Add-Ons and provide your Twilio credentials (Account SID and Auth Token) [(1) ]() . 3. Workspace or Brand Limitations You can only reuse campaigns within the same workspace and with the same brand [(3) ](

▾

) . If there's any difference in these settings, you won't be able to select the existing campaign [(1) ]() . Next Steps: Since the documentation confirms you should be able to reuse an approved campaign for additional numbers within the same workspace [(1) ]() [(3) ](

▾

) , but you're experiencing issues, you should contact support with: - Your organization ID - The phone number that has working SMS - The toll-free number you're trying to enable - Screenshots of what you're seeing in the SMS settings Visit [Contact Sales]() or [)
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy No this isn't the tool free number, I have another one I'm trying to set up.
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer ### Answer If you're trying to set up SMS on a regular US number (not toll-free) and can't reuse your existing campaign, here are the troubleshooting steps: Verify Your Number Type SMS capabilities are currently limited to US numbers only [(1) ]() . Make sure the number you're trying to enable is a US-based number. Check for UI Issues Community reports indicate there may be a UI bug where the submit button doesn't appear clickable even when everything is verified [(2) ](

▾

) . The workaround is to click outside the box and then select the submit button. Confirm Number Source If this is a Bring Your Own Twilio number (not purchased through Retell) , you need to: 1. Click "Setup SMS Function" in Advanced Add-Ons for that phone number [(1) ]() 2. Provide your Twilio credentials (Account SID and Auth Token) 3. Make sure your Twilio number already has SMS capabilities enabled and is compliant with SMS regulations before integration Verify Workspace and Brand Match You can only reuse campaigns within the same workspace and with the same brand [(2) ](

▾

) . If there's any difference in these settings, you won't be able to select the existing campaign [(1) ]() . Contact Support Since the documentation confirms you should be able to reuse an approved campaign for additional numbers within the same workspace [(1) ]() [(2) ](

▾

) , but you're experiencing issues, you should contact support with: - Your organization ID - The phone number that has working SMS - The new number you're trying to enable - Screenshots of what you're seeing in the SMS sett
ings Visit [Contact Sales]() or [)
​ To learn more, see the sources I considered: [[1] Enable SMS capabilities](https://docs.retellai.com/deploy/enable-sms) [[2] A2P Setup ultra guide | Enable SMS for Your Retell Agent](

https://www.youtube.com/watch?v=jdCmCMkOdnI▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.