Actually what I would like to implement is that whenever a subscriber replies JOIN to the short/long code he/she will be opted-in to all of the keywords under that code.
is that possible? What would be the best approach for this request?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityActually what I would like to implement is that whenever a subscriber replies JOIN to the short/long code he/she will be opted-in to all of the keywords under that code.
is that possible? What would be the best approach for this request?
There are 2 ways to Opt-In for a Keyword.
Opt-In Keyword via API:
You can use QueueMO API to add a contact to a particular keyword using ampscript by forming the below body.
POST https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com/sms/v1/queueMO
Content-Type: application/json
Authorization: Bearer YOUR_OAUTH_ACCESS_TOKEN
{
"mobileNumbers": [
"15555551212"
],
"shortCode": "Code",
"messageText": "KEYWORD"
}
Opt-In Via Import Contacts:
Go to Mobile Studio > Mobile Connect > Add contacts > Import contacts > upload all the contacts > select the Short/long code > Select the keywords > Map the fields.
Let me know if this helps.
I would be concerned about the legal aspect of this, as when someone JOINs a keyword, they are expecting a certain frequency of sms messages.
BUT, I would run an hourly automation that used a SQL activity to find all mobile connect contacts that joined that specific keyword/shortcode in the last hour. Using the resulting data extension, run the import definition as described by Elliot Harper in this post: https://salesforce.stackexchange.com/a/136819/54325