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
1
vote
1 answer
Twilio Autopilot - trying to collect multiple options to answer
im trying to implement a selector for twilio using the Autopilot and Functions.
I'm trying to achieve a text that asks "which one" -
Hello, which one do you like better? 1. Apple, 2. Grape..
i tried everything using the collect.
"collect": {
…

Ishai A.
- 103
- 1
- 6
1
vote
1 answer
Twilio function metrics
According to the docs:
Functions are limited to 30 concurrent invocations - meaning that if
you have more than 30 Functions being invoked at the same time, you
will begin to see new Function invocations return with a 429 status
code. To keep below…

Stratus3D
- 4,648
- 4
- 35
- 67
1
vote
1 answer
Get access to headers and raw request body in Twilio serverless function
I have a Twilio serverless function that handles request from another system that provides authentication via JWT. In order to decode the request encoded with JWT I need to get the raw request body. According to the Twilio Functions docs…

Stratus3D
- 4,648
- 4
- 35
- 67
1
vote
1 answer
Share JavaScript code between Twilio functions
I have a Twilio serverless app that contains several functions. Several of the functions have code that is similar that I have extracted out into a separate file that can be used by the loaded and used by the functions.
This works if I run things…

Stratus3D
- 4,648
- 4
- 35
- 67
1
vote
1 answer
Forwarding an incoming call after task reservation timeout
I am using Twilio Flex to support a call center. I have a TaskRouter workflow set up where Task Reservation Timeout is set to 120 seconds. In its filter, I've created two routing steps. The first one finds matching workers in the main queue and has…

Hamza
- 13
- 1
- 3
1
vote
1 answer
What is the purpose of the .twilio-functions file in the Twilio Functions?
I used twilio serverless:init to generate a Twilio service locally and then later deployed it to Twilio. At some point I noticed a file named .twilio-functions present in the root of the project. It's contents looked like this:
{
"projects":…

Stratus3D
- 4,648
- 4
- 35
- 67
1
vote
2 answers
Twilio function to call external API - invalid Content-Type error code 12300
I have a twilio phone # that receives an SMS, which calls a Twilio protected function, which calls an external (Hologram.io) API. The call to the Twilio function succeeds, the call to Hologram.io succeeds, everything is working, but I always get…

jwallis
- 75
- 1
- 9
1
vote
2 answers
TwiML Redirect URL
Sorry in advance for my simple question. I am new in Twilio world and am trying to learn Twilio in more depth.
I am working with Twilio Studio. I created a function and used Run Function widget in my flow. Since I want to return back from function…

Lili
- 23
- 1
- 8
1
vote
1 answer
Check Twilio autopilot user input against multiple Twilio Types and custom Field Types after collect
I hope you are well and healthy. I am trying to check the user input in a Twilio function for a specific "collect" from autopilot against multiple Field Types which some are custom.
For instance, I ask the user for their name first and then their…

s.khetcho
- 113
- 7
1
vote
1 answer
Initiating an outbound conference call using Twilio Functions
I do not see any documentation in creating a conference call in twilio functions

martinii
- 141
- 10
1
vote
1 answer
Twilio Function - Variable values
I am trying to understand how the variable values can be referenced from event.Memory in Autopilot. Here is a simple test to explain what I am trying to achieve..
From the Bot model --> using remember action to store value
"remember": {
…

kiran
- 23
- 3
1
vote
1 answer
Serverless Phone Verification with Twilio Verify and Twilio Functions
I am trying to implement the project from https://www.twilio.com/blog/serverless-phone-verification to verify phone number using SMS TOTP.
When I created new function the url given by Twilio Functions is…

N G
- 53
- 4
1
vote
1 answer
How to add in a listen or timeout function in autopilot?
I have a syntax issue I believe in getting my autopilot response to work. My program works but after the autopilot asks the question, it does not give much time for the user to say the response before stopping/hanging up the call.
Is there a way to…

clearuser
- 11
- 1
1
vote
0 answers
I am having issues with Twilio Sync and ReactJS and page is not updating while I send SMS
I am setting app a chatbot with Twilio and ReactJS, barista order bot, I am not able to display my messages real time on browser. I create a React app so I can display every time I send a SMS then it will also display on browser.
I went to Twilio…

Claudia Bringas
- 35
- 6
1
vote
1 answer
Twilio Function to divert unanswered calls or calls received outside office hours to voicemail, otherwise dial sip
I already had this function in my Twilio Functions section, although I'm not sure if I copy-pasted this from somewhere a while ago or if it came by default:
var moment = require('moment-timezone')
exports.handler = function(context, event,…

Jake
- 3,865
- 5
- 25
- 58