Flow Twilio component
The component sends sms using Twilio and is designed to work with Flow SDK
To get started, install the package in your NodeJS project
npm i flow-twilio-component --save
Use the component as below
// require the componentconst Component = ; // create instance of the componentconst component = ;
Provide twilio credentials, account sid and authentication token
componentdata = 'Your_Account_SID';componentdata = 'Your_Authentication_Token';
Provide sms fields
// provide from and to phone numberscomponentdata = '+18646574367';componentdata = '+17326950328'; // provide the message to sendcomponentdata = 'Hello there, this is a test message.';
Listen in for port emit events
component; component;
Execute the component
// add the component to a graph before executing itconst Graph = Graph;"graph-1"; component;
Conclusion
If you are having trouble sending messages, check that you are using the correct Twilio credentials and the right sender number.