Retrieve stored Entities inside the custom action method
Let’s see the below command which will help us to retrieve the stored entities present inside the local bot memory:
variable_name = tracker.latest_message['entities']
The “tracker” keeps the record of the recent conversations and the stored entity. The above command will return an array of stored entities. We will have to Iterate through this array to get our desired entity value.
How to send Custom Json Response from Rasa Chatbot’s Custom Action?
Rasa is an open-source Machine Learning framework to automate contextual text-voice-based Assistant. Rasa NLU understands the correct Intent with the help of its pre-trained nlu data. Rasa Core decides what to do next and reply according to in sync with the training stories. It also has the capability to store Entities (Noun type-specific Information stored for future use). By default, it can respond with texts, image links, button objects etc.