PDA

View Full Version : vBTeachbot 2.1


Martin64
01-28-2003, 10:00 PM
vBTeachbot 2.1
(by Martin64, martin64@vbhackers.com)

[about]

This hack requires Tombot: (https://vborg.vbsupport.ru/showthread.php?threadid=48053).

Want to teach your Tombot? vBTeachbot adds an option in your Admin CP that will let you teach the bot directly - it will instantly be able to answer your questions.

[screenshots]

https://vborg.vbsupport.ru/attachment.php?s=&postid=347904
https://vborg.vbsupport.ru/attachment.php?s=&postid=352490
https://vborg.vbsupport.ru/attachment.php?s=&postid=352491

Martin64
01-29-2003, 06:11 PM
Teaching the bot (screenshot 1)

N9ne
01-29-2003, 06:18 PM
So after the mods submit the questions/answers in the ModCP, what happens next? Do admins get some notification?

Martin64
01-29-2003, 06:35 PM
Ugh, if you have downloaded the file already, please download it again, I had little permission error in teachbot.php earlier. :)

N9ne: No notification, but you'll see how many questions that have been added through the Mod CP.

Automated
01-29-2003, 07:01 PM
thanks a lot man :p

* Automated clicks install

Crinos
01-29-2003, 07:07 PM
Cool beans ... I'll try this one tonight :D

Martin64
01-29-2003, 07:11 PM
Thanks. :)

I'll re-write the teachbot.php file tonight (or tomorrow), it's not really that well-written. :p

Automated
01-29-2003, 07:24 PM
First Prob!

When you go to add to the DB usng the forum you have to add 5 at a time and this is not very good :( Can you mod it so that you only have to add 1 at a time but still leave 5 spaces there.

Thanks
Matthew

Martin64
01-29-2003, 07:27 PM
Yup, that was one of the things I was going to correct, I'll post a new teachbot.php file in a minute. :)

Martin64
01-29-2003, 07:33 PM
I've updated the zip file, just upload the new teachbot.php file if you have installed this already.

This fixes the problem of mods having to submit 5 questions and answers at a time, and also fixes the apostrophes problem.

Automated
01-29-2003, 07:34 PM
Thanks Mate!

Also how do i go about getting the info out of the table in the DB? I dont know MYsql :( Do i run a query or something.

Thanks :p

Matthew

Automated
01-29-2003, 07:36 PM
Once more thing (please tell me if i am annoying you) Would it be possiable to add a new page which would allow users to submit their entries to the bot but first they would need to be approved by Mods and then entered into the DB becuase that would make the bot learn a lot quicker if normal members could contribute!

Thanks
Matthew

N9ne
01-29-2003, 07:36 PM
So basically the mods can add directly into the database?

Maybe you could make it so they can submit questions, and in the ACP admins can read through and approve whichever ones they think should be approved, and the rest can be discarded?

Martin64
01-29-2003, 07:46 PM
Originally posted by Automated
Once more thing (please tell me if i am annoying you) Would it be possiable to add a new page which would allow users to submit their entries to the bot but first they would need to be approved by Mods and then entered into the DB becuase that would make the bot learn a lot quicker if normal members could contribute!

Thanks
Matthew

I suppose so, but that's too large of a project for me, I intended on doing a small release. :)

Maybe someone else can do that.

Originally posted by N9ne[QUOTE]

So basically the mods can add directly into the database?

Maybe you could make it so they can submit questions, and in the ACP admins can read through and approve whichever ones they think should be approved, and the rest can be discarded?

Yes, I'm working on something along those lines, but won't promise or release anything yet. This will have to do for now, sorry. I don't have much time at the moment. :(

Automated
01-29-2003, 07:54 PM
OK Martin. I think my last post sounded a little un grateful :( I really do appretiate this hack.

Thanks a lot, maybe some of the other hacks could setp in and lend a hand ;)

Matthew

Martin64
01-29-2003, 09:49 PM
Automated: Don't worry about it, I wasn't offended :p

I have updated the zip file with a new teachbot.php and new instructions.

The new release allows you to view the AIML directly from the Mod CP, and you can also empty the teachbot table from there.

:)

EDIT: If you're upgrading, just upload the teachbot.php file and re-do the changes to mod/index.php

:bunny:

Link14716
01-29-2003, 10:34 PM
What about adding the ability for an admin to just insert all of the data directly into the database without going through the trouble of adding it to the custom AIML file and running botloader.php?

NuclioN
01-29-2003, 10:40 PM
db error when a moderator clicks on the teach bot link in mod cp:

Invalid SQL: SELECT * FROM moderator WHERE userid=xx
mysql error: You have an error in your SQL syntax near ')' at line 1

maddenman
01-29-2003, 11:26 PM
Same thing as Nuclion, I installed it this evening and my mods cannot access it. I can, but the moderators cannot.

Erwin
01-30-2003, 02:21 AM
Looking forward to installing this after work. Good work, Martin! :)

