Hi @akelad, thanks for getting back. I have the following story; the user is prompted to see if they want to start over again via ‘action_another_appt’
This calls ‘action_reset’ as follows:
class ActionReset(Action):
def name(self):
return “action_reset”
def run(self, dispatcher, tracker, domain):
PERSON = tracker.get_slot('PERSON')
return [Restarted(),
UserUttered(text="/greet", parse_data={
"intent": {"confidence": 1.0, "name": "greet"},
"entities": []
}),
FollowupAction(name="action_greet_user"),
SlotSet("PERSON", PERSON)]
‘action_what_service’ is called after ‘greet’ and is as follows:
class ActionWhatService(Action):
def name(self) -> Text:
return “action_what_service”
def run(self, dispatcher, tracker, domain):
logger.debug("input channel is {}".format(tracker.get_latest_input_channel()))
You can see this output the channel type; looking at the debug logs I see the following:
Initial pass on bot start…
2020-03-09 15:52:44 DEBUG actions.actions - greet name is None
2020-03-09 15:52:44 DEBUG rasa_sdk.executor - Finished running ‘action_greet_user’
2020-03-09 15:52:45 DEBUG rasa_sdk.executor - Received request to run ‘action_what_service’
2020-03-09 15:52:45 DEBUG actions.actions - input channel is facebook
2020-03-09 15:52:45 DEBUG rasa_sdk.executor - Finished running ‘action_what_service’
After selecting that we want to ‘start over again’…
2020-03-09 15:54:12 DEBUG actions.actions - greet name is David
2020-03-09 15:54:12 DEBUG rasa_sdk.executor - Finished running ‘action_greet_user’
2020-03-09 15:54:14 DEBUG rasa_sdk.executor - Received request to run ‘action_what_service’
2020-03-09 15:54:14 DEBUG actions.actions - input channel is None
2020-03-09 15:54:14 DEBUG rasa_sdk.executor - Finished running ‘action_what_service’
Thanks, David