Thank you @erohmensing for your reply.
Well, I can see that the tracker has access to the latest user utterance. But my requirement is a little more complex. I have to create a scenario like, create the ticket immediately after receiving a negative feedback from user. I don’t want to define a separate intent for asking the bot to raise a ticket.
In that case, I need all the messages starting from the intent (the question asked by the user) till end of that conversation (only that story). So that I can raise the ticket with all those details.
For example, I have two intents and two different stories for handling each intent like,
- What is the current time?
- What is the current weather?
So, the stories would be like.,
In this case, the user has initially started with the first intent and completed a conversation scenario for checking the current time. Then the user again started another conversation for checking the current weather and the user is not satisfied with the answer provided by the bot. Hence, the bot need to raise a ticket for that particular context (conversation scenario). So, the description of the ticket should be somewhat like this.
User: What is the current weather?
Bot: The current time is blah blah blah
Bot: Are you satisfied with this solution?
Kindly note that the ticket should NOT contain the content of the previous conversation (checking time), since the user was happy with that solution provided by the bot. Hence, only the second conversation details should be added as the description for the ticket.
Is there anyway to do it?
Anoop Mohan (anoop2503)