|
Posted: Nov 16, 2017 |
[ # 16 ]
|
|
Experienced member
Total posts: 36
Joined: Nov 24, 2016
|
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
|
|
|
|
|
Posted: Nov 16, 2017 |
[ # 17 ]
|
|
Member
Total posts: 14
Joined: Sep 17, 2017
|
I’ve done that, But it still doesn’t reply back to me
|
|
|
|
|
Posted: Nov 16, 2017 |
[ # 18 ]
|
|
Experienced member
Total posts: 36
Joined: Nov 24, 2016
|
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
|
|
|
|
|
Posted: Nov 16, 2017 |
[ # 19 ]
|
|
Member
Total posts: 14
Joined: Sep 17, 2017
|
I get this ” uncaught syntaxerror unexpected token <” error in the console. I got that on the 21’st line in webchat.html
|
|
|
|
|
Posted: Nov 17, 2017 |
[ # 20 ]
|
|
Administrator
Total posts: 3111
Joined: Jun 14, 2010
|
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.
|
|
|
|
|
Posted: Nov 17, 2017 |
[ # 21 ]
|
|
Member
Total posts: 14
Joined: Sep 17, 2017
|
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
|
|
|
|
|
Posted: Nov 17, 2017 |
[ # 22 ]
|
|
Experienced member
Total posts: 36
Joined: Nov 24, 2016
|
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
|
|
|
|
|
Posted: Nov 17, 2017 |
[ # 23 ]
|
|
Member
Total posts: 14
Joined: Sep 17, 2017
|
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
|
|
|
|
|
Posted: Nov 22, 2017 |
[ # 24 ]
|
|
Member
Total posts: 14
Joined: Sep 17, 2017
|
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
Click thumbnail to see full-size image
|
|
|
|
|
Posted: Dec 1, 2017 |
[ # 25 ]
|
|
Experienced member
Total posts: 51
Joined: Sep 13, 2016
|
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.
|
|
|
|
|
Posted: Dec 6, 2017 |
[ # 26 ]
|
|
Member
Total posts: 14
Joined: Sep 17, 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?
|
|
|
|
|
Posted: Dec 6, 2017 |
[ # 27 ]
|
|
Experienced member
Total posts: 36
Joined: Nov 24, 2016
|
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
|
|
|
|
|
Posted: Dec 6, 2017 |
[ # 28 ]
|
|
Experienced member
Total posts: 36
Joined: Nov 24, 2016
|
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
|
|
|
|
|
Posted: Dec 6, 2017 |
[ # 29 ]
|
|
Member
Total posts: 14
Joined: Sep 17, 2017
|
Where exactly do i change that?
|
|
|
|
|
Posted: Dec 7, 2017 |
[ # 30 ]
|
|
Experienced member
Total posts: 51
Joined: Sep 13, 2016
|
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.
|
|
|
|