Skip to content

Commit 03a4257

Browse files
authored
Merge pull request RasaHQ#5493 from RasaHQ/session-config-examples
add session configs to example bots
2 parents 805de56 + 1c46293 commit 03a4257

File tree

6 files changed

+30
-5
lines changed

6 files changed

+30
-5
lines changed

examples/concertbot/domain.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ actions:
3333
- action_search_venues
3434
- action_show_concert_reviews
3535
- action_show_venue_reviews
36+
37+
session_config:
38+
session_expiration_time: 60 # value in minutes
39+
carry_over_slots_to_new_session: true

examples/formbot/domain.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,7 @@ responses:
8080

8181
forms:
8282
- restaurant_form
83+
84+
session_config:
85+
session_expiration_time: 60 # value in minutes
86+
carry_over_slots_to_new_session: true

examples/knowledgebasebot/domain.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ responses:
4747

4848
utter_iamabot:
4949
- text: "I am a bot, powered by Rasa."
50+
51+
52+
session_config:
53+
session_expiration_time: 60 # value in minutes
54+
carry_over_slots_to_new_session: true

examples/moodbot/domain.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ responses:
3131

3232
utter_iamabot:
3333
- text: "I am a bot, powered by Rasa."
34+
35+
session_config:
36+
session_expiration_time: 60 # value in minutes
37+
carry_over_slots_to_new_session: true

examples/reminderbot/domain.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
session_config:
2-
session_expiration_time: 0.0
3-
carry_over_slots_to_new_session: true
41
intents:
52
- greet:
63
triggers: action_set_reminder
@@ -17,19 +14,25 @@ intents:
1714
- EXTERNAL_reminder:
1815
triggers: action_react_to_reminder
1916
- EXT_reminder
17+
2018
entities:
2119
- name
2220
- plant
21+
2322
responses:
2423
utter_what_can_do:
2524
- text: What can I do for you?
25+
2626
utter_goodbye:
2727
- text: Bye
28+
2829
actions:
2930
- action_set_reminder
3031
- action_forget_reminders
3132
- action_react_to_reminder
3233
- action_tell_id
3334
- action_warn_dry
34-
- utter_what_can_do
35-
- utter_goodbye
35+
36+
session_config:
37+
session_expiration_time: 60 # value in minutes
38+
carry_over_slots_to_new_session: true

examples/restaurantbot/domain.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,8 @@ responses:
6767
actions:
6868
- action_search_restaurants
6969
- action_suggest
70+
71+
session_config:
72+
session_expiration_time: 60 # value in minutes
73+
carry_over_slots_to_new_session: true
74+

0 commit comments

Comments
 (0)