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

Twilio Functions - Pass in parameters and format SMS body to include parameters

I am using Twilio to create an 'attendance line' where employees can provide information about why they will be absent and then Twilio will send separate, curated messages to supervisors and human resources. To do this, I've created a Flow in Twilio…
coffdrop
  • 3
  • 2
0
votes
2 answers

Is there a way to set a flow variable from within a Twilio Function

I know it's possible to use the return value of a Twilio function, such as widgets.MY_FUCTION_WIDGET_NAME.parsed.xxxxx, but what I really need to do is to set a flow variable from within the function. Is it possible to do this, maybe using the…
0
votes
2 answers

Twilio Studio - Send and Wait for Reply - Multiple

I am trying to define a period of time (lets say 10 minutes, that stores all responses after a certain widget), and then save all those replies into one variable. Is this possible to do with twilio studio? Example: BOT: [sends message] //start…
Shamaas H.
  • 11
  • 1
0
votes
1 answer

How to fix "Invalid Autopilot Actions JSON: Invalid Autopilot Action"

I am trying to work with Twilio autopilot which trigger the twilio function after gathering some words, I need program to play digits or 'DTMF tone' I have written code in javascript in Twilio Function as exports.handler = function(context, event,…
0
votes
1 answer

Twilio Studio & Functions - Call Whispers

I'm trying to implement a simple call whisper that lets our agent know which phone number/product has been dialed. When a call comes in, it goes through a studio flow where the caller chooses a language. The call is then routed to a taskrouter…
0
votes
0 answers

How do I send an incoming message to flex and also call a function? Connect 2 actions to 1 trigger

Trying to connect 2 actions from 1 trigger in the message flow. I want to connect a function that will run after an incoming message arrives and also send this message to flex from their pre-made widget. I am using twilio message flow widgets and…
0
votes
1 answer

How to structure JSON Action Schema

I wanted an Autopilot bot to send its memory data to a webhook file of mine (which is in PHP) and in return (as a callback) just print a message saying "Received". But every time, I get an error saying "It does not match with Action Schema." So I…
0
votes
0 answers

Whats App chatbot with twilio function to login into 3rd party web application

Need guidance to develop whatsApp chatbot to login into a 3rd party application using twilio functions. Whenever a user sends whatsApp message to twilio number I want to login into 3rd party web application and query necessary data and respond back…
0
votes
0 answers

Forward VoiceMail to Email

I Need to forward voicemails to Salesforce (email-to-Case) from Twilio. Currently using Studio and Twiml to execute my work flow. There is a blog post the demonstrates how this could be done but it does not seem to work as…
Jpe
  • 1
0
votes
1 answer

How to send emails in Twilio Functions without SendGrid?

I know we can use SendGrid and there are examples provided but SendGrid is awful and everything goes to spam with the non-dedicated IP accounts (yes, even after enabling DKIM and all that other stuff). All the free IPs are blacklisted and SendGrid…
Jake
  • 3,865
  • 5
  • 25
  • 58
0
votes
2 answers

Twilio Voice - how to change incoming call tone with Twilio Functions

I have an Australian Twilio number but when people call, they hear a very different sounding ring tone to what you normally hear when calling Australian phones. How do I change this in this section of Functions: const dial = twiml.dial( { …
Jake
  • 3,865
  • 5
  • 25
  • 58
0
votes
0 answers

Outbound Call using C# Create but call goes without ring tone and disconnected

I use CallResource.Create(); But it makes a call without ring back tone and disconnected and I need pure C# code to make outbound call form browser due to browser compatibility of twilio.js and I'm confusing regarding https URI what to specify there…
0
votes
2 answers

Dialpad plugin-in for Twilio Flex displays an error

I'm trying to use this dialpad plugin for Twilio Flex to make phone calls. I'm newbie on this so maybe I'm forgetting something to do in the process. I will detail the steps I made: git clone https://github.com/lehel-twilio/plugin-dialpad.git npm…
NekoLopez
  • 579
  • 1
  • 9
  • 28
0
votes
1 answer

Twilio Function - Sync Data Mutation

How would I modify the following to fail with concurrent writes (Using If-Match and ETag headers) ? let sync = Runtime.getSync(); exports.handler = function(context, event, callback) { let map = sync.syncMaps("MyMap"); …
r.t.s.
  • 585
  • 1
  • 4
  • 12
0
votes
1 answer

Number Masking Using Two Twilio numbers Inbetween two parties

We have explored proxy already but determined it would be too costly for how we ant to use it. We have seen another piece of software do what we want but we are getting stuck. Step 1: Company AAA Twilio # ===> Lead A Step 2: Lead A Reply ===>…