Exit from Dynamic node after 3 retires

Hi Team,
Is there any method to exit the Dynamic Chat Node after three unsuccessful attempts? The objective is to transition to the live agent flow if the Dynamic Node fails to address user queries after three tries. Currently, the bot remains stuck in the Dynamic Chat Node without transitioning out.
CC: @ajay.mehta