Did you know Bot Libre also provides free hosted issue tracking for your own website or mobile app?
Bot Libre Forum

Can i use notepad to make aml script

by bobred posted 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: 1534, today: 0, week: 1, month: 14

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: 1446, today: 0, week: 0, month: 15

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: 1418, today: 0, week: 3, month: 15

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: 1525, today: 0, week: 0, month: 15

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: 1555, today: 0, week: 1, month: 13

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: 1483, today: 1, week: 3, month: 15

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: 1478, today: 1, week: 3, month: 15

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: 1626, today: 1, week: 2, month: 18

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: 1675, today: 0, week: 3, month: 27

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: 1517, today: 0, week: 0, month: 14

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: 1554, today: 0, week: 1, month: 14

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: 1537, today: 0, week: 4, month: 16

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: 1766, today: 1, week: 1, month: 15

by bobred posted May 9 2017, 16:56

Okay that works.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1600, today: 1, week: 1, month: 22

Id: 16920821
Posted: May 4 2017, 11:31
Replies: 14
Views: 2853, today: 3, week: 19, month: 81
0 0 0.0/5