![]() |
|
great hack ,but is this only working with the use of the vb DB ,or can i use this with a different DB like the one where the bot is running what is not the same like the vb DB and if ,how ?
|
Teaching the bot (screenshot 2)
|
Teaching the bot (screenshot 3)
|
Version 2.1 released:
I scrapped the "directly inserting to database idea", it didn't work properly (pattern interfearing), so I dediced to go back to the AIML writing idea. This new version lets you write AIML directly from your Admin CP, that you easily add to your current custom.aiml file. The good news is that you know exactly what you've taught the bot, and also, in case you need to empty the pattern/templates tables, you have an aiml file you can easily reload. Download the zip file for more information. |
Martin, sorry if this has been asked before and I've missed it, but does this hack support wildcards?
I mean if you input a statement like... "I love classical music, there is just nothing to compare with it" and you want the bot to pick up on this and answer something like... "well, if you got your classical head out your but and listened to something else..." You would be dependant on the poster entering the exact syntax in order to prompt a response. If you could specify wildcards, like "#" to mean anything, then input... "# love # classical misic #" Then the bot would be triggered by those three words and any combination of other words in place of the "#". Does this make sense? |
Maybe another way to teach the bot "directly" would be not to write the questions into the output.txt instead you should directly write it into "custom.aiml"
If you do it that way people don?t have to edit custom.aiml manualy and it would make it much more "professional" :D What do you think!? StarBuG |
trilOByte: This hack works just like you would write the AIML by hand, only, this makes it easier and faster, and also, you can get your moderators to help you. :)
The only thing that limits how you're able to teach the bot is how AIML works, and I can't say I'm an expert at that. I recommend you have a look at the following pages to learn more: http://www.alicebot.org/documentatio...reference.html http://www.alicebot.org/documentation/aiml-primer.html StarBuG: Yeah, that would be great if it could be done, but we're using fopen to add extra XML at the end of the file every time we enter a new question, and an AIML file requires this tag at the end of it: </aiml> I don't know how we could add extra XML to an AIML file and still keep the closing </aiml> tag... |
Im no coder myself but could it be done this way:
1) delete the </aiml> tag in the aiml file 2) enter the new questions with the new </aiml> tag at the end? That should be possible I think! Greetings Star |
Quote:
I have found something interesting about the aiml file set though. See here |
Quote:
|
Be very interested to hear what you think - It would seem that those extra files make the bot more knowledgeable, but not particularly smarter - if that makes sense. :)
|
Can a "question" have multiple answers?
In other words, if you enter a question twice, with a different answer each time, are there 2 possible answers (chosen later at random) or will the second of the two answers entered overwrite the first? (When I looked at the AIML files, it seemed like some of the trigger phrases had multiple available/matching responses) |
Quote:
Question box: Who is Martin64 Answer box: <random><li>He is my creator.</li><li>He is a vbulletin.org hacker</li></random> |
You can define multiple answers by using <li>**</li> tags and then listing all the different answes. The bot will randomly select one. Dont write out the same question over and over as the bot will either just pick up the first, or fall over alltogether.
If you want to get it to work well, then spend a little time working out how aiml works. Defining atomic subjects and <srai> tags. |
snap
|
Read this for an outline of how to write some basic aiml.
|
will it only answer questions EXACTLY like the ones you enter, or will it respond to similar ones.
|
Martin64 - I've installed this and everything appears to be in order, but the bot doesn't seem to recognise the new commands I've entered. I've run the botload file and it says it inserted 1 new category. Any ideas?
I'd like to incorporate simple commands like: !help !commands etc. I added these as questions as they appear above, i.e. !help as the question. Isn't this possible? |
gah, i thought it was updated to automaticaly add the things you add into the bot's mind... Ill have to make this hack better for you guys, so that it makes it when you hit submit it instantly learns it.
|
Does it works ok on 2.3?
|
Help
I'm not a newbie to hacking a forum & php coding by any means, followed all instructions and have tried all other types ofthings to fix this issue with the teachbot form in the admin, i thought the form was wrong, but even created a new form and a no go, chmod'd everything, i have tried it all. Has anybody gotten this, everytime i submit the Q & A i getthis? "Please fill out both the question and the answer!" TIA snakes1100 |
Can you recheck your instructions file? It says
"2. Upload the contents of the admin folder in this zip file to your admin directory. CHMOD admin/teachbot/output.txt in this zip file to 777. 3. Add your questions and answers through your Admin CP; click "Add a question" below "Teach the bot a question". Add your question and answer and click submit." Where's the lines that say how the stuff got into the admin cp that you are talking about? In the instructions it doesn't mention creating any "Add a question" button or anything. How are we suppose to click them if we haven't created them? Please help. |
Sorry about not keeping you updated on this hack, since vB3 Beta was released I don't offer support for my hacks anymore.
gengar003: You can use * and different patterns, I'm no expert at this. Look at the link trilOByte posted. Intex: Not sure if it works with !triggers. Appearantly not. zajako: Good luck, you need it. Trust me, I've tried and it's not as easy as it seems. :) gmarik: Yes it does. snakes1100: hmm....well did you fill out both the question and the answer? Gutspiller: First do all the file changes, then continue with step 2. Step one says: "Do the file changes below and also, create the new aiml file." |
If I want to add more aiml files I find around the net do I simply place them in the alice/aiml folder and run alice/src/admin/botload.php and let it run through the new aiml files? Is that all it takes? If there is anything else involved? What if two different aiml files are trying to answer the same question with different responses? Do they get added together?
Like if one aiml file says to answer a "Hello" with a "Hi. How are you doing?" but the other aiml file wants to just say "hello" back. Will the system automatically put both lines in so that it will then use one or the other when somebody says "Hello"? |
Also... How come I can't add more than 1 question at a time? After I added one question it showed the correct output, but now when I try to add my 2nd question/answer it wont show it. Tell me this is a bug? I'm not uploading an aiml file everytime I want to add a single new question. :disappointed:
|
Martin64 - Thanks for the reply. But wasn't it you that done the FAQBot that was specifically written to repond to triggers?
Quote:
|
Martin
I did fill out both the Q & A of the form and stated it in my post, what do you suggest for this issue? Previous post is on page 7 if you need a refresher to my Q. Quote:
|
Please Let me know if you do any more work on this, I'm working on a new project in aiml :) or learning to code it better.
|
All times are GMT. The time now is 11:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|