Questions tagged [twilio-functions]

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.

197 questions
0
votes
1 answer

Pass query parameter while making POST request from twilio webhook

When the call ends, I want to send data to Microsoft teams. For that purpose, I am making a POST request using the Twilio webhook. I have added the link for HTTP request in CALL STATUS CHANGES. But I also want to send data collected during calls. Is…
Himanshu Kumar
  • 89
  • 1
  • 10
0
votes
1 answer

Twilio.PHONE_NUMBER does not validate correctly

Twilio.PHONE_NUMBER is accepting input such as '62047' which is obviously not a valid phone number. I tried writing my own custom validation function but I am unable to count number of times this function is triggered, hence running into an infinite…
Himanshu Kumar
  • 89
  • 1
  • 10
0
votes
1 answer

Memory object in twilio

I need to maintain a common variable among 2 functions in Twilio. But it's not working as expected. I tried to use variable inside memory like this:- let memory = JSON.parse(event.Memory); if(memory.twilio.counter === null) { …
Himanshu Kumar
  • 89
  • 1
  • 10
0
votes
0 answers

Twilio Autopilot with Whatsapp wrong message order

I am using Twilio Autopilot + Functions to build a chat bot. If I use Whatsapp i have an issue with the order of my messages if I send a URL. I assume this is because Whatsapp is processing the URL, which takes more time than the next message. I…
0
votes
1 answer

How to get the value of Gather input widget in Twilio function "let val = event.widgets.Mortgage_info.Digits.value;"?

I can't get the value of my gather input widget in Twilio function, I always get an error This is the name of the gather input widget in Twilio studio This variable is not working. let val =…
nomar09
  • 59
  • 8
0
votes
1 answer

Is it possible, in Twilio Studio, to track and sync data from a gather input widget to a database file such as google spreadsheet or JSON?

The project looks like this. When someone calls my Twilio number, The IVR will ask for Mortgage id number using the Gather Input widget. Once the caller input their Mortgage id number. The IVR will read back the following information that is…
0
votes
1 answer

How do I get a Twilio function to continue a call and return gather information

I have a studio flow that I am attempting to handle multiple different languages. I have a widget that starts the call and then passes it over to my function. However, after making the call and moving to the function, the call instantly ends. Am I…
Nemean
  • 21
  • 2
0
votes
1 answer

Twilio Function Retrieving Voicemails TypeError: Parameter `auth` is deprecated. Use `username` / `password` instead

I am attempting to use the Example from Get Recording and I get the error message: "TypeError: Parameter auth is deprecated. Use username / password instead." How do I change the following code to make this work. Here is my Code: const got =…
ScottH
  • 41
  • 4
0
votes
1 answer

Immediately calling a number after creating a conference

I am handling outgoing calls using Twilio Functions. I am creating a conference every outgoing call but I want to immediately call the number after creating the conference. if(event.To) { const dial = twiml.dial() dial.conference('My Room', { …
martinii
  • 141
  • 10
0
votes
1 answer

Need help creating a Time Gate in Twilio Function

I'm new to Twilio Studio, Functions, and by extension node.js . I'm trying to create a function that will evaluate the current day and time. If that time is outside the window i want to return false, otherwise true. This is what i have so far: …
Mike Murphy
  • 1,287
  • 1
  • 12
  • 23
0
votes
0 answers

How to retrieve variable in twilio function with Action remember?

I am creating a chat bot with Twilio Autopilot, and I am trying to retrieve a variable that I save in a function from another function with Action Remember. This is my first function: exports.handler = function(context, event, callback) { …
Pau Chena
  • 11
  • 2
0
votes
1 answer

Q: Twilio Day of week decision

On Twilio I have a very simple solution to play an audio file to an incoming call. I want to configure such that it will play a different Mp3 dependant on the day of week. e.g. Mon-Friday = first mp3 file Sat-Sun = second mp3 file Currently I have…
0
votes
2 answers

getting callback function error in twilio functions

My debugger keeps on sending me a callback error (see img link below) for this function. I also would like to continue from my function back to studio, the studio docs say I need "A successful return (HTTP 20X)" what am I missing …
jack
  • 330
  • 3
  • 12
0
votes
0 answers

Twilio Outbound Voice Decisioning

I am trying to have twilio make an outbound call to my bank and enter my information to authenticate. Unfortunately my bank's IVR menu is not static but rather a limited number of paths that can be taken. Is there a way to use the Record TwiMl verb…
0
votes
1 answer

Twilio tell the queued callers which number in a queue are they in,

Am trying to notify the queued callers about their position in the queue, here is my current twilio function which enqueues calls let twiml = new Twilio.twiml.VoiceResponse(); twiml.say("Please hold, while we connect you to one of our…
tp45
  • 123
  • 4
  • 13