Automated
01-30-2003, 09:01 AM
Originally posted by NuclioN
db error when a moderator clicks on the teach bot link in mod cp:

Invalid SQL: SELECT * FROM moderator WHERE userid=xx
mysql error: You have an error in your SQL syntax near ')' at line 1

has it been sorted out now?

I would like to install this also :D

Matthew

kmfdm_kid2000
01-30-2003, 10:01 AM
Can this be made Admin Only, or at least limited to Super Mods?? That shouldn't be a hard request...https://vborg.vbsupport.ru/

Martin64
01-30-2003, 12:10 PM
Originally posted by Link14716
What about adding the ability for an admin to just insert all of the data directly into the database without going through the trouble of adding it to the custom AIML file and running botloader.php?

Before I started working on this hack, I sat a whole day trying to teach the bot directly by inserting patterns, templates and whatnot to the database, but after that I came to the conclusion that the bot must be reloaded with the botloader or it won't understand the questions. Perhaps I missed something :)

I've fixed the permission problems and will post a new version right after I hit submit reply here. :)

Martin64
01-30-2003, 12:12 PM
New version released.

This new version add the options to the Admin CP as well. In the Admin CP, you have these options:

Teach bot
View AIML
Drop AIML

In the Mod CP, you have these options:

Teach bot
View AIML

Mickie D
01-30-2003, 12:22 PM
martin i so much appreciate the work done by you guys this bot brings a whole new level of fun, by you and the original auther !!

but is there anyway he can see peoples names and remember talking to them ???

ie he thinks everyone is the same person asking him a question :(

i.e
he knows that Mickie D created him (me lol)
but he does not know its me when i post to him :(

if not i understand how complex it is but just a thought, it would make alot more sense if he did, i can see he was made for a chat site... so i am thinking he must have routines to know on a chat site who people are :)

NuclioN
01-30-2003, 01:07 PM
The new version installed and when a moderator adds 5 questions it repeats the first one 5 times with the answers, writing the output over the other questions and answers it seems.

Also i test 1 question with the new botloader and custom.aiml. This add's 1 categorie alright but...when i repeat that question, the bot does not come with the answer from the custom aiml.

NuclioN
01-30-2003, 01:40 PM
And it would be great to put the random tag into it to make questions with multiple answers. ;)

Neo
01-30-2003, 03:25 PM
The joys of XML.

Dean C
01-30-2003, 05:59 PM
Sounds very nice Martin :)

- miSt

Martin64
01-30-2003, 07:02 PM
Ugh, I can't stop screwing up, can I? :)

I'll fix that and post a new zip asap.

Martin64
01-30-2003, 07:08 PM
New version posted, I decided to call it vBTeachbot 1.1 to avoid confusion, I'll slap a new version number on each new release from now on.

If you have previously installed this, just upload the teachbot.php files to their respective directories. Now it works, I promise :p

Martin64
01-31-2003, 12:56 AM
I have some very good news. I figured out how to teach the bot by directly inserting to the database! Hopefully I'll be able to release it tomorrow, I need to re-write the script first though. :)

NuclioN
01-31-2003, 05:24 AM
Good news Martin, awesome.

Automated
01-31-2003, 12:59 PM
Originally posted by Martin64
I have some very good news. I figured out how to teach the bot by directly inserting to the database! Hopefully I'll be able to release it tomorrow, I need to re-write the script first though. :)

OMG Martin "You da Man"

* Automated anxiously waits for release!

jbear6
01-31-2003, 01:33 PM
Originally posted by Automated


OMG Martin "You da Man"

