Questions
Browse questions with relevant Twilio tags
1,112 questions
Has recommended answerIn Twilio studio, can I use the messaging service, incoming SMS and wait and reply all on the same number?
Twilio Evangelist here. Take into account that Studio has the same functionalities with or without a Messaging Service, If you have a 'Send & Wait for Reply' widget active, any incoming messages ...
Unable to receive messages on whatsapp from Twilio sandbox
In your scenario, the observed behavior is correct due to the WhatsApp 24-hour session policy. Since more than 24 hours have passed between your messages, a new session window must be initiated, which ...
How can I use webhook in Messaging Services during trial mode?
I'm afraid this is the correct behavior. To use a messaging service, you would need to add the sandbox number to the sender pool of the service. However, this is not possible as you don't own the ...
How to implement WhatsApp Flows with Twilio
As of now, Twilio is not yet supporting this feature. However, you can use this form to request access to the pilot once available :).
Use Twilio in Vue 3 to send message on Whatsapp
It's important to note that Twilio shouldn't be used directly in the frontend for security and architecture reasons. Exposing sensitive information such as your Twilio Account SID and Auth Token in ...
How to use SMS API of Australia region for sending SMS with an Australian Number?
I'm afraid your assumption is right. This service is, as of now, not available in the AU1 region. You can check this resource to check if this feature is available at a later point in time.
How to Set Up a Webhook for WhatsApp Template Status Updates?
I'm afraid this feature is, as of now, not available.
How do I play a custom message in a Twilio function and then return to the Studio Flow?
It seems like the behavior you're experiencing is the intended one. The function widget cannot return control back to the original Studio Flow execution once it has been invoked. It can only trigger a ...
Webhook error on Twilion when trying to communicate with OpenAI
It sounds like the issue might stem from the Node.js version mismatch. Twilio received a non-error response HTTP status 404, meaning the URL was not found. Your project specifies Node.js version 20, ...
Send Whatsapp message outside FreeForm hours
It seems you use the wrong parameters to send the message. You use the regular messaging API with the body parameter whereas you need to specific the contentSid and, if needed, contentVariables as ...
Twilio + webSockets - can't send parameters to webSocket
According to the docs, Twilio sends these values to your WebSocket server in the Start message. So you need to have a part in your code that follows this structure: wss.on('connection', async (ws) =&...
Develop and integrate whatsapp into my website
I'm afraid this is not possible due to restrictions by Meta/WhatsApp. The WhatsApp Business API only offers to build a custom interface from the "business-side" but not from side of the ...
Send Whatsapp Typing Indicator to Twilio Conversation using Python
I'm afraid this feature is, as of now, not available on the WhatsApp API. Therefore, Twilio can't offer such a feature either. You are probably referring to this doc but that one covers Twilio ...
How did Confirmafy manage to send Whatsapp templates without pre-approval process?
You mention the old "WhatsApp templates" here. Using them is quite strict and trivial-appearing whitespaces or encodings can turn a valid usage of a template invalid. So I'd suggest using ...
Interactive message using python
The MessagingResponse has no such functions that you described here. Hence, you get this error. What you can do instead, is using the Content Template API to create a template: curl -X POST 'https://...
Twilio: Maximum number of Queues per account
Voice tasks or calls are limited to 100 by default per queue. https://www.twilio.com/docs/taskrouter/twiml-queue-calls
How can I dynamically handle a call on Twilio in real time and with Python?
The easiest way would be to use the call sid and update the call's TwiML to instruct the redirect (aka <Dial>) to your personal number: call = client.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \...
Twilio Studio - Collecting call handling information
Unfortunately, collecting call duration, available agents, completed calls, and other detailed information directly through Twilio Studio is not supported. However, you can achieve this by utilizing ...
Where do I specify the Template message body in a Twilio flow?
To use Content Templates successfully, please ensure that a Messaging Service is configured in your Twilio Studio Flow as it is required for sending messages. This should help resolve the issue you ...
Twilio Studio - Retrieve Variable Issue
This issue might be caused by the variable name, specifically that it starts with a number. Try using "Child1Name" or "SecondChild1Name" and it should work. From the docs: Liquid ...
Trying to send SMS to USA
The problem you are describing is a regulatory one and less a programming-related one. So I try to keep this answer as brief as possible to avoid that it's outdated when regulations of any country ...
Is it possible to Validate programmatically if Twilio sender phone number belongs to active numbers not using preview api?
I'd also recommend fetching the incomingPhoneNumber resource. I just double-checked and it doesn't include number that are released. Or is there another reason why you don't want to use this API?
Receiving Twilio messages from a shortcode in a webhook instead of phone number
Summarizing the comments above as an answer: This is likely related to the messaging route used when sending messages between different country codes. You should try using numbers from the same ...
Can Twilio bidirectional stream feature works for Speech input in the call?
Yes, it's possible to stream audio files back to Twilio via the WebSockets connection: //Send Audio to Twilio when Generated Audio from Eleven Labs is Complete elevenLabs.on("AudioReceived&...
Trying to test Apps Script code that needs to send WhatsApp message with Twilio
Please note that you won't be able to use the WhatsApp Business API until you upgraded your account, purchased a phone number and enabled it for WhatsApp communication. However, our WhatsApp Sandbox ...
Twilio Studio - Issues with clearing variables
I think I see what's wrong. In "widget [set_variables_2]" you try to set the key {{widget.Inicio.Digits}}. However, you cannot set properties of other widgets. Instead you need to set the ...
Has anyone been successful in sending group messaging on Whatsapp using Twilio
Thank you for reaching out about your issue with sending group messages on WhatsApp via Twilio. It is important to clarify that the feature in question does not facilitate the creation of native ...
Playing twilio asset from http parameter
I assume you run into this problem because you didn't URL-encode the audio query parameter. The link above will explain the detailed rules but it basically failed because you had a (audio) URL as the ...
TwilioStudio - What is the best way to clear a variable in my flow?
From what you've described, it sounds like you're on the right track but facing a common challenge. Unfortunately, you can't directly clear properties of other widgets' variables in the Studio. ...
Twilio check received WhatsApp messages on behalf of user
Your idea for automating actions based on specific keywords received in WhatsApp messages sounds interesting. However, there are some significant limitations imposed by the way the WhatsApp API ...
Twilio Studio Flow run via command line
When you initiate a Twilio Studio Flow using the command twilio api:studio:v2:flows:executions:create, you're indeed creating a new execution via the REST API. This command starts the flow, but it ...
Twilio serverless update asset without redeploy
The solution you're looking for may not be possible in the exact way you've described. Once you deploy a Twilio function with a particular asset, the function will not perceive changes in the content ...
Twilio Functions - Validate CPF and CNPJ and format them according to standard
Since you set the function parameter to event in the Function widget, you can use that parameter name in the code as well. In your code above, you use a variable name that is only available within the ...
Twilio - WhatsApp error 63018 "Rate limit exceeded for Channel"
It sounds like you're running into a limitation of the WhatsApp Sender’s Throughput, which is not to be confused with the WhatsApp Messaging Limits. But I agree, the naming is confusing... Note: A ...
How to add context to chat-gpt twilio customer service bot?
You can add more context when you modify the completions.create call in /src/functions/prompt.protected: const completion = await openai.chat.completions.create({ model: 'gpt-3.5-turbo', ...
Why does Twilio Studio insert line breaks around variables in my text and json?
The additional line breaks you encountered might have been caused by an accidental addition of line breaks when you defined the Attempts variable. It is crucial to be aware of extra whitespaces or ...
How to stream audio of <Dial> to websocket?
Twilio Support Engineer here. In order for your WebSocket server to recieve both the inbound audio track as well as the outbound audio track (the child call), you need to specify the track attribute ...
Cann't send back data using websocket for Twilio call
Twilio Support Engineer here. It's possible to send data back if the stream is setup as a bi-directional media stream using the noun. For example: <?xml version="1.0" encoding="UTF-...
How to hide preheader text in sendgrid for all email application
I'd recommend using the following snippet from this blog post: <span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; ...
Migrating from whatsApp Template to Content Builder
I believe you may be facing difficulties due to misunderstandings about the Content API's capabilities. Notably, the Content API does not support a body parameter. This could be the cause for not ...
Wrong status callback event in Twilio Programmable Voice
Twilio Support Engineer here. Most likely what is happening is that the ringback tone coming from the callee side is being played after call answer. This is common when calling PBX systems or ...
Unable to send whatsapp templated message using Twilio
You are mixing two different approaches here. The first one you mentioned is using the Content Template Builder. In there, you can submit another template to Meta and from then on, reference the ...
Twilio function works for inbound calls but not outbound calls?
From the information you provided, it seems you are trying to invoke the same function in Twilio Studio for outbound calls that you are using for inbound calls. However, it's crucial to note that the ...
How is dependency resolution for "services/functions" supposed to work? My package.json is not being parsed
It's strange that you ran into this issue. I just tried to reproduce it (create a new Functions project -> deploy -> add dependencies with npm i -> redeploy) and it works all fine. Can you ...
How to validate an incoming webhook GET request from the Twilio API using Node.js
It should work the same way as for POST. Maybe your not parsing the parameters the right way. I'd recommend using the twilio.webhook() middleware as it avoids bugs and also makes the code easier to ...
Failed API Request 82007 unsupported runtime: node16
You can specify the used Node version in these places: To use Node 18 locally, you can edit the .nvmrc file. 16 This won't fix the issue but it will ensure you use the same version for deployment ...
Error sending message with Twilio and WhatsApp using template: "Failed to send freeform message..."
You are getting this error because your message doesn't exactly match the template string. This could be due to whitespaces or related to the image attachment you want to send. I'd recommend using the ...
Want to create a place where people can admin there clients thru whatsapp, like whaticket but with oficial api, am I in the right place with Twilio?
Your project sounds exciting and complex. However, I'm not sure the WhatsApp API can help you to solve that problem (if I understand it right). WhatsApp Business API is designed to allow medium and ...
Not able to call Response.Say during live streaming of call twilio websocket python
It seems you are trying to return a TwiML response to the incoming steam data. This won't work, as this is just the stream of the call. Instead, try to modify the original call that is in progress. // ...
Twilio call hangs up after hangs up after playing response
That is the intended behavior. If you want to keep the call "alive", you can add a <Pause> tag. The <Pause> verb waits silently for a specific number of seconds. <?xml version=...
Simply submit a proposal, get it approved, and publish it.
See how the process works