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

Can a Twilio Studio widget run a function created under another account?

I have a studio flow set up under a Subaccount. I have a function created under the main account. When I create a function widget in the subaccount studio flow, I don’t see the main account’s function listed. I’ve also tried using the http request…
0
votes
1 answer

Twilio function deployed with TypeScript cannot find module @twilio-labs/serverless-runtime-types

I'm trying to migrate a Twilio functions repo to use TypeScript. I completely rewritten one of the functions via TypeScript and successfully tested it locally. However, after I deployed the function, it started returning 500 with the following…
ege
  • 812
  • 6
  • 16
0
votes
0 answers

Change the friendlyName in conference instruction in assignment Callback

I am trying to build a flow wherein the caller is initially connected to an agent in the flex console (Conference) and then the agent can transfer the caller to another IVR (Which could be an external IVR ) without disconnecting himself from the…
0
votes
1 answer

Get Whatsapp Number of user in Twilio autopilot

I am trying to create a chatbot using Twilio Autopilot which integrated with WhatsApp. So my flow is like, if user messages on registerd number, Twilio WhatsApp senders webhook will get trigger and it will call Autopilot chatbot task. Task will…
0
votes
1 answer

How to call external API with parameters from the Twilio function

I am trying to write one Twilio function. Inside the Twilio function, I have one external API call with parameters for one of my API. API will return the result and that result I am passing using "Say" tag. I have one Twilio Autopilot Bot in which I…
0
votes
1 answer

Include multiple incoming SMS messages/responses with Twilio functions

I'm working on a project now within Twilio, using Twilio Functions, where I'm trying to set up SMS messaging so that if we receive an incoming keyword, we respond with a specific message, including a URL. The plan is to have multiple incoming…
cruzer
  • 1
  • 1
0
votes
0 answers

How to make a Post request multiple times asynchronously in a Twilio function

I am trying to achieve a functionality to send users(who are waiting in the queue after chat is initiated with a customer care) what number are they in the queue. I am calling an endpoint which gives me a number in the queue of the particular…
0
votes
1 answer

getting a value from a twilio webhook

I'm trying to get "my test message" from this webhook event data. I'm kinda new to this but below is what I've tried webhook received... {"interactionDateUpdated":"2021-12-18T18:08:34.222Z","interactionData":"{\"body\":\"my test…
jimk
  • 23
  • 5
0
votes
1 answer

Studio Flow -> Send Message -> Function (Email)

Looking for some help here. Not a coder by any means and trying to use built in functionality of Twilio to do 2 things. My goal is to respond to any SMS that is received on any of my numbers and then forward the received message to an email…
0
votes
1 answer

function for USAePay API in TWilio functions returns 504 code

I'm trying to make a post request in Twilio functions to process a charge with the USAePay gateway API but my code seems to be tripping somewhere. Any insight is appreciated. I think it may be the callback() function being in the wrong place. I also…
jack
  • 330
  • 3
  • 12
0
votes
2 answers

How to run a few API calls in a loop and then use callback function

I'm trying to write a function but can't seem to figure out how to run a loop of API calls on an array of strings, and only after all the API calls are completed to call the callback function. No matter what I try either the function fails or the…
jack
  • 330
  • 3
  • 12
0
votes
1 answer

Twilio Conference - Rejoin after hanguponstart

We have a Twilio conference setup in place, and the main user (moderator) is able to do some management of the conference from a conference menu. To access this, they press *. This is set when the conference is first created as follows (from within…
Nunners
  • 15
  • 5
0
votes
1 answer

Twilio Function to Accept Phone Number and Initiate AutoPilot From WebForm

I'm trying to create a web form where users can input their phone number to initiate an SMS conversation run through Twilio's AutoPilot. I'm getting hung up between tutorials on Webhooks and tutorials on fetch-node and could use some help. Goal is…
crossbeats
  • 65
  • 1
  • 14
0
votes
1 answer

Twilio Studio/Functions and Conference calls

I'm using the Studio flow to manage authenticating an end user calling into our number, and assuming they pass authentication, they then get added to a conference call - however so that I can set the various parameters for starting the conference…
0
votes
1 answer

Make an API request on call end in twilio

I am looking for a way to say 'Thank you' and also make an API call at the end of function execution in Twilio. Something like this: responseObject = { "actions": [ { "say": "Thank…
Himanshu Kumar
  • 89
  • 1
  • 10