Должен ли я добавить скрипт в мой .aiml, когда публика печатает оператор / оператор человек?
Программа-бот для сценария livezilla
`<?php
$requestobj = json_decode($_POST["livezilla_user_api_request"]);
$responseNode = array();
$responseNode["ResponseTo"] = "";
$responseNode["Id"] = rand(1111111,9999999);
$url = "http://localhost/chatbot/chatbot/conversation_start.php?say=".rawurlencode($requestobj->Value)."&convo_id=".$requestobj->VisitorId."&format=json";
$sdata = json_decode(file_get_contents($url));
$responseNode["Value"] = $sdata->botsay;
if(!empty($responseNode["Value"]))
echo json_encode($responseNode);
?>`
Должен ли я сделать это внутри .aiml?
`<?php
$responseNode["Select"] = array();
$responseNode["Select"][] = array("title"=>"Enter something","return"=>"something");
$responseNode["Select"][] = array("title"=>"Link (go to website)","url"=>"http://www.livezilla.net","return"=>"");
$responseNode["Select"][] = array("title"=>"Run some Javascript (JS)","script"=>"alert(123);","return"=>"");
$responseNode["Select"][] = array("title"=>"Start a Chat","action"=>"chat","operator"=>"administrator","group"=>"support");
$responseNode["Select"][] = array("title"=>"Leave a Message","action"=>"message","group"=>"support");
$responseNode["Value"] = "Thanks for testing me. Here's a list of options, please click something or type 'list' to reset.";
?>`
Вывод моего бота "Файл AIML не найден".