Professional service example code v1
Execute studio flow that makes outbound call to customer:
// Download the helper library from https://www.twilio.com/docs/node/install
// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = require('twilio')(accountSid, authToken);
client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.executions
.create({parameters: {
foo: 'bar'
}, to: '+15558675310', from: '+15017122661'})
.then(execution => console.log(execution.sid));