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
1
vote
2 answers

How may I receive FB messenger messages in Flex Agent Console

I'm trying to use Messenger channel in a Flex instance, however, I haven't been able to make it work. The closest I've got is using at the Facebook channel configuration the function url INBOUND MESSAGE as callback url, this way I receive the…
1
vote
1 answer

How to use Twilio function to repeat the message?

Here is my code exports.handler = function(context, event, callback) { let twiml = new Twilio.twiml.VoiceResponse(); twiml.gather({ numdigit:"1", tiemout:"5"}).say("some message , press 9 to repeat"); if(event.numdigit === 9) { …
1
vote
1 answer

how to send sms from within Twilio programmable voice function

I have a Twilio function which executes whenever someone calls a certain number. I'm trying to have the function send an sms. It's not working, but I'm not getting any error. Any help debugging would be great. exports.handler = function(context,…
1
vote
0 answers

Twilio video - Switching camera not working on android - NotReadableError: could not start a video source

I am using Twilio with twilio-video v beta-2 counting on the master branch of this repohttps://github.com/twilio/video-quickstart-js I got to display the select media and push the devices into it and the switch is working on ios safari browser, but…
Ashraf Hefny
  • 508
  • 1
  • 6
  • 20
1
vote
1 answer

Twilio Video - switch media devices option not working

I am using twilio with twilio-video v beta-2 counting on the master branch of this repohttps://github.com/twilio/video-quickstart-js I got to display the select media and push the devices into it but when I am trying to updateVideoDevice I got an…
Ashraf Hefny
  • 508
  • 1
  • 6
  • 20
1
vote
1 answer

Twilio Studio: Forward SMS conversation log to email

I'm using SMS studio do have a quick chat bot conversation with inbound SMS messages, and would like to forward the conversation log to email after it's complete. I've written a function that uses the SendGrid API to forward SMSes to email. It works…
Amira
  • 11
  • 1
1
vote
1 answer

How to set Flow variables with data returned from Function?

https://www.twilio.com/docs/studio/widget-library#run-function When you invoke a Function, you have two possible options for using variables: (1) you can pass Flow variables as parameters into a Function (e.g. flow.data.foo), and (2) you may set…
Fredrik L
  • 1,790
  • 4
  • 21
  • 28
1
vote
1 answer

Twilio Function - Whisper

I am attempting to modify the following code to perform a whisper and require the agent who answers to press 1. If they do not answer or do not press 1, the call will then go to voicemail. I need this to be in a function simply because I can't call…
1
vote
1 answer

Twilio: Create a SMS conversation between multiple people

We have a C# MVC app that sends and receives texts utilizing the Twilio API effortlessly. We have a button that sends a text to one or multiple people FROM a certain department (HR) / Twilio phone number. Our problem is- When a user responds to…
Ben O'Neill
  • 55
  • 1
  • 1
  • 7
1
vote
1 answer

Twilio - Play music during long process

Twilio newbie here. I have a Twilio voice application that collects a bunch of data (international topup sales) - and there is a point where the actual process of purchasing the topup takes place. This process can last anywhere from 10 to 30…
1
vote
1 answer

Twilio Studio Engagement Not Completing

I am having difficulty understanding why my Twilio Studio engagement gets "stuck" after my function's callback. exports.handler = function(context, event, callback) { let twiml = new Twilio.twiml.VoiceResponse(); twiml.say("Hello sir"); …
Donovan H
  • 13
  • 3
1
vote
1 answer

Twilio Message Segments

I am using Twilio services for one of my projects.I wanted to have suggestions of how I can optimize my message sending, i.e currently when I send a message it goes in 6 segments which cost me more.Is there any way through which I decrease the…
1
vote
1 answer

Receive SMS in .net core webapi uinsg Twilio

I am using following code to receive a text message send to Twilio virtual number in my .net core api. My web hook api code is like, namespace MyNameSpace.Controllers { [Route(Routing.CONTROLLER_PREFIX)] public class MfaController :…
blue
  • 833
  • 2
  • 12
  • 39
1
vote
1 answer

Get audio data from twilio using twilio functions

I need to extract the audio file from a gathered speech of an in-progress call in twilio instead of the text result of the speech which is accessible using event.SpeechResult() function. I had tried checking out the API and even logging the event…
kanwal019
  • 95
  • 11
1
vote
1 answer

Reply to twilio SMS

I am using a Twilio (Trial) account with number of Houston, TX to send SMS from my application. I am sending SMS to verified Indian number and that works perfectly. But when I am replying back to Twilio (already set webhook url as per…
Girish Vadhel
  • 735
  • 1
  • 5
  • 17