How to handle maintain the count when intent is not identified

I have made a default task . Whenever the bot will not identify any of the task or intent it will come to default task and the requirement is if the the utterance will come three times in that task by retrying it again and again for the forth time it should be transferred to live agent. I am not able to come with solution

Hi @awasthividhu,

You should be able to manage this functionality by writing code in BotKit.
The onUserMessage and onBotMessage functions should be able to help you in identifying the utterance that is not being identified by the bot and then you can call the LiveAgentTransfer function.

Let us know if you need any further guidance on this usecase.

Yoga Ramya.