Created
May 15, 2022 13:07
-
-
Save rfbatista/aec8060b070e5a7944d1ce819540ef92 to your computer and use it in GitHub Desktop.
Chatbot definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Chatbot", | |
"begin": "flowId", | |
"flows": { | |
"flowId": { | |
"name": "Start", | |
"steps": { | |
"stepId1": { | |
"components": { | |
"0": { | |
"type": "text", | |
"text": "Hello" | |
}, | |
"1": { | |
"type": "text", | |
"text": "world" | |
}, | |
"2": { | |
"type": "goto", | |
"flowId": "flowId", | |
"stepId": "stepId2" | |
} | |
} | |
}, | |
"stepId2": { | |
"type": "question", | |
"prompt": "What can I do for you ${user_name}?", | |
"options": { | |
"0": "nothing", | |
"1": "help me" | |
}, | |
"answers": { | |
"0": { | |
"match": "0", | |
"save": "last_response", | |
"goto": { | |
"flowId": "flowId", | |
"stepId": "stepId1" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment