Questions tagged [twilio-node]
48 questions
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
cant play audio url with twilio play
i try to do a simple call phone from twilio that play a massage and hang up,
but no matter what url i put, when the call made i get a voice massage about function error
here is my code:
let twilio = require('twilio');
var accountSid =; // Your…

davidla
- 85
- 1
- 11
0
votes
1 answer
Interactive Message Templates for whatsApp not available in twilio
According to facebook dev
docs whatsApp provides 2 template.
call to action
Quick replies
After looking into twilio docs i did not find support for Interactive message Templates for nodejs.
Is interactive Message Templates for whatsApp not…

Satadhi Halder
- 29
- 5
0
votes
1 answer
Sending consecutive sms messages with Twilio the second message arrives before the first
I have an issue when trying to send 2 consecutive messages via nodejs teilio
My sendMessage function looks like this
client.messages.create({
body: msg,
to: toNumber,
from: keys.TWILIO_PHONE_NUMBER,
})
.then(async…

Shmili Breuer
- 3,927
- 2
- 17
- 26
0
votes
1 answer
Twilio: When conference created dial a client device into the call and make transfer to another phone
I'll explain what's the main idea... I have like a call center (made with node js and vue), my app has agents which will receive and make calls to contacts (outside people, clients), right now I can dial inbound and outbound calls. But I can't…

AlfredoDaAs
- 145
- 1
- 14
0
votes
1 answer
Sending 2 pics in Twilio API not working?...only single picture is coming across
I am working with Twilio and their node.JS library. I am trying to send a message that includes 2 pics, ...shouldn't be very hard. Here is my code where message, from and recipient are defined earlier in the code.
To keep the example simple, I hard…

mike hennessy
- 1,359
- 1
- 16
- 35
0
votes
1 answer
Twilio conferences: difference between ConferenceTrim and Trim
When I add participant to conference programmatically, I can see "ConferenceTrim" and "Trim" attributes in request at Twilio Console.
What is the purpose of them, and what is the difference.

Max Vinogradov
- 1,343
- 1
- 13
- 31
0
votes
1 answer
Twilio - sending sms doesn't call the statusCallback URL
Twilio free account.
This is how I send the message:
const args = {
from : TWILIO_PHONE_NUMBER,
to : '+15005550006', // magic test number
body : "test",
statusCallback:…

gazorpazorp
- 468
- 3
- 13
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
Initiating an outbound call using Twilio Function
twiml.dial(dialNode => {
dialNode.conference('Test conference', {
startConferenceOnEnter: true,
endConferenceOnExit: false,
from: context.CALLER_ID,
to: event.TO
})
I have tried this on Twilio…

martinii
- 141
- 10
0
votes
1 answer
How to persist data in twilio?
Maybe it's a bit of a novice question, but I need to persist a user's data, through a full conversation with the autopilot. There exists in twilio something like Dialogflow for save…

Pau Chena
- 11
- 2
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
Connect to Password Protected Zoom Calls with Twilio Voice
Earlier I used to connect to Zoom calls as follows:
this.twilioClient.calls.create({
record: true,
recordingStatusCallback: process.env.POST_RECORDING_WEBHOOK,
url: process.env.TWILIO_HELLO_TWIML,
recordingStatusCallbackEvent:…

vasu014
- 187
- 1
- 3
- 12
0
votes
1 answer
Twilio autopilot whatsapp initiate a conversation to a phone using nodeJS
I created a Autopilot bot in console of Twilio. I need to publish that bot to multiple phone numbers from an nodeJS endpoint.
My questions are :
How do i send the actions from an nodeJS app to initiate the conversation ?
Can i send the bot to…

Ram
- 451
- 10
- 18
0
votes
1 answer
what is the correct way to call a sub account's twilio number?
What is the correct way to call a sub account's twilio number? This is my current approach bellow.
async function placeCall(context, event, callback) {
var to = event.Called;
var from = event.From;
var toClient = "";
…

A_Rush
- 368
- 3
- 14