How to get bot response to slot

is there any solution to get bot response to slot.

ex:  user: hi
       bot: hi how are you. --(i want this to slot using

All of the events are stored in the tracker as a list. You can do a reversed search of it to retrieve the last utterance of the bot.

can you one example to get tracker to slot?