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

Python 3.x Implementation of AIML 2.0
 
 
  [ # 16 ]

Have you included the JQuery from /webchat/static/webchat.html. This makes the calls back to the server

You need the lines 21-50 included in the page that has the chat window

 

 
  [ # 17 ]

I’ve done that, But it still doesn’t reply back to me

 

 
  [ # 18 ]

If you run it using Chrome you can enable the developer console and you’ll see if there is an issue with the code or an error being thrown

 

 
  [ # 19 ]

I get this ” uncaught syntaxerror unexpected token <” error in the console. I got that on the 21’st line in webchat.html

 

 
  [ # 20 ]

What is the content of that line in your HTML? Also, do you have a URL that we can use to navigate to your chatbot’s page so that we can do some independent testing? This would probably help us to give you better suggestions as to what needs to be done to make it work.

 

 
  [ # 21 ]

I’ll attach the Webchat.html file. I get that “uncaught syntax error unexpected token <” at the first line of the script(line 21 on the webchat.html).

File Attachments
DOCTYPE_html_PUBLIC.docx  (File Size: 14KB - Downloads: 21)
 

 
  [ # 22 ]

I downloaded your attachment and replaced the original webchat.html file with it, and it works fine.

However in parallel I have been updating the webclient, specifically

1) Moved all y-bot javascript into a seperate js file
2) Updated XMLHttpRequest to confirm to async io standards
3) Added some minor html improvements

I’ve just pushed this to master, might be worth grabbing that and see if the embedded js was causing the problem

Keith

 

 
  [ # 23 ]

I downloaded program-y again, and tested the webchat.html…It still doesn’t process the user requests and stays on the same, as the last time. I tried running the y-bot-webchat.cmd on the background. It works good only when i try it out on localhost:5000 . Anyways, Thanks for your help..Really appreciate it

 

 
  [ # 24 ]

I tried compiling the chatsrv.py and got an error stating “ModuleNotFoundError: No module named ‘programy.clients’” Could this be the reason for my webpage error?

Image Attachments
Capture123.JPG
 

 
  [ # 25 ]

Keith,
I have got program-Y running on my Ubuntu cloud instance. I eventually want to switch to the web client but have currently used the console client with Y-Bot.
I want to develop an extension for information security. I already have an AIML file which is like an information security FAQ and some corresponding set files. How did you get the commonly asked questions for an industry? I am reading industry specific websites and am accumulating questions.
Where is template-Y? I have checked out program-Y from github but do not see this folder.

 

 
  [ # 26 ]

I have hosted my bot on the internet using ngrok.io. The bot accepts the general user details at the start..Once i refresh the page and try it again, it still remembers the old information in the previous session. How do i delete those temporary information thereby not causing trouble to the next user?

 

 
  [ # 27 ]
Pranav Lal - Dec 1, 2017:

Keith,
I have got program-Y running on my Ubuntu cloud instance. I eventually want to switch to the web client but have currently used the console client with Y-Bot.
I want to develop an extension for information security. I already have an AIML file which is like an information security FAQ and some corresponding set files. How did you get the commonly asked questions for an industry? I am reading industry specific websites and am accumulating questions.
Where is template-Y? I have checked out program-Y from github but do not see this folder.

Template-Y is another repo https://github.com/keiffster/template-y and provides a empty template to create your own bots from

I created industry specific question because I’ve worked in them and know what customers ask. I would start with the information you want to return to the users and create basic grammars that return it, then start creating grammars that provide as wide a range of questions which srai back to those info grammars, then just keep building it out from there

K

 

 
  [ # 28 ]
Vishal S - Dec 6, 2017:

I have hosted my bot on the internet using ngrok.io. The bot accepts the general user details at the start..Once i refresh the page and try it again, it still remembers the old information in the previous session. How do i delete those temporary information thereby not causing trouble to the next user?

Refreshing the page does not terminate the user session, the reason for this is that the bot users the client Id you pass to ensure info retained for the current user

If you want to remove temp data then you need to pass a different client Id during each session, but that defeats the purpose of persistent data

I would modify the web chat client and pass a unique client Id for each client connection

K

 

 
  [ # 29 ]

Where exactly do i change that?

 

 
  [ # 30 ]

Hi Keith,
Many thanks for your answers. I have been looking at the folder structure of template-Y. It appears to be almost identical to other bots like super. I already have this structure in place. If I am right, all I will have to do is to point the bot to that folder. Am I right about the folder structure? I have folders like aiml, sets, maps etc.

 

 < 1 2 3 > 
2 of 3
 
  login or register to react