Jump to content


Chatbot forwarding

chatbot

7 replies to this topic

#1 cstanleyhns

    Member

  • Members
  • PipPip
  • 22 posts

Posted 19 November 2018 - 12:26 PM

Hi

I recently upgraded from 7.x.x.x to 8.0.0.4 and now the chatbot ALWAYS sends to human when set to NEVER. The chatbot does answer but when you start the chat with it, it instantly forwards you and when you look at the active chats, it does not appear under the 'chatbot' list as it did before.

If you then set the chatbot to respond when all operators are offline, then the chatbot answers and uses its php script correctly and also appears under the chatbot list as expected in the operator console.

Something has changed since the upgrade and i believe there is a bug.

Could you please look at this as soon as you can.

Thanks

Chris

#2 cstanleyhns

    Member

  • Members
  • PipPip
  • 22 posts

Posted 22 November 2018 - 04:05 PM

All

Patrick advised me to clear the browser cache and now it works fine. So, remember to clear the browser cache if things don't seem quite right.

Thanks

Chris

#3 Patrick Keil

    Administrator

  • Administrators
  • 3699 posts
  • LocationSingen, Germany

Posted 22 November 2018 - 04:12 PM

Hi Chris,

Thanks for the clarification.

#4 jimmy_LGS

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 26 November 2018 - 02:13 AM

View Postcstanleyhns, on 19 November 2018 - 12:26 PM, said:

Hi

I recently upgraded from 7.x.x.x to 8.0.0.4 and now the chatbot ALWAYS sends to human when set to NEVER. The chatbot does answer but when you start the chat with it, it instantly forwards you and when you look at the active chats, it does not appear under the 'chatbot' list as it did before.

If you then set the chatbot to respond when all operators are offline, then the chatbot answers and uses its php script correctly and also appears under the chatbot list as expected in the operator console.

Something has changed since the upgrade and i believe there is a bug.

Could you please look at this as soon as you can.

Thanks

Chris

Hi, I am facing same problem for this bot will auto forwarding to operator.



View Postcstanleyhns, on 22 November 2018 - 04:05 PM, said:

All

Patrick advised me to clear the browser cache and now it works fine. So, remember to clear the browser cache if things don't seem quite right.

Thanks

Chris

have try to clear the browser cache and change another pc problem still same.

#5 cstanleyhns

    Member

  • Members
  • PipPip
  • 22 posts

Posted 26 November 2018 - 11:04 AM

Hi Jimmy,

All i can say from my experience is check that the Chatbot is set to NEVER connect to a human and that when you clear your browser cache, make sure you clear cached image and files. If you want me to test your chatbot on my system then i am happy to do that.

Chris

#6 Patrick Keil

    Administrator

  • Administrators
  • 3699 posts
  • LocationSingen, Germany

Posted 26 November 2018 - 12:22 PM

Hi Jimmy,

also make sure that your use this setup.

We have added the changes to our daily build, it will also be included in 8.0.0.5 coming next month.

#7 jimmy_LGS

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 27 November 2018 - 02:54 AM

Quote


Hi Jimmy,

also make sure that your use this setup.

We have added the changes to our daily build, it will also be included in 8.0.0.5 coming next month.




Yes, my currently version is 8.0.0.4.
Attached Image: operator.png



Quote


Hi Jimmy,

All i can say from my experience is check that the Chatbot is set to NEVER connect to a human and that when you clear your browser cache, make sure you clear cached image and files. If you want me to test your chatbot on my system then i am happy to do that.

Chris



Hi Chris, thanks for your help.

Yes i have set the bot welcome manager bot as NEVER
Attached Image: bot setting.png

I have try to clear all my browser cache will selection include cached image and files and other together.

And i currently use the bot sample provide from website code as below:


<?php
$requestobj = json_decode($_POST["livezilla_user_api_request"]);

$responseNode = array();
$responseNode["Value"] = "";
$responseNode["ResponseTo"] = "";
$responseNode["SearchKB"] = false;

if($requestobj->Value != "[__[EXIT]__]")
{
// first user interaction
if($requestobj->ResponseTo == "")
{
// store initial question
$responseNode["Data"] = array();
$responseNode["Data"]["114"] = $requestobj->Value;

$responseNode["Id"] = "action:request_name";
$responseNode["Value"] = "Ok. What's your name please?";
}

// user defines name
if($requestobj->ResponseTo == "action:request_name")
{
$responseNode["Id"] = "action:request_pizza_type";
$responseNode["Value"] = "Great, nice to meet you <b>" . $requestobj->Value . "</b>.";
$responseNode["Value"] .= "What size do you like your Pizza?<br><br>";

// store name
$responseNode["Data"]["111"] = $requestobj->Value;
$responseNode["Data"] = array();

$responseNode["Select"] = array();
$responseNode["Select"][] = array("title"=>"Medium - 10\" / 25 cm.","return"=>"Medium");
$responseNode["Select"][] = array("title"=>"Italian - 12\" / 30 cm.","return"=>"Italian");
$responseNode["Select"][] = array("title"=>"Large - 14\" / 35 cm.","return"=>"Large");

// block input field
$responseNode["Block"] = true;
}

// user defines pizza style
if($requestobj->ResponseTo == "action:request_pizza_type")
{
$responseNode["Id"] = "action:request_customer_number";
$responseNode["Value"] = "Your Pizza will be " . $requestobj->Value . " style. All saved!";
$responseNode["Value"] .= "Your customer number would be helpful, too. Do you have one?<br><br>";

// store pizza type (represents custom combobox field 0)
$responseNode["Data"] = array();
$responseNode["Data"]["0"] = $requestobj->Value;

$responseNode["Select"] = array();
$responseNode["Select"][] = array("title"=>"Yes","return"=>"Yes");
$responseNode["Select"][] = array("title"=>"No","return"=>"No");

// block input field
$responseNode["Block"] = true;
}

if($requestobj->ResponseTo == "action:request_customer_number")
{
// and so on ...
$responseNode["Value"] = "This demo ends here ...";
$responseNode["Block"] = false;
}
}
else
{
// say good bye
$responseNode["Id"] = "action:end_chat";
$responseNode["Value"] = "Take care, bye!";
}
echo json_encode($responseNode);
?>

#8 jimmy_LGS

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 27 November 2018 - 03:02 AM

View PostPatrick Keil, on 26 November 2018 - 12:22 PM, said:

Hi Jimmy,

also make sure that your use this setup.

We have added the changes to our daily build, it will also be included in 8.0.0.5 coming next month.

I notice that, when the group did not have operation hour or without any operator(status as away)
the chatbot is working fine.

when i set the operation hour back to setting, it will direct forwarding chat to operator





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users