AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

ChatScript’s Chatbot on Localhost
 
 

Hi Experts,

This is my first chatbot program.I have created a chatbot using chatscript. It works perfectly in .cmd when I execute a chatscript.exe program. Now I am trying to run the chatbot the browser using xampp. I have done the following steps:
1)I have installed XAMPP on C drive.
2)In XAMPP > HTDOCS folder I have added the Chatscript folder in it.
3)I am using Better web interface provided by chatscript.
4)When I try to run the index.php file, the bot doesn’t reply.
5) I haven’t changed anything in index.php file.

Only thing I changed in ui.php file is the following:
$host = “localhost”;  //  <<<<<<<<<<<<<<<<< YOUR CHATSCRIPT SERVER IP ADDRESS OR HOST-NAME GOES HERE
$port = 8080;      // <<<<<<< your port number if different from 1024
$bot = “rose”; 

When I try to access the index.php file in browser using following url:
http://localhost:8080/ChatScript-7.72/WEBINTERFACE/BETTER/index.php

The bot doesnt reply back. Please let me know what changes should i do. smile

Image Attachments
issue.PNG
 

 
  [ # 1 ]

Hi Kaushik,
It seems to me that the recommended method is to place your PHP files in the “HTDocs” folder located under the “XAMMP” folder on your C: drive. The file path is “C:\xampp\htdocs\” for your Web server.

then you can use the address “localhost/index.php”

That being said,
your bot is called Rose?
your CS is running on 8080 port ?

regards

 

 
  [ # 2 ]

Hi Mathieu,

Thanks for the help , now its working. The reason was chatscript.exe was running in local mode. To run chatbot on webpage it should be running in server mode ,I then assigned port 1024 to chatscript.exe and then it started working. smile

Thanks again.

 

 
  login or register to react