How can i integrate my bot with the live chat

i want that if the confidence is below some threshold the chat should be redirected towards the customer care executive so that they can directly chat with the user how can we do that, please help me out with that…