Recover_pin_code_T9erhAW_stories.yml (1.6 KB)
@souvikg10 souvikg10 can you please help? please class ActionFromWhereDoYouWantToTransferMoneyFrom(Action):
def name(self) -> Text:
return "action_from_where_do_you_want_to_transfer_money_from"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
user_choice = tracker.get_slot("transfertype")
return [SlotSet("transfertype", user_choice)]
class ActionEvaluateAmeliaExpFromParent23807cb0(Action):
def name(self) -> Text:
return "action_evaluate_amelia_exp_from_parent_23807cb0"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
if (tracker.get_slot("smstype")) == "phone":`Preformatted text`
return [SlotSet("edge_", "4b9b53c4-39ec-4b0e-a6e5-048f56b212ae"), FollowupAction(name="action_evaluate_amelia_exp_from_parent_23807cb0_result")]
if (tracker.get_slot("smstype")) == "whatsapp":
return [SlotSet("edge_", "06cfb640-b3c3-4fb5-93f4-7cfab73e8c06"), FollowupAction(name="action_evaluate_amelia_exp_from_parent_23807cb0_result")]
class ActionEvaluateAmeliaExpFromParent23807cb0Result(Action):
def name(self) -> Text:
return "action_evaluate_amelia_exp_from_parent_23807cb0_result"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
return
Story file attached.
- Story Recover_pin_code_T9erhAW_AmeliaAsks_56c76b90_AmeliaSays_a67ef531 works fine
- Story Amelia Asks_AmeliaSays_a67ef531_AmeliaAsks_11070919_AmeliaSays_23807cb0 also gets triggered
-
- action: action_do_you_want_on_phone_or_whatsapp takes input however it can not trigger next action. It says no memoized action. It should either trigger story: _AmeliaSays_23807cb0 or _AmeliaSays_534b4f25
- story: _AmeliaSays_23807cb0
steps:
- action: action_evaluate_amelia_exp_from_parent_23807cb0_result
- slot_was_set:
- edge_: 4b9b53c4-39ec-4b0e-a6e5-048f56b212ae
- action: utter_you_will_receive_as_regular_message
- story: _AmeliaSays_534b4f25
steps:
- action: action_evaluate_amelia_exp_from_parent_23807cb0_result
- slot_was_set:
- edge_: 06cfb640-b3c3-4fb5-93f4-7cfab73e8c06
- action: utter_you_will_receive_on_whatsapp