Dołącz do BOT Libre projekt open source na BotLibre.org
Bot Libre Forum

Can i use notepad to make aml script

w bobred wysłany May 4 2017, 11:31

Can i use notepad to make aml script?

What extension do i use for the notepad file?


by admin posted May 4 2017, 12:48
Yes, you can edit AIML in notepad or any text editor. Normally the .aiml extension is used for AIML files.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1523, today: 0, week: 3, month: 3

by bobred posted May 4 2017, 13:11

Is the aiml right?

 

<aiml>

       <category>

       <pattern>Is[an a] [cat dog horse kangaroo lion snake alligator crocodile cheetah rat shark squid bat lemur eagle condor eel] an animal<pattern>

<template>Yes it is.<template>

      <category>

<aiml> 


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1435, today: 0, week: 4, month: 4

by admin posted May 4 2017, 15:53
Nope, XML requires '/' on the end of tags.
<aiml> <category> <pattern>Is[an a] [cat dog horse kangaroo lion snake alligator crocodile cheetah rat shark squid bat lemur eagle condor eel] an animal</pattern> <template>Yes it is.</template> </category> </aiml>

Updated: May 4 2017, 15:53
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1405, today: 0, week: 2, month: 2

by bobred posted May 4 2017, 18:34

Could not make it work.I imported it as aiml script but it did not work.And i put it in a notepad file with the extension aiml.

 


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1513, today: 0, week: 3, month: 3

by admin posted May 5 2017, 10:42
The image you attached is not readable.
What error are you getting?

For learning how to use AIML see,
https://www.botlibre.com/forum-post?id=28654

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1545, today: 0, week: 3, month: 3

by bobred posted May 5 2017, 12:16

I made a screenshot of it.Is there anyway to enlarge it?


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1470, today: 0, week: 2, month: 2

by admin posted May 5 2017, 21:17
Attach it as a file to the post, or email it to [email protected]

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1465, today: 0, week: 3, month: 2

by bobred posted May 6 2017, 10:02

Here is the aiml and the error file.I am having trouble with my chatbot answering all the question when i import it as a chatlog for some reason.errors.txt

my animals.aiml.txt


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1611, today: 0, week: 3, month: 3

by admin posted May 8 2017, 9:14
Which bot are you importing the file into?

The file looks correct, as long as you import it as an AIML file, ensure you are importing it as AIML not response list, chat log , or Self.

Also, you have enabled learning for your bot, and have corrupted their response. Learning should be disabled, otherwise your bot will learn every response as a new response. You will need to reset your bot, create a new bot, or clean up its response from its Training & Chat Logs page.

See,
https://www.botlibre.com/forum-post?id=483549

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1650, today: 0, week: 2, month: 2

by bobred posted May 8 2017, 10:36

i imported the aiml script as a chat log.someone said i could do that. It has the extension aiml.You can browse the chatbot browse webpage of this websight.Then you will

my chatbot which is named blair.That is the one i am importing my aiml script into.I made about three or four that are public.I was using brainbot as a template because 

i wanted it's knowledge.I changed it's voice and avatar.It made it easier.I guess it is a mod. 

 


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1507, today: 0, week: 4, month: 4

by admin posted May 8 2017, 12:44
Sometimes it is better to import AIML as a script, from your bot's Scripts page.

You can also import it from the Training & Chat Logs page, but you must select "AIML" as the format.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1543, today: 0, week: 3, month: 3

by bobred posted May 9 2017, 14:05

That does not even work anymore.I cannot import it that way.Here is my file.my animals.aiml.txt


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1524, today: 0, week: 3, month: 3

by admin posted May 9 2017, 14:32
I fixed your bot,

https://www.botlibre.com/browse?id=16920810

To have this script and verified that it works.
You can see the script "aiml" under Scripts.

I also disabled learning in the bot, and deleted its garbage responses you had added because you had learning enabled.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1754, today: 0, week: 3, month: 3

by bobred posted May 9 2017, 16:56

Okay that works.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1581, today: 0, week: 3, month: 3

Identyfikator: 16920821
Wysłany: May 4 2017, 11:31
Odpowiedzi: 14
Widok: 2782, dziś: 1, tydzień: 12, miesiąc: 10
0 0 0.0/5