-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.asking.yml
49 lines (46 loc) · 976 Bytes
/
sample.asking.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
start:
- title: Asking Demo
- text: Welcome to the Asking demo!
- ask:
question: Are you ready?
key: ready
recall: false
branches:
- response: [y]
then:
- text: Great! Let's get started!
- goto: name
- response: [n, ""]
then:
- stop: false
name:
- ask:
question: What's your name?
key: user.name
recall: true
branches:
- response: "^.+$"
then:
- goto: smell
smell:
- ask:
question: What's your favourite smell?
key: user.smell
recall: true
branches:
- response: "^.+$"
then:
- goto: finalise
finalise:
- text: "Here's your configuration:"
- responses: json
- ask:
question: Okay to save?
key: save
branches:
- response: y
then:
- stop: true
- response: n
then:
- stop: false