Twilio Functions provides a serverless environment for you to build and run your code, easily interacting with other Twilio APIs and getting to production faster.
Questions tagged [twilio-functions]
197 questions
3
votes
1 answer
How to confirm whether the delivered message is viewed or not in twilio?
In my application, there is two factor authentication. For that we are using Twilio services. Is there any way to confirm whether the message sent was read or not (i.e. The user has opened the message). Please suggest a method.
Thanks in advance...
3
votes
1 answer
Twilio Functions - posting to third party api?
So, I am not very familiar with this so I am a little confused. I'm trying to use Twilio Functions to create a function that posts an incoming sms message to a third-party API. In general, how would I go about that?
This is what i have right…
user2133623
2
votes
1 answer
How to use googleapis google.auth.GoogleAuth() for google API service account in Twilio serverless function?
How to use googleapis google.auth.GoogleAuth() for google API service account in Twilio serverless function, since there is no FS path to provide as a keyFile value?
Based on the example here (…

lampShadesDrifter
- 3,925
- 8
- 40
- 102
2
votes
1 answer
How to call a Function from a Function in Twilio Serverless?
I'm trying to see about using Twilio Serverless to replace my IVR. I would like to have some centralized functions to use within the functions.
For example, My main may be something like /MainMenu, which will have all the Twml.
but it will also…

Santy
- 111
- 1
- 1
- 2
2
votes
1 answer
How to forward call to different number if first connect call to number is busy or not responding in Twilio Studio
In Twilio Studio, I have a flow which connects call to non-twilio number in the end.
This number can be busy as I am forwarding all incoming requests to this number.
If this currently forwarded number is busy or operator does not respond then I want…

Hardik
- 115
- 1
- 8
2
votes
1 answer
Twilio function event parameter does not contain value. Example: Event.name object is undefined
I'm facing an issue where when my twilio funciton is called, when i pass in two function parameters as shown below, they cannot be accessed from within the twilio function. The error says that event.name is undefined. but im passing a parameter…

aeron
- 63
- 8
2
votes
1 answer
Twilio forward incoming calls based on the incoming phone number
I recently ported my home landline number to Twilio. For now, I created a very basic call forwarding TwiML Bin to forward any incoming calls to this former landline number to my cell phone:
mycellnumber
What I'd…

jotis
- 23
- 3
2
votes
1 answer
How do I obtain available worker count in twilio function calling node library?
Im looking to invoke a twilio function and obtain a count of available workers.
I have a feeling it might be related to TaskQueues and the Matching Workers who are available?
Ive come up with the following. However, users are still listed as…

Judy007
- 5,484
- 4
- 46
- 68
2
votes
0 answers
sending flow.variables to twilio function
In Twilio Studio I'm setting a number of variables. I then need to send them to a function. I'm using {{flow.variables}} as a parameter to the function. The result I'm getting in the function is
{
All_VARS: '{childcare=yes, camp=yes}'
}
Why is…

anthony hall
- 73
- 5
2
votes
1 answer
Using TwilioClient to execute Studio Flow from a Runtime Function
I have created a Twilio Studio Flow to make an outbound call that is triggered via REST API. I'd like to trigger this from a Twilio Runtime Function, but am having encountering errors when using the TwilioClient library.
Triggering the Studio Flow…

Mr Citizen
- 37
- 1
- 5
2
votes
1 answer
how do i declare a custom function in twilio function runtime environment?
I have a function and a few helper functions that are supposed to access Slack message history and return the first message that matches a certain number string.
I have tested the code extensively on my computer's Node.js environment to verify it…

Kevin Huang
- 21
- 2
2
votes
3 answers
How to pass procesing a call from Twilio functions back to Twilio Studio flow?
I am trying to migrate some parts of my studio flow to Twilio Functions, but not the whole, but it seems like that when I try to redirect back to the studio flow, Twilio dies with error 400 or hangs up the call.
I am experimenting with the following…

lezsakdomi
- 115
- 10
2
votes
2 answers
How to store data persistently in Twilio functions?
I'm trying to record in-call audio tehn process it and say the results back to the caller solely using Twilio.
For the TwiML element I can provide a separate callback URL after recording complete (action parameter, thus the call handling…

lezsakdomi
- 115
- 10
2
votes
1 answer
Twilio Functions: Add Parameters In Function Call
I am new to Twilio's API, and for that matter, Twilio as a whole.
I'm using python to make an automated system in which, when an event happens, a call is placed to a particular number. Below is what I'm running (in Python):
from twilio.rest import…

JCoder96
- 178
- 13
2
votes
1 answer
Programatically created tasks attributes not displayed in Twilio Flex
I am experimenting with Twilio Flex. What we are trying to build is chat(bot) application integrating two or three participants (user + cc human agent + chabot versus user + cc human agent).
I am able to join Twilio chat channel (both from web…

Adam Bezecny
- 195
- 1
- 11