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

Sending file to user
 
 

This is a little off topic but since it involves ChatScript I am hoping that maybe someone has done this.

Our bots/Virtual Patients are created in Unity/WEBGL which sends the user input to ChatScript and vice versa via a browser. When the students finish asking our Virtual Patient all of their questions,  ChatScript analyzes their encounter and creates a text file in TMP with their results. I am looking for a simple way to download that file from the ChatScript server to the student’s laptop via the browser (or any other way).

Maybe more of a Unity or HTML question than a ChatScript question but thanks in advance if you have any ideas for this.

Doug Danforth

 

 
  [ # 1 ]

Perhaps you use ^system() to copy/move the file to a directory that the web server supervises, and then send the url link to the user by sending <a href=“myserver.com/results/file.txt”>These are your results </href>

Stephen G.

 

 
  [ # 2 ]

Sometimes the simplest approach is best. Your solution should work just fine. Since our web server and CS server reside on the same machine, we can just have CS save the file in an appropriate directory and serve up the url.

Thanks!

Doug

 

 
  login or register to react