How to get latest bot response? - Rasa Open Source - Rasa Community Forum

👋 Introducing the Rasa Playground

How to get latest bot response?

post by Ajinkz on Jan 17, 2019

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 ?

Me too

post by hossa95 on Feb 17, 2019

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

post by Ajinkz on Feb 18, 2019

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

{ “_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 : "..........