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
1 answer

Forwarding to multiple destinations with Twilio functions

I am new to twilio. I am trying to setup a phone number that rings multiple destinations. I followed this blog and set up a twiML script like so. +1-777-777-7777
charsi
  • 2,917
  • 22
  • 40
1
vote
2 answers

Is there any way to get messages we send/received by using phone number in twilio?

I would like to make my client to check whether end client is received text or not and what reply he/she has sent? I always going through twilio to see whether client received sms or not? Is there any way to check it from twilio?
Rajeev Uppala
  • 205
  • 1
  • 3
  • 13
1
vote
1 answer

Twillio SMS forwarding Slack bot with webhook

I have enabled incoming web hooks on Slack API incoming web-hooks. Webhook URLs for Your Workspace: INSTRUCTIONS: To dispatch messages with your webhook URL, send your message in JSON as the body of an application/json POST request. Add this…
user8022517
1
vote
0 answers

Twilio Web Client Multi Line Call

I have a Twilio softphone that I am implementing and the basics functions are working great. Please I would need to know how to implement a multi line call feature. I would like to allow a agent in my browser softphone to put a call on hold and dial…
BoCyrill
  • 1,219
  • 16
  • 17
1
vote
0 answers

Direct to different WebServers using SMS

I'm starting to integrate Twilio into our service. Is it possible to take an incoming SMS and routed between 2 (possibly more) HTTP URLs based on data from the SMS (From, Message, etc)? I see this happening with Functions, but I couldn't find an…
C.Islas
  • 59
  • 7
1
vote
1 answer

Twilio Functions : Trying to send incoming sms alert to handle STOP requests

I am trying to send an alert SMS to an administrator phone number as well as replying to the original SMS with a local language version of the STOP response (we have turned off auto responses for this number). The code below works for sending the…
0
votes
0 answers

I get an "Cannot read properties of undefined (reading 'phoneNumbers')" when executing a Function in Twilio

I am trying to run the most basic Function using Twilio's Serverless hosted services. I built this code in the Twilio 'Console -> Functions and Assets' using a sample from their docs (which I pretty much copied verbatim from here): …
0
votes
1 answer

How to get receiver phone number in Twilio Function

I have created a function in Twilio to handle incoming messages and send them to DialogFlow. However I do not see any way to get the phone number of the Twilio (receiver phone number). Is there any way to do it? It is not an option to hardcode it in…
Artiom
  • 7,694
  • 3
  • 38
  • 45
0
votes
1 answer

Twilio outbound call function return error 500 `Url parameter missing`

Here is my Twilio function: exports.handler = function(context, event, callback) { const twilioClient = context.getTwilioClient(); const to = event.to; const from = event.from; twilioClient.calls .create({ twiml:…
jack
  • 330
  • 3
  • 12
0
votes
1 answer

Twilio functions messages history query

I'm using Twilio Functions to look up a previous messages that was sent to from the incoming SMS. exports.handler = function(context, event, callback) { const fromNumber = event.From; const client = context.getTwilioClient(); …
KarmoP
  • 3
  • 2
0
votes
1 answer

Block Call List Function that can be used for multiple flows

I'm trying to create a blocked call list function, then use this function with multiple twilio flows for all of my numbers. I'm using this…
0
votes
3 answers

Business hours Twilio Funtion

I want to create business hours for everyday of the week, rather than Monday through Friday and Saturday and Sunday. I'm using Twilio functions and Twilio Studio, however everything I've found online is not working. Currently I'm using the example…
Yarseo
  • 47
  • 5
0
votes
1 answer

Twilio Whatsapp: Send Location not working

I'm using the FUNCTION Widget in Twilio Studio. I need to send location inside a message in whatsapp. I've tried this peice of code inside a function in Twilio: // This is your new function. To start, set the name and path on the…
0
votes
2 answers

Forward Twilio MMS Messages Using Twilio Resources

I am trying to use Twilio to forward SMS and MMS messages to multiple phone numbers using Twilio recourses. I followed the online documentations and got SMS forwarding up easily. But I did not find any documentation on forwarding MMS…
MSieg
  • 1
0
votes
1 answer

Serve audio file using Twilio serverless SDK

I'm trying to develop a Twilio function using the serverless SDK that can serve audio files directly to HTTP requests, following the guide here which I've got working fine using the service editor in the Twilio console. However I'm now trying to use…
dh182
  • 1