10.0: Send SMS notifications using Twilio and automations #17
jstanden
started this conversation in
Guides and Tutorials
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
Cerb can use services like Twilio to deliver SMS messages to workers and customers.
In this example we'll create a reusable automation function that allows us to send an SMS message from any event or interaction.
Create a connected account for Twilio
First, if you don't already have a Twilio-based connected account in Cerb, follow these instructions to create one:
https://cerb.ai/guides/integrations/twilio/
Make a note of your Twilio Account SID since you'll need it in the next step.
As well, you'll need to choose one of your verified caller ID numbers as the sender.
Import the package in Cerb
Navigate to Setup -> Packages -> Import:
Click the Import button.
Select your Twilio account and paste your Account SID and verified caller ID number:
Click the Import button again.
Testing the automation
Hold
SHIFT
and click on the bubble for wgm.example.twilio.sms to edit the automation.Enter an input in the lower left, like:
Change
15551234567
to your mobile number.Click the run button:
You should receive an SMS message to your mobile device.
Next steps
You can call this function from any automation to send an SMS message.
Make sure to add access to the function in your automation policy:
In automations with a worker dictionary, like interactions, you can use the placeholder
{{worker_mobile}}
to reference a worker's mobile number (if configured).Beta Was this translation helpful? Give feedback.
All reactions