You can automate the sending of TXT messages with Process Builder.
TXTinIT comes standard with Apex Class Actions that can be used in Process Builder
This example will show you how to create an automation that sends an SMS to alert customers when their case has been closed.
Add texting to a Process Builder
Step 1: Go to Setup
-
Click the Gear Icon in the top right of the screen.
-
Click on Setup.
Step 2: Open Process Builder
-
Type "Process Builder" in the Setup Quick Find Box.
-
Create a New to begin building a new process
Step 3: Name your process and define the Trigger type
-
Give your process a name
-
Give your process a description
-
Choose when your process should start. In our example, we chose "When a record changes"
-
Click Save
Step 4: Choose Object and Specify When to Start the Process
-
Click "Add Object"
-
Select the Object, in our example, we want to trigger the process when a Case is closed, so we chose Case
-
Choose whether the process should run only when records are Created, or when a record is Created or Edited. We chose "When a record is created or edited".
-
Click Save
Step 5: Define Criteria for this Action Group
-
Click on the first node.
-
Select your criteria for executing actions. We chose "Conditions are met".
-
Set your conditions for when actions should execute.
-
Click Save
Here's how we defined or conditions
-
[Case].Status, Equals, Picklist, Closed
-
[Case].ContactId, is null, Boolean, False
-
[Case].ContactMobile, does not equal, Global Constant, $GlobalConstant.EmptyString
-
[Case].Status, is changed, Boolean, True
Step 6: Switch Back to Lightning Experience
-
Once you have completed your Bulk Send, click on Switch to Lightning Experience.
Step 4: Select and Define Action
-
Click "Add Action" in Immediate Actions Box
-
In Action Type, Select "Apex"
-
in the next field, start typing "Send SMS", then select the Send SMS Apex Class.
-
Set the Apex Variables.
-
Click Save
Here's how we set our variables
-
Target Record Id, Field Reference, [Case].Id
-
To Number, Field Reference, [Case].Contact.Mobile.Phone
-
SMS Message, Formula, "Hi " + [Case].Contact.FirstName + ", your case " + [Case].CaseNumber + " is now closed."
Step 5: Activate your Process
-
Click "Activate" in the top right corner