diff --git a/app/Controllers/Chatbot/ReimbursementClaimStatusConversation.php b/app/Controllers/Chatbot/ReimbursementClaimStatusConversation.php
index fd6e3337..0c3374e4 100644
--- a/app/Controllers/Chatbot/ReimbursementClaimStatusConversation.php
+++ b/app/Controllers/Chatbot/ReimbursementClaimStatusConversation.php
@@ -24,10 +24,19 @@ class ReimbursementClaimStatusConversation extends Conversation
$chat_session_info = get_chatbot_session_info();
$data = ChatbotHelper::getReimbursementClaimStatus($chat_session_info);
-
+ log_message('error','Claim Number - ' . json_encode($data['claim_number']));
$this->bot->types();
if ($data){
- $this->say("The claim status for the claim Number {$data['claim_number']} is currently in {$data['client_status']} status.
More Detailed Information is sent to your mail");
+ if(isset($data['claim_number']) && $data['claim_number'] !== null)
+ {
+ log_message('error','Claim Number YES- ' . json_encode($data['claim_number']));
+ $this->say("The claim status for the claim Number {$data['claim_number']} is currently in {$data['client_status']} status.
More Detailed Information is sent to your mail");
+ }
+ else
+ {
+ log_message('error','Claim Number NO- ' . json_encode($data['claim_number']));
+ $this->say("The claim status for your latest claim (ID not generated) is currently in {$data['client_status']} status.
More Detailed Information is sent to your mail");
+ }
$this->bot->startConversation(new doYouWantToContinueConversation());
}else{
$this->say("No Claim Raised against the user.");
diff --git a/app/Controllers/ChatbotControllerNew.php b/app/Controllers/ChatbotControllerNew.php
index 544c40d4..67d31c37 100644
--- a/app/Controllers/ChatbotControllerNew.php
+++ b/app/Controllers/ChatbotControllerNew.php
@@ -116,7 +116,7 @@ class ChatbotControllerNew extends BaseController
// Start the Main Menu when user says "hi" or "start"
$this->botman->hears('start|hi|hello|help|help me', function (BotMan $bot) {
if ($this->isMemberLoggedIn){
- $bot->reply('Hi how can i assist?');
+ // $bot->reply('Hi how can i assist?');
$bot->startConversation(new MainMenuConversation());
}else {
$bot->startConversation(new LoginToContiueConversation());
diff --git a/app/Views/chatbot.php b/app/Views/chatbot.php
index 674db7f3..7a7c19b5 100644
--- a/app/Views/chatbot.php
+++ b/app/Views/chatbot.php
@@ -570,10 +570,10 @@ function setupMessageObserver() {
if (window.botmanWidget) {
botmanChatWidget.open();
- setTimeout(function(){
- botmanChatWidget.sayAsBot('Hi ' + (typeof name !== "undefined" && name !== null && name !== "" ? name : "Guest User") + ', This is ILA your Insurance Assistant, plz choose the following options');
- botmanChatWidget.whisper('Hi');
- }, 1000);
+ // setTimeout(function(){
+ // botmanChatWidget.sayAsBot('Hi ' + (typeof name !== "undefined" && name !== null && name !== "" ? name : "Guest User") + ', This is ILA your Insurance Assistant, plz choose the following options');
+ // botmanChatWidget.whisper('Hi');
+ // }, 10);
applyBotManChatCSS();
@@ -593,6 +593,14 @@ function setupMessageObserver() {
chatFrame.addEventListener("load", () => {
console.log('Iframe loaded event triggered');
setTimeout(() => injectCSS(chatFrame), 100);
+
+ // DADA
+ setTimeout(function(){
+ botmanChatWidget.sayAsBot('Hi ' + (typeof name !== "undefined" && name !== null && name !== "" ? name : "Guest User") + ', This is ILA your Insurance Assistant, plz choose the following options');
+ botmanChatWidget.whisper('Hi');
+ }, 100);
+
+ // DADA
});
});
}
@@ -677,8 +685,8 @@ function setupMessageObserver() {
-
-
+
+