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..

Creating GUI for Chatbot developed with Chtascript
 
 

Hi all,

I’m trying to present chatbot (built from chatscript) in a GUI. there is a prebuilt php web page in chatscript [~/WEBINTERFACE/SIMPLE/]. But chatscript and the page are not communicating. That is, the chatscript output is not being sent to the php page and viceversa.
WAMPSERVER is used to run the php page.You can see the error in snap posted below

But the same procedure is working when done in amazon ec2 server.As of now, I cant run a server instance online, so I need to run in a local machine.

I used a windows 7 32 bit system.I also tried in another windows 8 system.

Is it possible to do GUI in another language.

Any help will be appreciabel.Thanks in advance.

Image Attachments
gui.PNG
 

 
  [ # 1 ]

Hi Sangeetha,

A little late responding to this. Did you get this sorted out? We use the php code on various Winidows machines (Win 7 local, Win Server 2012 on AWS) and it works fine so we might be able to help you get this up and running.

Doug Danforth

 

 
  [ # 2 ]

Hi Doug Danforth,

Thanks for your reply. I still have the issue. And of your information, I m running the Chatscript and php page in a windows 7 32 bit laptop. I want it to be working in my system locally for ease.
I also found the procedures working when done in AWS[amazon EC2 server].

Sorry I couldn’t reply soon.

 

 
  [ # 3 ]

Hi Sangeetha,

Send me your email address and I can send you an example of the php files that we use.

Also, make sure your WAMPSERVER is serving php pages correctly.

Doug Danforth

 

 
  [ # 4 ]
Doug Danforth - Mar 21, 2016:

Hi Sangeetha,

Send me your email address and I can send you an example of the php files that we use.

Also, make sure your WAMPSERVER is serving php pages correctly.

Doug Danforth


I am sure php is running correctly. Awaiting your response

 

 
  [ # 5 ]

On searching , I found the following.

When I run php web interface(for Chatscript) locally, it says “No connection could be made because the target machine actively refused it. “,which means that the Chatscript server is not listening to the port in the mentioned ip address.

So how to configure the Chatscript server listen to it? Any ideas?

 

 
  [ # 6 ]

From the ChatScript documentation, I found that to make the ChatScript as a server in windows, the following must be done as a command line parameter. But for which command the parameter should be given?


Server or Not
port=xxx
This tells the system to be a server and to use the given numeric port. You must do this to
tell Windows to run as a server. The standard port is 1024 but you can use any port.

But for which command the parameter should be given?

 

 
  [ # 7 ]

From the ChatScript documentation, I found that to make the ChatScript as a server in windows, the following must be done as a command line parameter.

” Server or Not
port=xxx
This tells the system to be a server and to use the given numeric port. You must do this to
tell Windows to run as a server. The standard port is 1024 but you can use any port.

But for which command the parameter should be given?

 

 
  [ # 8 ]

Not sure what you are asking, but you can easily test CS as a local server by using the files included in the SERVER BATCH FILES folder. Just run LocalServer.bat and then LocalClient.bat and see if they talk to each other.

We set up a simple batch file that starts CS in server mode.

chatscript^
port=1024^
userlog^
livedata=..\MYLIVEDATA^
system=LIVEDATA\SYSTEM^
english=LIVEDATA\ENGLISH^
userfacts=1000

We have out own livedata files but use the included CS versions for system and english.

 

 
  [ # 9 ]

yeah. I tested the CS using server batch files, it is working fine.

And your reply in the other post [https://www.chatbots.org/ai_zone/viewthread/2463/] answered my question. Thanks a lot.

 

 
  login or register to react