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 …
”,
“data” : {
“elements” : null,
“buttons” : null,
“attachment” : null
}
}
I was then able to extract the conversation like this
events: User,
text : ".........."
events: Bot,
text: "........."