Ditto that!

Martin64
01-31-2003, 04:38 PM
Took down the release for now, I'm going to put up the new version in a few minutes. :)

N9ne
01-31-2003, 04:49 PM
Do you have a changelog?

Martin64
01-31-2003, 05:04 PM
vBTeachbot 2.0 released!

CHANGELOG:

You are now able to directly inserting questions to the bot and it will instantly be able to reply to that question. You can add up to 7 word questions, but I recommend sticking to short ones, as it won't always reply to long ones.

INFO:

No matter if you have previously installed this hack, I recommend running these queries:

TRUNCATE TABLE conversationlog
TRUNCATE TABLE dmcache
TRUNCATE TABLE gossip
TRUNCATE TABLE thatindex
TRUNCATE TABLE thatstack

If you're upgrading, read the instructions, it's easy. :)

Enjoy. :D

Chris M
01-31-2003, 05:21 PM
Hmmm...

Intruiging idea;)

Perhaps I could help you with the Members adding questions and them being moderated bit;)

If you want to know how, PM me:) I'm willing to show you:)

Satan

Tim Wheatley
01-31-2003, 05:30 PM
Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: INSERT INTO patterns (bot, word, ordera, parent, isend) VALUES ('0','WHAT','2','1','0')
mysql error: Unknown column 'bot' in 'field list'

mysql error number: 1054

Date: Friday 31st of January 2003 08:16:12 PM
Script: http://forum.racesimcentral.com/admin/teachbot.php
Referer: http://forum.racesimcentral.com/admin/teachbot.php?action=teachbot5word


???

That field is definitely there!

Martin64
01-31-2003, 05:33 PM
Just a little update:

You can post vB Code, IMG code, smilies and html, and it will reply (it'll work in the forums it's allowed only, of course) :)

hellsatan: great idea, I'm sure people would want this, I'll send you a pm. :)

NuclioN
01-31-2003, 05:35 PM
Invalid SQL: INSERT INTO patterns (bot, word, ordera, parent, isend) VALUES ('0','WIE','2','1','0')
mysql error: Unknown column 'bot' in 'field list'

Tim Wheatley
01-31-2003, 05:36 PM
ah! BOT is a table on the DB, all the other ones (word, ordera, parent, isend) are within patterns.

Bot didn't exist within my patterns table.

I have the latest version of the bot installed... Perhaps you need an 'ADD TABLE' in your install file?

Tim Wheatley
01-31-2003, 05:41 PM
Ok, I added bot:

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: INSERT INTO patterns (bot, word, ordera, parent, isend) VALUES ('0','WHAT','2','1','0')
mysql error: Duplicate entry '0' for key 1

mysql error number: 1062

Date: Friday 31st of January 2003 08:34:01 PM
Script: http://forum.racesimcentral.com/admin/teachbot.php
Referer: http://forum.racesimcentral.com/admin/teachbot.php?action=teachbot5word


??

Martin64
01-31-2003, 05:42 PM
From db.sql in the Tombot 1.1 release:

#
# Table structure for table `patterns`
#

CREATE TABLE patterns (
bot tinyint(3) unsigned NOT NULL default '0',
id int(11) NOT NULL auto_increment,
word varchar(255) default NULL,
ordera tinyint(4) NOT NULL default '0',
parent int(11) NOT NULL default '0',
isend tinyint(4) NOT NULL default '0',
PRIMARY KEY (id),
KEY wordparent (parent,word),
KEY botid (bot)
) TYPE=MyISAM;

Please verify that you have run that query, if not, add the missing columns.

NuclioN
01-31-2003, 05:45 PM
This is what i can see:

CREATE TABLE patterns (
id int(11) NOT NULL default '0',
word varchar(255) default NULL,
ordera tinyint(4) NOT NULL default '0',
parent int(11) NOT NULL default '0',
isend tinyint(4) NOT NULL default '0',
PRIMARY KEY (id),
KEY id (id),
KEY wordparent (parent,word)
) TYPE=MyISAM;

Tim Wheatley
01-31-2003, 05:48 PM
Sorted, thanks. :)

I only had bot missing though?? Anyway, works now. :)

Tim Wheatley
01-31-2003, 05:50 PM
No it hasn't. Shouldn't bot be sending a value of 1, not 0?

