-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdecision_tree.yaml
129 lines (114 loc) · 3.03 KB
/
decision_tree.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
- id: start
text: "Hello! How can I help you today?"
reset: true
choices:
- choice: "I want to buy something."
next_id: "buy_something"
- choice: "I have a question."
next_id: "ask_question"
- id: buy_something
text: "What would you like to buy?"
choices:
- choice: "A book."
next_id: "buy_book"
- choice: "A movie."
next_id: "buy_movie"
- id: ask_question
text: "What is your question?"
choices:
- choice: "Can you help me with my computer?"
next_id: "help_with_computer"
- choice: "Do you know the time?"
next_id: "tell_time"
- choice: "Ask Wolfram|Alpha"
next_id: "ask_wolfram_alpha"
- id: buy_book
text: "Which book do you want to buy?"
choices:
- choice: "Harry Potter and the Philosopher's Stone"
next_id: "harry_potter"
- choice: "To Kill a Mockingbird"
next_id: "mockingbird"
- id: buy_movie
text: "Which movie do you want to buy?"
choices:
- choice: "The Godfather"
next_id: "godfather"
- choice: "Star Wars: A New Hope"
next_id: "star_wars"
- id: help_with_computer
text: "What kind of help do you need with your computer?"
choices:
- choice: "My computer won't turn on."
next_id: "computer_wont_turn_on"
- choice: "My computer is running slow."
next_id: "computer_running_slow"
- id: computer_wont_turn_on
text: "You are fried"
choices:
- choice: "Game over"
next_id: "exit"
- id: computer_running_slow
text: "This is unfortunate, but I can't help you."
choices:
- choice: "Can't help you."
next_id: "start"
- id: tell_time
text: "The time is currently 2:30pm. Is there anything else you need help with?"
choices:
- choice: "Yes, I have another question."
next_id: "ask_question"
- choice: "No, that's all. Thanks!"
next_id: "done"
- id: harry_potter
tool: signal_book
text: "Harry Potter and the Philosopher's Stone costs $10. Would you like to buy it?"
choices:
- choice: "Yes"
next_id: "done"
- choice: "No"
next_id: "done"
- id: mockingbird
tool: signal_book
text: "To Kill a Mockingbird costs $12. Would you like to buy it?"
choices:
- choice: "Yes"
next_id: "done"
- choice: "No"
next_id: "done"
- id: godfather
text: "The Godfather costs $15. Would you like to buy it?"
predict: false
choices:
- choice: "Yes"
next_id: "done"
- choice: "No"
next_id: "done"
- id: star_wars
text: "Star Wars: A New Hope costs $20. Would you like to buy it?"
predict: false
choices:
- choice: "Yes"
next_id: "done"
- choice: "No"
next_id: "done"
- id: done
text: "All Done?"
predict: false
choices:
- choice: "Start over"
next_id: "start"
- choice: "Exit"
next_id: "exit"
- id: ask_wolfram_alpha
tool: wolfram_alpha
text: "Asked Wolfram|Alpha..."
predict: false
choices:
- choice: "No more questions"
next_id: "done"
- choice: "I have another question"
next_id: "ask_wolfram_alpha"
- id: exit
text: "Exit"
choices: []