Get NLU Data from action server

I have an action server that has couple of custom actions in it, I also set up a custom connector for my use case. Now all I am getting is the response from this server. I also want to get the NLU Object that consists of entities, intents it captured, how can I get it back along with response text? Should I have to make a separate API call to rasa nlu server? any other better way?

In a custom action, you can send extra data in dispatcher.utter_message() with the custom argument.

So you can do this:

    text = "Hey there",
    image = "",
    custom = tracker.latest_message

In your front-end interface, you surely know that the response contains text and image keys, and this is what you display. Now it will have custom too.

1 Like