Martin64
01-31-2003, 06:13 PM
No, the bot value should be 0. :)

If it's not working though, I really recommend re-installing the tables (actually, reinstalling Tombot 1.1 completely).

You're using the db.sql that came with Tombot 1.0 (non working version). The db.sql that comes with Tombot 1.1 (first working release) is different.

Nuclion: I give you the same advice for the same reason.

NuclioN
01-31-2003, 06:17 PM
Ok tnx, installing tables right now and the aiml files. Tombot 1.0 was working though but this hack is to handy to let it that way. ;)
Reporting back after install, stay tuned.

Tim Wheatley
01-31-2003, 06:20 PM
Um... I have a working bot, and I have a readme (still on the desktop) from 1.1... But I'll re-install, thanks for solving the problem, and making this hack... :)

Martin64
01-31-2003, 06:21 PM
Yeah, Tombot 1.0 was working, but the botloader wasn't. Anyway, the database structure is different anyway. :)

You might want to download the zip again, I did a small code change.

Please report back to me, it's very interesting to hear you results. :)

NuclioN
01-31-2003, 06:42 PM
Ok, first i've tried a 3 letter word and it works :) Very nice Martin. Maybe the srai and star words to in the future bit this is a tremendous step ahead. Alice is capable to execute javascripts as well and that makes the bot suitable for moderator with the proper instructions. :)

Martin64
01-31-2003, 06:53 PM
Originally posted by NuclioN
Ok, first i've tried a 3 letter word and it works :) Very nice Martin. Maybe the srai and star words to in the future bit this is a tremendous step ahead. Alice is capable to execute javascripts as well and that makes the bot suitable for moderator with the proper instructions. :)

Thanks :). And yes indeed, srai is very powerful and fundamental and would be nice to use.

This hack is basic, and as I said in one of my first posts in this thread, I never intended for it to become a big project. But seeing this is so much fun, it might just become that. Thanks again. :)

TheComputerGuy
01-31-2003, 08:36 PM
Great Hack..I love it!

NuclioN
02-01-2003, 10:15 AM
I've made a tombot2 with new tables and matches in the original files. It puts custom aiml in these new tables with a modified botloader etc. It search trough the new tables and works independent from the other bot(s) in the forum. Reason i've done this is to make a bot that is editable from scratch and the respons is a pre defined question with answer from the moderators or admin(s) or else a smiley.

I've found out that the input trough teachbot often interfers with the aiml that is already in the tables, so it simply doesn't show up because it is overruled. It was relative easy to do this, so maybe with the next update this new set of tables could be considered. ;)

Martin64
02-01-2003, 08:31 PM
That's a good idea, NuclioN :)

TheComputerGuy
02-01-2003, 08:39 PM
Yep, I noticed that as well. So I am currently adding some categories that may not be in there. Good idea NuclioN

Erwin
02-02-2003, 08:34 AM
Martin, check your PHP file. You've got a couple of mistakes with the word numbering - you forgot to update the numbers in the 6 word and 7 word variables. :)

Martin64
02-02-2003, 08:13 PM
Thanks Erwin, I'm being sloppy as always :)
I'll fix the file and upload the new zip in a minute...

Martin64
02-02-2003, 08:28 PM
Fixed, please download and replace your teachbot.php files in the admin and mod folders... :)

Sanni
02-03-2003, 03:19 AM
hmm does this hack work with the anna brain?

we replaced the alice brain with anna last night and now sometimes when we try to teach the bot via the teachbot hack it doesnt seem to work.

Automated
02-03-2003, 11:39 AM
I have installed the most recent version and i would just like to say Thanks to Martin becuase this is such an amazing hack.

Also, Is anyone working on the system where users (not mods/admin) and submit new q's + a's to the bot but require them to be validated by a mod or admin before they are added.

Great Hack guys :p

Matthew

Martin64
02-03-2003, 12:24 PM
Originally posted by Sanni
hmm does this hack work with the anna brain?

we replaced the alice brain with anna last night and now sometimes when we try to teach the bot via the teachbot hack it doesnt seem to work.

What kind of aiml you're using doesn't matter, if that's all you changed.

Automated: I was going to get hellsatan help me with that, but haven't started yet...

