How to access intent of two messages above

(Vijay) #1

Hi community, Does anyone help me to solve this problem… I want to access intent of two messages above. we can access the intent of previous message by using tracker.latest_message[“intent”].get(“name”) But i want to access intent of a message which is above latest message… Any ideas/suggestions…

(Julian Gerhard) #2

Hi @vijayirlapati

you could achieve this by iterating over the events in your tracker:

for event in tracker.events:
 <do sth>

I hope that helped!