pvanand commited on
Commit
5b552f8
·
1 Parent(s): d97f279

Update actions/actions.py

Browse files
Files changed (1) hide show
  1. 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
- msg = "I'm sorry, I didnt understand your question, Could you please rephrase?"
86
- dispatcher.utter_message(text=msg)
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
- msg = "I'm sorry, I didn't understand your question. Could you please rephrase?"
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
- msg = "I'm sorry, I didn't understand your question. Could you please rephrase?"
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