You will need behavior rules
and an outputset
for that.
For the behavior rules, you have three possibilities (ordered by recommendation):
{"behaviorGroups": [{"name": "Onboarding","behaviorRules": [{"name": "Welcome","actions": ["welcome"],"conditions": [{"type": "actionmatcher","configs": {"actions": "CONVERSATION_START"}}]}]}]}
{"behaviorGroups": [{"name": "Onboarding","behaviorRules": [{"name": "Welcome","actions": ["welcome"],"conditions": [{"type": "actionmatcher","configs": {"actions": "welcome","occurrence": "never"}}]}]}]}
{"behaviorGroups": [{"name": "Onboarding","behaviorRules": [{"name": "Welcome","actions": ["welcome"],"conditions": [{"type": "occurrence","configs": {"maxTimesOccurred": "0","behaviorRuleName": "Welcome"}}]}]}]}
{"outputSet": [{"action": "welcome","timesOccurred": 0,"outputs": [{"type": "text","valueAlternatives": [{"text": "Some output here...","delay": 3000}]}],"quickReplies": [// quickreplies here]}]}
(Think of a form-like behavior, asking a couple of questions and sending these results somewhere.)
{"behaviorGroups": [{"name": "Onboarding","behaviorRules": [{"name": "Ask for Name","actions": ["ask_for_name"],"conditions": [{"type": "actionmatcher","configs": {"actions": "some_previous_action","occurrence": "lastStep"}}]}]}]}
​
Have a question that is not covered? Drop us an email at [email protected], we are happy to enhance our documentation!