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

Hello, I need to extract what bot says to external program!!
 
 

Hello, I’m really bad at programming..

Totally newbie.. Help me plz


Here is what I want to do.

I want to make a web application using ChatScript
and need to extract what bot says to other program.


I have been allocated a EC2 cloud computer, and at there I launched Django.

In Django, I installed APACHE server and at there my python program is running.

In my program, I receive an input string from a user, then I want to give the string that user said to ChatBot.

When I give the input to chat bot, then the chatbot will find the rules and return answer.

How can I extract this answer and use it at my python program?

I also need to know before that, how to send the string user message to chat bot?


plz help me..
and give me an answer as easy as possible..

 

 
  [ # 1 ]

You have a web application, it comes with ChatScript. Look in the WEBINTERFACE folder.
Make sure you can get to this and it is running.
It will look like
http://SOME_IP_Address/BETTER
put in your name and message and make sure it runs.

Then, within your python script, use something like this:
https://www.w3schools.com/python/ref_requests_post.asp
reference the same page link above for the URL.

If the server is running local, use 127.0.0.1 as the IP address, as this is the local version of it.

This should be enough to get you going.
This works for sure, I have used it.
Good luck.

 

 

 
  login or register to react