Hi is it possible to send text messages through Planet Press workflow?
If you mean sending SMS messages, then you need to subscribe to a SMS provider like Twilio or Plivo. Those services offer REST APIs that can be called within a script in Workflow.
We have a demo named Proof Of Delivery that showcases that feature on OL Learn.
Hi Phil, thats great thanks for the message.
Hi Alex,
I used the HTTP Client Input plugin years ago to send text messages via Workflow using Clickatell API. It was a single string that you could append your message to.
Regards,
S
Hi Sharne, ahhh right ok fab thanks for the message.
Is it possible to download the workflow config for the POD demo that has the SMS scripts?
It wouldn’t do you much good: you need a Plivo account (or you could do it with Twillio or any other SMS provider out there). Sending an SMS is simply done through a script that uses their REST API.
To give you an idea, here’s the JS code that sends a SMS using the Plivo API:
function send(authId, authToken, fromNumber, toNumber, message) {
var result = '';
var sendSmsUrl = "https://api.plivo.com/v1/Account/" + authId + "/Message/"
// Strip everything that's not a digit from phone number
toNumber = toNumber.replace(/[^0-9]/g,'');
var sms = {src: fromNumber, dst: toNumber, text: message};
xhr.open("POST", sendSmsUrl, false, authId, authToken);
xhr.setRequestHeader("Content-type", "application/json");
xhr.send(JSON.stringify(sms));
result = xhr.responseText;
return result;
}
Hi Phil,
I assume MMS can be done too right? With locally stored images for the media message?
Regards,
S
Yes, depending on the provider and the type of service you subscribe to.
Thank you.
Regards,
S