In most cases, workflows are triggered by outbound activity e.g. sending a message or receiving a reply. However, you can also trigger a workflow from an unsolicited inbound message.
Unsolicited inbound SMS message
You may receive unsolicited inbound messages in certain scenarios e.g. you're running a competition and inviting people to text a keyword to a shared number. You don't know who will respond, but you want to automatically reply to every inbound message with an acknowledgment.
When someone texts your number for the first time:
- A new contact is automatically created using their mobile number
- The email address field is populated with a placeholder Email to SMS address e.g. 0400000000@sinch.com)
- The contact timeline will show the inbound SMS event that triggered the contact creation
With this in place, you can now build a workflow to respond to these contacts.
Unsolicited message workflow
To create a workflow that automatically replies when an unsolicited inbound message is received:
- From the workflow builder, open the Trigger workflow section.
- Click on Met filter criteria , or When filter criteria is met if it's an existing workflow.
- In the Eligible records segment, select Contact.
- In the Add criteria segment, scroll down to Integration filters and click Sinch SMS & MMS.
- In the search bar, search 'unsolicited' to filter for received message triggers.
-
From the list, select Sinch SMS & MMS: Unsolicited Inbound properties.
- From the Sinch SMS & MMS: Unsolicited Inbound properties, select Occurred.
-
Set the date parameter to is before and select today's date. Choose the appropriate timezone setting.
- Once the filters have been set, click Next to proceed to the Settings segment.
- Click Save and continue to confirm the trigger settings.
- To send an acknowledgment message, click the + icon to add an action.
- Scroll down and click on Sinch SMS & MMS from the Integrated Apps section to open the drop-down.
- From here, select Send SMS / MMS.
- Configure the SMS / MMS action.
- Phone Number: Select from the available contact records in the data variable section e.g. Phone Number.
- Account: Your Sinch MessageMedia account.
- Sender ID Name: The options here will reflect the Sender IDs you have available to you on your Sinch MessageMedia account e.g. Dedicated numbers, registered alphanumeric sender IDs (formerly alpha tags). The Account Default is the default Sender ID you have set up on your account in the Sinch MessageMedia platform. If you're using the Account Default setting, any changes you make to your default sender ID in the Sinch MessageMedia platform will be applied to this workflow.
- Workflow ID: Your workflow reply ID. This will ensure that replies to this message will only trigger actions in a specific workflow.
- Text Message: Compose your message. You can include any relevant personalization by choosing from the data variable list e.g. First Name.
- Image URL: To send an MMS, paste the image URL here. Please review the MMS requirements before setting this up.
- Country Code: If you're sending messages overseas, enter the country code here, otherwise leave it blank to default to your local country.
-
Owner: Select the owner of this action - this selects the email address to which notifications relating to this action will be sent.
- Click Save.
- When you're ready, click Review and Publish.
- Select Yes, enroll contacts who meet the enrollment criteria immediately when the workflow is turned on before turning on the workflow.
- Select No, only enroll contacts who met the trigger criteria after turning the workflow on if you want to send a bulk message to anyone who meets the enrollment criteria after turning the workflow on.
- Turn on the workflow to activate it.