Create or update Salesforce Case from SMS via Twilio
DeveloperAPICRMMarketingSalesITTelephonyUtilities
What it does
When someone sends an SMS message, this automation receives it via Twilio through an HTTP webhook. It upserts the contact in Salesforce, searches for related cases, and creates or updates a case based on message content and case status.
Who it's for
Customer support teams who manage cases through SMS and need real-time Salesforce updates without manual entry.
Apps used
- HTTP
- Salesforce
- Twilio
- Workato List
How teams use this
Route inbound SMS to support cases
Incoming SMS messages automatically create Salesforce cases tied to the sender's contact record, eliminating manual case creation and ensuring no customer message is missed.
Update cases when customers reply
When a customer replies to an existing case via SMS, the automation finds the related case and updates it with the new message instead of creating a duplicate.
Create tasks for delayed responses
Add a task creation step when a case has been awaiting response for a set number of hours, ensuring support teams follow up on stalled conversations.
Log SMS in case feed
Include the SMS message and sender details in the Salesforce case feed so the full conversation history is visible to all team members working the case.
How it works
- Receive SMS via Twilio HTTP webhook. An incoming SMS message is received in real-time through the Twilio HTTP webhook, capturing the sender's phone number, message content, and timestamp for processing.
- Upsert the contact record. The sender's phone number is matched against Salesforce contacts. If found, the contact is updated; if not, a new contact is created with the phone number and message details.
- Search for related cases. Salesforce is searched for existing cases linked to that contact. The results determine whether a new case is created or an existing one is updated based on case status.
- Create or update the case. If no case exists or the existing case status matches specific conditions, a new case is created or the existing case is updated with the SMS message content and linked to the contact.
- Send SMS confirmation. An SMS reply is sent back to the sender via Twilio confirming that their message was received and a case was created or updated in Salesforce.