How to get respond from rasa with information about intent and entities

Is there any way for Rasa to return what intent has been recognized and what entities instead of a predefined answer? How to get such respond: I am looking for red sofa for my sister. → search_product {“color”: “red”, “product”: “sofa”, “recommendation”: “for my”, “person”: “sister”} (0.90). I know Rasa X gives me this option, but I don’t know how to get the same result on local Rasa (which is installed on my local machine). I checked the available commands, unfortunately, I did not find any answer. I know the ‘Rasa shell’ gives me the possibility of conversation, but I only get predefined answers there.


To get the latest intent name inside a custom action:

intent= tracker.latest_message[‘intent’].get(‘name’)

To extract all entity names: