How do I get the second previous message from user?
User: what is X?
Bot: X is ...
User: What is Y?
How do I fetch the first question(“What is X?”) from user uttered in this stage? Also where do I get the full conversation history from?
How do I get the second previous message from user?
User: what is X?
Bot: X is ...
User: What is Y?
How do I fetch the first question(“What is X?”) from user uttered in this stage? Also where do I get the full conversation history from?
@akshay2000 Can you please share your thoughts on this as well? It would be really helpful!
you can iterate through tracker.events
, every event is stored there in reversed order
@Ghostvv Thank you, is there a way to access the tracker from outside of the custom actions file?
What is your use case? You should be able to intercept tracker and forward it wherever you need it.
what do you mean?