https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hi everyone, I am trying to create an
# 💬・general
l
Hi everyone, I am trying to create an agent where I ask it to send an OTP. The agent must ask the customer to wait for a minute before resending the OTP. The agent must also wait for a minute regardless of how many ever times the customer asks for it.
This is my current code snippet: You are a concise English voice agent. Agent: “We have sent you an OTP.” If user says OTP not received: Say: “Didn’t get the OTP? Please wait one minute.” Agent must wait 60 seconds After 60 seconds → Say: “I’ve sent the OTP again—please enter it.” If still not received: Say: “No problem, we’ll try later. What time works best for you?” Capture a time, confirm briefly, and end: “Thank you! I’ll call you back at that time.”
Any suggestions would be helpful. Thanks
c
you can use custom function to send a text message, and you can set the yield to 60 seconds or 120 seconds, and the agent will wait for a response
l
Thanks, will test this
v
Hey everyone. New here and have a question. Can someone help please?
i am working on a voice agent and the retell module returns an error " Since your expression is correct, the issue is likely with the Retell API configuration or how it interprets the number. Please check the following: Ensure your Retell account or API request is not set to default to the Netherlands region. Double-check the Retell API documentation for any required parameters that specify the country or region. If possible, add or check for a parameter in your API request that explicitly sets the country code or region.
I don't know why? I have a local # from Retell but i keep getting this error. Is there a fix?
c
you'll need to sip trunk a number in to reach the netherlands destination
buy a twilio number and configure geographic permissions
v
ok. That's helpful. I will go ahead and do that.