- name: Date and Time
config:
type: .configuration.trigger.ListOnDateTime
transitionTo: Send Message
triggerType: STATIC
- name: Send Message
config:
type: .configuration.action.SendMessage
transitionTo: Wait for Reply
messageType: SMS
message: >-
Thanks for being our client! How would you rate our services? Please reply
with 1 - 5.
containsSuspiciousWords: false
- name: Wait for Reply
config:
type: .configuration.condition.WaitForReply
transitionTo: Conditional Split
amount: 24
units: HOUR
condition:
or:
- operation: contains
value: '1'
- operation: contains
value: '2'
- operation: contains
value: '3'
- operation: contains
value: '4'
- operation: contains
value: '5'
- name: Conditional Split
config:
type: .configuration.condition.If
transitions:
- name: Match
condition:
or:
- op: contains
dataType: text
value: '4'
variable: WaitforReply.messageText
- op: contains
dataType: text
value: '5'
variable: WaitforReply.messageText
transitionTo: Update Contact
falseTransition: Update Contact 1
- name: Update Contact
config:
type: .configuration.action.UpdateContact
transitionTo: Send Message 1
fieldExpressions:
- fieldName: note
expression: Happy Customer
updateContactType: UPDATE_FIELD
- name: Send Message 1
config:
type: .configuration.action.SendMessage
messageType: SMS
message: >-
Thanks for your feedback! We're thrilled you're happy with our service.
Would you be willing to leave us a quick review? [Insert link]
containsSuspiciousWords: false
- name: Update Contact 1
config:
type: .configuration.action.UpdateContact
transitionTo: Send Message 2
fieldExpressions:
- fieldName: note
expression: Not Happy
updateContactType: UPDATE_FIELD
- name: Send Message 2
config:
type: .configuration.action.SendMessage
messageType: SMS
message: >-
Thanks for your response. We'd love to understand how we can improve.
What could we have done better?
containsSuspiciousWords: false