How to get next reply of rasa in custom action?

I am making a custom action which stores the latest user message, intent detected and the bot reply in three columns in a sql table. I have figured out how to extract latest message and intent but i dont know hot to get the bot reply. Please suggest how to do this.

@sandeeppandey456 What do you mean by this?

@sandeeppandey456 and this

please elaborate more with suitable example?

You’re using a Custom Action to do that. So it means you’re using dispatcher.utter_message() to reply. So you already have the bot’s response :slight_smile:

Or, check out tracker.events_after_latest_restart.