amykhar
02-03-2003, 04:05 PM
Everything installed correctly, but the bot doesn't seem to recognize what it is taught. Is anybody else having this problem?

Amy

Crazy Pete
02-03-2003, 04:26 PM
Same here, Amy. I'm trying to teach the answer to the question "Who rocks the world?" with the answer being Matt Nathanson, but I've added that question/answer repeatedly in there and it always replies with some other name, like Konrad Zuse or Charlie Parker or Linus Torvalds. :)

So yeah, I'd like to know why it isn't entirely working either, but I'd also like to replace its brain with Anna instead I think.

Automated
02-03-2003, 04:26 PM
Automated: I was going to get hellsatan help me with that, but haven't started yet...

That sounds great man. When do you Think that it will be ready? I am really looking forward to this! If there is anything i can do please let me know, although i cannot do much as i am not a PHP programmer.

I am also starting a new site that will be a whole forum devoted to increasing The Chatbot's conversationional Skills.

I will post more details when i have them :p

Matthew

Martin64
02-03-2003, 05:30 PM
Amy and Pete, try this: Empty the tables I listed earlier, before trying to teach the bot new questions. Also, skip the question mark in your questions. I hope that helps. Please be aware of that the bot will not always answer correctly to all questions, due to the fact that it's interfearing with old aiml, but I've found it to be able to answer most of them.

Crazy Pete
02-03-2003, 05:43 PM
Martin, I don't have any tables associated with your hack, as I only installed it as of v2.0. I also do leave out the question marks but it still appears to not answer correctly.

Most likely I'll just keep playing with it, though.

Martin64
02-03-2003, 06:52 PM
That has nothing to do with it, Crazy Pete, and besides, my hack doesn't add any tables.

The reason you should empty the tables is because otherwise the bot might just reply with things it's said earlier if that exact question has been asked earlier.

Let say you ask the bot this question:

"Who is Crazy Pete?"

The bot replies with a standard answer like this:

"I remember faces better than names"

Then you go and add this question through vBteachbot, and expect it to return the correct answer. So you ask the bot again:

"Who is Crazy Pete?"

The bot thinks...ohh...someone has asked this earlier, I'll use that line again:

"I remember faces better than names"

However, if you empty the old tables the bot will not remember what's been said to it, and it will return the correct answer (the answer you taught it)

Crinos
02-03-2003, 08:34 PM
I tried installing the new version (TB 1.1), and i get this error when I hit SUBMIT after filling out the words/answers:

Invalid SQL: SELECT MAX(id) as maxid FROM patterns
mysql error: Table 'ots_techforums.patterns' doesn't exist

mysql error number: 1146

Why is it looking for "patterns" in the forum database instead of the bot database? Or should I have installed the bot tables into the forum database?

Crinos
02-03-2003, 08:36 PM
Anyway, if I was supposed to install the bot tables into the forum database instead of a new database, what's the SQl command to copy the tables from one databse into a separate database, so that I don't have to re-run botloader again... TIA...

Crinos
02-03-2003, 09:28 PM
Or at least how I can make use of a separate bot database and update it via the vb control panel :D

NuclioN
02-03-2003, 10:40 PM
You can alter de sql to let it put new tables in the db. Then you have to go trough the different tombotfiles that refer to the original tables and replace every single reference to the new tables. After that you must alter the teachbot itself to do the same. If you want to let this new bot act as a second bot on your forum, then you have to copy your tomstalker.php and change the ttb and tcc to tbb2, tcc2 for example and stay alert on all instances of this. The second tomstalkerbot2.php under de include in both newreply.php and newthread.php and then make a dir alice2 for example on your server and place the files in that in the same way as in alice1. Then run botlader on a custom aiml as mentioned and you have a new bot that only does what you or your moderators ask it to do. ;)

ManagerJosh
02-04-2003, 12:32 AM
I noticed that this bot is completely sensitive to the question.

Example:

I taught a 3word to it.

WHO
IS
JOSH

I asked it:

soooooooooo Who is Josh?
it gave me a smilie


If i asked it:
Who is josh?
it replies back with the thing I taught it with

NuclioN
02-04-2003, 12:38 AM
Yes, if you want to let it respond in that way you have to use the * sign before 'who is josh' The * is not supported in this hack but who knows maybe later it will. You can do this with a custom aiml though. ;)

