Spaces:
Sleeping
Sleeping
Update actions/actions.py
Browse files- actions/actions.py +4 -6
actions/actions.py
CHANGED
@@ -82,8 +82,8 @@ class ActionJoinClassify(Action):
|
|
82 |
if last_intent == 'local chapter':
|
83 |
dispatcher.utter_message(template="utter_join_chapter")
|
84 |
else:
|
85 |
-
|
86 |
-
|
87 |
|
88 |
|
89 |
class ActionEligibilityClassify(Action):
|
@@ -103,8 +103,7 @@ class ActionEligibilityClassify(Action):
|
|
103 |
if last_intent == 'local chapter':
|
104 |
dispatcher.utter_message(template="utter_local_chapter_participation_eligibility")
|
105 |
else:
|
106 |
-
|
107 |
-
dispatcher.utter_message(text=msg)
|
108 |
|
109 |
|
110 |
class ActionCostClassify(Action):
|
@@ -124,8 +123,7 @@ class ActionCostClassify(Action):
|
|
124 |
if last_intent == 'local chapter':
|
125 |
dispatcher.utter_message(template="utter_local_chapter_cost")
|
126 |
else:
|
127 |
-
|
128 |
-
dispatcher.utter_message(text=msg)
|
129 |
|
130 |
class SayHelloWorld(Action):
|
131 |
|
|
|
82 |
if last_intent == 'local chapter':
|
83 |
dispatcher.utter_message(template="utter_join_chapter")
|
84 |
else:
|
85 |
+
return [FollowupAction("action_get_response_openai")]
|
86 |
+
|
87 |
|
88 |
|
89 |
class ActionEligibilityClassify(Action):
|
|
|
103 |
if last_intent == 'local chapter':
|
104 |
dispatcher.utter_message(template="utter_local_chapter_participation_eligibility")
|
105 |
else:
|
106 |
+
return [FollowupAction("action_get_response_openai")]
|
|
|
107 |
|
108 |
|
109 |
class ActionCostClassify(Action):
|
|
|
123 |
if last_intent == 'local chapter':
|
124 |
dispatcher.utter_message(template="utter_local_chapter_cost")
|
125 |
else:
|
126 |
+
return [FollowupAction("action_get_response_openai")]
|
|
|
127 |
|
128 |
class SayHelloWorld(Action):
|
129 |
|