- name: Shopify Abandoned Cart with Double Opt-In
config:
type: .configuration.trigger.ShopifyAbandonedCheckout
transitionTo: Conditional Split
accepted: false
- name: Conditional Split
config:
type: .configuration.condition.If
transitions:
- name: Match
condition:
op: contains
dataType: text
value: Double Opt-In Confirmed
variable: contact.note
transitionTo: Send Message 1
falseTransition: Send Message
- name: Send Message 1
config:
type: .configuration.action.SendMessage
subject: '[Store Name]'
messageType: SMS
message: "${FirstName}, looks like you left something behind!\r\n\r\nClick here to finish your order: ${shopifyAbandonedCheckoutUrl}\r\n\r\nRecurring messages subscription. Message and data rates may apply. Reply HELP for help and STOP to opt out."
containsSuspiciousWords: false
- name: Send Message
config:
type: .configuration.action.SendMessage
transitionTo: Wait for Reply
subject: '[Store Name]'
messageType: SMS
message: "Hi ${FirstName}, thanks for stopping by! Want to receive exclusive offers, updates, and reminders (like cart alerts) by text?\r\n\r\nReply YES to confirm your sign up.\r\n\r\nRecurring messages subscription. Message and data rates may apply. Reply HELP for help and STOP to opt out."
containsSuspiciousWords: false
- name: Wait for Reply
config:
type: .configuration.condition.WaitForReply
transitionTo: Send Message 2
amount: 12
units: HOUR
condition:
operation: eq
value: 'YES'
- name: Send Message 2
config:
type: .configuration.action.SendMessage
transitionTo: Update Contact
subject: '[Store Name]'
messageType: SMS
message: "Welcome to the party! You're now subscribed to our text list. Thanks for signing up.\r\n\r\nYou can reply STOP at any time to opt out."
containsSuspiciousWords: false
- name: Update Contact
config:
type: .configuration.action.UpdateContact
fieldExpressions:
- fieldName: note
expression: Double Opt-In Confirmed
updateContactType: UPDATE_FIELD