How to get latest bot response?

How to get latest bot response ?For getting user input we use

tracker.latest_message['text']

In same way what is syntax for getting latest bot response ?

have you find a way as i am looking for the same thing now?

I didnt found any way to get it thru code but somwhow I manage to get Bot response from tracker store. Im using Mongodb for storing data using tracker. Inside it under Event you will find events. There are 3 types of events

  • User

  • Bot

  • Action

    { “_id” : ObjectId(“5c5c09719d7a3693ad06bcb1”), “sender_id” : “user”, “active_form” : {}, “events” : [ { “event” : “user”, “timestamp” : 1549535601.44393, "text" : “hello”, “parse_data” : { “intent” : { “name” : “greet”, “confidence” : 0.845350682735443 } { "event" : “action”, “timestamp” : 1549535601.64152, “name” : “action_faqs”, “policy” : “policy_0_KerasPolicy”, “confidence” : 0.947964291988365 }, { "event" : “bot”, “timestamp” : 1549535601.64154, "text" : “Hii … :grinning:”, “data” : { “elements” : null, “buttons” : null, “attachment” : null } } I was then able to extract the conversation like this

events: User, text : ".........."

events: Bot, text: "........."

@Ajinkz Can you please tell me how you configured MongoDb?