rrnolan
02-05-2003, 03:38 PM
I just installed this hack for the first time.

Something is really wrong with the latest zip file. I followed all of the directions and none of the features listed in this thread even appear. The only features that appear in the admin cp is

Teach the bot a question
3 word | 4 word | 5 word | 6 word | 7 word

No other bot admin functions mentioned in this thread appear in the admin cp

Any Ideas? are there portions of the install instructions missing? It sure seems like it?

Erwin
02-05-2003, 06:15 PM
Yes, it's meant to be like that. It works too. :)

Automated
02-06-2003, 08:23 AM
Is there not going to be any more development of this hack :(

NuclioN
02-06-2003, 01:27 PM
The only relative fast way to make a bot for VB that actually can respond on many forum items is to combine the effort to translate and/or rewrite the Alice aiml files. Each development group can then report and display their work to the benefit of mankind :p

I would like to start or join a group that is going to translate the aiml files into the Dutch language. If we start doing this together, this will decrease the time significant.

Martin64
02-06-2003, 03:08 PM
You might want to read this:

https://vborg.vbsupport.ru/showthread.php?postid=351085#post351085

:)

forby
02-08-2003, 02:04 AM
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 ?

Martin64
02-10-2003, 12:26 AM
Teaching the bot (screenshot 2)

Martin64
02-10-2003, 12:27 AM
Teaching the bot (screenshot 3)

Martin64
02-10-2003, 12:32 AM
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.

trilOByte
02-18-2003, 08:49 AM
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?

StarBuG
02-19-2003, 10:59 PM
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

Martin64
02-20-2003, 12:19 AM
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/documentation/aiml-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...

StarBuG
02-20-2003, 10:26 AM
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

trilOByte
02-21-2003, 10:48 AM
Originally posted by Martin64
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:


Yeah, gettin it now, thanks. Little slow on the uptake over here. ;) :D

I have found something interesting about the aiml file set though.

See here (https://vborg.vbsupport.ru/showthread.php?postid=356544#post356544)

Martin64
02-21-2003, 07:36 PM
Originally posted by trilOByte

I have found something interesting about the aiml file set though.

See here (https://vborg.vbsupport.ru/showthread.php?postid=356544#post356544)
Interesting, I might try it with my bot. :)

trilOByte
02-21-2003, 08:24 PM
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. :)

sparky2
02-26-2003, 01:26 AM
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)

Martin64
02-26-2003, 01:46 AM
Originally posted by sparky2
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)

Yeah, you could use random answers for a question, like this:

Question box: Who is Martin64
Answer box: <random><li>He is my creator.</li><li>He is a vbulletin.org hacker</li></random>

trilOByte
02-26-2003, 01:47 AM
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.

trilOByte
02-26-2003, 01:47 AM
snap

trilOByte
02-26-2003, 01:57 AM
Read this (http://www.pandorabots.com/pandora/pics/wallaceaimltutorial.html) for an outline of how to write some basic aiml.

gengar003
05-06-2003, 11:58 PM
will it only answer questions EXACTLY like the ones you enter, or will it respond to similar ones.

Intex
05-18-2003, 12:47 PM
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?

zajako
05-19-2003, 02:07 AM
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.

gmarik
06-09-2003, 12:56 PM
Does it works ok on 2.3?

snakes1100
06-25-2003, 01:51 AM
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

Gutspiller
07-18-2003, 08:21 PM
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.

Martin64
07-18-2003, 08:51 PM
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."

Gutspiller
07-19-2003, 09:35 AM
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"?

Gutspiller
07-19-2003, 10:01 AM
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:

Intex
07-19-2003, 03:42 PM
Martin64 - Thanks for the reply. But wasn't it you that done the FAQBot that was specifically written to repond to triggers?


Yesterday at 10:51 PM Martin64 said this in Post #104 (https://vborg.vbsupport.ru/showthread.php?postid=418782#post418782)
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."

snakes1100
07-28-2003, 02:39 PM
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.



07-18-03 at 05:51 PM Martin64 said this in Post #104 (https://vborg.vbsupport.ru/showthread.php?postid=418782#post418782)
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."

PixelFx
10-14-2003, 03:41 AM
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.