Finish chatbot logic