I want the name of the story which got executed during a conversation. That way I can pinpoint which story was chosen by rasa among a few with same action at the end of the stories.
Is there a way?
I want the name of the story which got executed during a conversation. That way I can pinpoint which story was chosen by rasa among a few with same action at the end of the stories.
Is there a way?
I don’t know if its possible Maybe using slot and all story set different value for this slots and use custom action listen to get this values
But do you really need for story? What about last intent?
action.py
from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
class ActionActionListen(Action):
def name(self) -> Text:
return "action_listen"
async def run(
self, dispatcher, tracker: Tracker, domain: Dict[Text, Any]
) -> List[Dict[Text, Any]]:
print('---- CUSTOM action_action_listen ----')
last_intent = tracker.get_intent_of_latest_message()
print(last_intent)
return []
domain.yml
actions:
- action_listen
References: