bot->types(); // Typing indicator for the first message sleep(0.5); // Delay $this->claimProcess(); } protected function claimProcess() { $chat_session_info = get_chatbot_session_info(); $res = ChatbotHelper::sendReimbursementProcessOverMail($chat_session_info); if($res == true) { $this->say("Reimbursement process shared over your registered mail...!"); } else { $this->say("No email found in your profile / Please contact support team"); } $this->bot->startConversation(new doYouWantToContinueConversation()); } }