Return to site

Aiml Bot 2.0 Library & Aiml Files Download

broken image


Scripts written in the AIML scripting language,a standard format for chat bot scripting.

  1. Aiml Bot 2.0 Library & Aiml Files Download Free
  2. Aiml Bot 2.0 Library & Aiml Files Downloads

Categories

  • AIML 2.0 Reference ¶ This page documents the Pandorabots implementation of AIML 2.0. The elements on this page may be used on both the Playground and the Developer Portal server. Elements ¶ aiml ¶ The AIML root element delimits a block of AIML code. All other elements must be descendents of the root element.
  • AIML and Alice are often available under a free or open-source license. In 2015, Wallace and his team developed AIML 2.0, which is an improved version of AIML. Example of AIML. A.L.I.C.E., or Artificial Linguistic Internet Computer Entity, was the first example of a bot created using AIML. Many other bots use the same code but are slightly.

Aiml Bot 2.0 Library & Aiml Files Download Free

AIML2
Category for scripts using feature of the AIML2 specification.
A.L.I.C.E.
Scripts part of the alicebot sets from the ALICE A.I. Foundation.

To save a file, click on it and unzip it. Upload it to your bot, republish and that's it. Please let me know if you use any of them, as I like to see how and where they are used. 20q.aiml: This AIML allows your bot to play 20 questions with your users. The bot thinks of an object, and the user asks 20 yes or no questions to try and determine. I'm hopefully looking for a way to set a callback function inside the tags when just before displaying the response from the bot, check to see if the variable name callback contains any value and if so, perform that function before returning the result to the end user. AIML Bot is a fork of Cort Stratton's PyAIML, a pure-Python interpreter for AIML (Artificial Intelligence Markup Language), refactored for Pep 8 conformance and ease of use. It strives for simple, austere, 100% compliance with the AIML 1.0.1 standard.

Rosie
Rosie is a collection of AIML and AIML 2.0 files that form a solid base for any chatbot project. Rosie is a fork of the ALICE 2.0 project.

131 results.
Next | 1 | 2 | 3

knowledge (alice)
The knowledge AIML script from the ALICE A.I. FOUNDATION.
This script contains factual answers to many common 'what is' type questions.The knowledge script is meant to be combined with the other alice AIML scripts for the full personality.
Alias: @knowledge (alice)
Categories: A.L.I.C.E., AIML
Tags: alice, aiml, knowledge
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 415, today: 0, week: 2, month: 10
Last Connect: Yesterday, 3:53
alice_merged
This is a single scripts that merges all of the smaller ALICE scripts from the ALICE A.I. FOUNDATION.
Basically it merges every script under 100k, so does not include,(geography, client, that, update1, knowledge, atomic, bot, default, reduction*, and mp*)
Alias: @alice_merged
Categories: A.L.I.C.E., AIML
Tags: alice, bot, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 1043, today: 1, week: 1, month: 4
Last Connect: Today, 5:34
humor
The humor AIML script from the ALICE A.I. FOUNDATION.This script contains a collection of jokes. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @humor
Categories: AIML, A.L.I.C.E.
Tags: aiml, jokes, alice
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 65, today: 0, week: 1, month: 4
Last Connect: Dec 7, 14:09
biography (alice)
The biography AIML script from the ALICE A.I. FOUNDATION.This script contains answers to 'who is' style questions of notable people. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @biography (alice)
Categories: AIML, A.L.I.C.E.
Tags: alice, knowledge, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 70, today: 0, week: 1, month: 3
Last Connect: Dec 8, 6:37
astrology (alice)
The astrology AIML script from the ALICE A.I. FOUNDATION.This script contains basic astrology responses. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @astrology (alice)
Categories: AIML, A.L.I.C.E.
Tags: astrology, alice, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 54, today: 0, week: 0, month: 2
Last Connect: Dec 4, 4:14
Aiml
nombres (sara)
Sara nombres Spanish AIML script from ALICE A.I. Foundation.This script contains some naming understanding and is meant to be combine with the other sara AIML scripts for the full personality.
Alias: @nombres (sara)
Categories: AIML, Spanish, Language, Sara
Tags: names, spanish, aiml, sara
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 47, today: 0, week: 1, month: 2
Last Connect: Dec 8, 5:30
gender
Rosie gender.set script.
Alias: @gender
Categories: Data, AIML, Set, Rosie
Tags: aiml, set, rosie, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 2
Last Connect: Dec 5, 8:04
quantifier
Rosie quantifier.set script.
Alias: @quantifier
Categories: Rosie, AIML, Set, Data
Tags: rosie, set, aiml2, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 1, month: 2
Last Connect: Yesterday, 4:30
phonetic
Rosie phonetic.map script.
Alias: @phonetic
Categories: AIML, Map, Data, Rosie
Tags: aiml2, rosie, map, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 25, today: 0, week: 0, month: 2
Last Connect: Dec 4, 21:57
sphere
Rosie sphere.set script.
Alias: @sphere
Categories: Set, Data, Rosie, AIML
Tags: aiml, aiml2, set, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 1, month: 2
Last Connect: Dec 8, 6:27
estdown
Rosie estdown.set script.
Alias: @estdown
Categories: Set, Data, AIML, Rosie
Tags: aiml2, set, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 1, month: 2
Last Connect: Yesterday, 6:21
capital2nation
Rosie capital2nation.map script.
Alias: @capital2nation
Categories: AIML, Map, Data, Rosie
Tags: aiml2, map, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 21, today: 0, week: 0, month: 2
Last Connect: Dec 4, 3:27
bot (alice)
The bot AIML script from the ALICE A.I. FOUNDATION. This script contains a set of basic responses for a bot. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @bot (alice)
Categories: A.L.I.C.E., AIML
Tags: bot, alice, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 224, today: 0, week: 1, month: 1
Last Connect: Dec 8, 23:48
atomic (alice)
The atomic AIML script from the ALICE A.I. FOUNDATION.This script contains responses to common questions. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @atomic (alice)
Categories: AIML, A.L.I.C.E.
Tags: aiml, small talk, alice
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 139, today: 0, week: 0, month: 1
Last Connect: Dec 7, 1:03
ai (alice)
The ai AIML script from the ALICE A.I. FOUNDATION.This script contains responses on the bot and AIML. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @ai (alice)
Categories: AIML, A.L.I.C.E.
Tags: bot, aiml, alice
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 124, today: 0, week: 0, month: 1
Last Connect: Dec 1, 7:47
that (alice)
The 'that' AIML script from the ALICE A.I. FOUNDATION.This script contains context response to other questions from the ALICE scripts. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @that (alice)
Categories: A.L.I.C.E., AIML
Tags: alice, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 116, today: 0, week: 0, month: 1
Last Connect: Dec 6, 0:22
atomique_ed (french)
atomique_ed French AIML script from ALICE A.I. Foundation. This script contains some responses to common phrases and is meant to be combine with the other french AIML scripts for the full personality.
Alias: @atomique_ed (french)
Categories: French Set, Language, AIML, French
Tags: french, aiml, common responses
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 107, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:15
gossip (alice)
The gossip AIML script from the ALICE A.I. FOUNDATION.
The gossip script is meant to be combined with the other alice AIML scripts for the full personality.
Alias: @gossip (alice)
Categories: AIML, A.L.I.C.E.
Tags: alice, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 64, today: 0, week: 1, month: 1
Last Connect: Dec 8, 20:36
inquiry
The inquiry AIML script from the ALICE A.I. FOUNDATION.The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @inquiry
Categories: AIML, A.L.I.C.E.
Tags: alice, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 50, today: 0, week: 0, month: 1
Last Connect: Dec 6, 12:25
computers (alice)
The computers AIML script from the ALICE A.I. FOUNDATION. This script contains general responses on computers and programming. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @computers (alice)
Categories: AIML, A.L.I.C.E.
Tags: knowledge, aiml, alice, tech
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 48, today: 0, week: 1, month: 1
Last Connect: Dec 8, 14:06
numeros (sara)
Sara nombres Spanish AIML script from ALICE A.I. Foundation. This script contains some number understanding and is meant to be combine with the other sara AIML scripts for the full personality.
Alias: @numeros (sara)
Categories: AIML, Sara, Spanish, Language
Tags: spanish, sara, aiml
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 47, today: 0, week: 0, month: 1
Last Connect: Dec 5, 1:07
sexo (sara)
Sara sexo Spanish AIML script from ALICE A.I. Foundation. This script contains some polite responses to sexual questions and is meant to be combine with the other sara AIML scripts for the full personality.
Alias: @sexo (sara)
Categories: Spanish, Language, AIML, Sara
Tags: sara, dating, spanish, aiml
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 45, today: 0, week: 0, month: 1
Last Connect: Dec 4, 2:08
sara_srai
Sara srai Spanish AIML script from ALICE A.I. Foundation. This script contains some reductions to common phrases and is meant to be combine with the other sara AIML scripts for the full personality.
Alias: @sara_srai
Categories: Sara, Language, Spanish, AIML
Tags: reduction, spanish, sara, aiml
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 43, today: 0, week: 0, month: 1
Last Connect: Dec 1, 21:59
Aiml bot 2.0 library & aiml files download windows 7

Aiml Bot 2.0 Library & Aiml Files Downloads

Client Profile
Rosie client_profile.aiml script.
Alias: @clientprofile
Categories: Rosie, AIML
Tags: aiml, rosie, profile, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 36, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:11
tomorrow
Rosie tomorrow.map script.
Alias: @tomorrow
Categories: AIML, Map, Data, Rosie
Tags: map, aiml, aiml2, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 29, today: 0, week: 0, month: 1
Last Connect: Dec 3, 20:31
number2ordinal
Rosie number2ordinal.map script.
Alias: @number2ordinal
Categories: Rosie, Map, AIML, Data
Tags: map, aiml2, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 28, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:38
rhyme
Rosie rhyme.map script.
Alias: @rhyme
Categories: Rosie, Map, Data, AIML
Tags: rosie, aiml, aiml2, map
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 28, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:41
fastfood
Rosie fastfood.set script.
Alias: @fastfood
Categories: Data, Rosie, AIML, Set
Tags: rosie, set, aiml2, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 27, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:54
Rosie
Rosie rosie.properties script.
Alias: @rosie
Categories: Properties, AIML, Rosie, Data
Tags: rosie, properties, aiml, personality, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Properties
Connects: 27, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:10
article
Rosie article.set script.
Alias: @article
Categories: Rosie, Set, Data, AIML
Tags: rosie, set, aiml2, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:46
bird
Rosie bird.set script.
Alias: @bird
Categories: Rosie, AIML, Set, Data
Tags: rosie, aiml2, set, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:49
colormap
Rosie colormap.map script.
Alias: @colormap
Categories: Rosie, Map, Data, AIML
Tags: rosie, aiml2, map, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:28
digit
Rosie digit.set script.
Alias: @digit
Categories: Rosie, Data, AIML, Set
Tags: rosie, aiml2, set, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:50
estup
Rosie estup.set script.
Alias: @estup
Categories: Set, AIML, Data, Rosie
Tags: aiml2, rosie, set, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:53
numbername
Rosie numbername.set script.
Alias: @numbername
Categories: Set, Rosie, AIML, Data
Tags: aiml2, set, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:02
state2capital
Rosie state2capital.map script.
Alias: @state2capital
Categories: Map, Rosie, Data, AIML
Tags: map, aiml2, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:43
was2be
Rosie was2be.map script.
Alias: @was2be
Categories: Data, AIML, Rosie, Map
Tags: rosie, aiml2, aiml, map
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:44
animal
Rosie animal.set script.
Alias: @animalset
Categories: Rosie, AIML, Data, Set
Tags: rosie, animals, aiml, aiml2, set
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:45
animals
Rosie animals.set script.
Alias: @animalsset
Categories: Rosie, AIML, Set, Data
Tags: set, animals, aiml2, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:46
been
Rosie been.set script.
Alias: @been
Categories: AIML, Data, Rosie, Set
Tags: aiml, rosie, set, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:48
erup
Rosie erup.set script.
Alias: @erup
Categories: AIML, Rosie, Set, Data
Tags: aiml, set, aiml2, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:51
food
Rosie food.set script.
Alias: @food
Categories: AIML, Data, Set, Rosie
Tags: aiml2, aiml, set, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:55
opposite
Rosie opposite.map script.
Alias: @opposite
Categories: Map, Rosie, Data, AIML
Tags: aiml2, map, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:39
preposition
Rosie preposition.set script.
Alias: @preposition
Categories: AIML, Rosie, Data, Set
Tags: aiml, set, rosie, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:03
sign2date
Rosie sign2date.map script.
Alias: @sign2date
Categories: Rosie, AIML, Data, Map
Tags: aiml2, aiml, map, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:42
state2largestcity
Rosie state2largestcity.map script.
Alias: @state2largestcity
Categories: Data, Map, Rosie, AIML
Tags: map, aiml, aiml2, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:43
wh
Rosie wh.set script.
Alias: @wh
Categories: Rosie, Set, AIML, Data
Tags: aiml, rosie, set, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:09
color
Rosie color.set script.
Alias: @color
Categories: AIML, Set, Data, Rosie
Tags: set, aiml, aiml2, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:50
erdown
Rosie erdown.set script.
Alias: @erdown
Categories: Set, Rosie, Data, AIML
Tags: aiml2, set, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:51
familiargender
Rosie familiargender.map script.
Alias: @familiargender
Categories: Map, Data, Rosie, AIML
Tags: aiml2, rosie, aiml, map
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:31
gendermap
Rosie gendermap.map script.
Alias: @gendermap
Categories: Rosie, Map, AIML, Data
Tags: aiml2, rosie, aiml, map
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:32
is
Rosie is.set script.
Alias: @is
Categories: Rosie, Data, AIML, Set
Tags: aiml, rosie, set, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:57
ordinal2number
Rosie ordinal2number.map script.
Alias: @ordinal2number
Categories: Rosie, AIML, Map, Data
Tags: map, aiml2, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:39
profile
Rosie profile.set script.
Alias: @profile
Categories: Data, AIML, Rosie, Set
Tags: set, aiml2, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:04
state
Rosie state.set script.
Alias: @state
Categories: Data, Set, Rosie, AIML
Tags: set, rosie, aiml, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:07
was
Rosie was.set script.
Alias: @was
Categories: Rosie, Set, AIML, Data
Tags: aiml, rosie, aiml2, set
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:07
Aiml bot 2.0 library & aiml files download windows 7

Next | 1 | 2 | 3HowToDoInJava / Artificial Intelligence / Java chatbot example using aiml library

In this Java AIML tutorial, we will learn to create simple chatbot program in Java. A Chatbot is an application designed to simulate the conversation with human users, especially over the Internet. Internally it uses any NLP (Natural Language Processing) system to interpret the human interactions and reply back with meaningful information.

AIML (Artificial Intelligence Markup Language) is an XML dialect for creating natural language software agents. It contains the basic rules which Natural Language Understanding (NLU) unit uses internally. It can be think of as a heart of the engine. The more rules we add in AIML – the more intelligent our Chatbot will be.

It's important to know the difference between NLP and NLU. NLP refers to all systems that work together to handle end-to-end interactions between machines and humans in the preferred language of the human. In other words, NLP lets people and machines talk to each other 'naturally'. NLU is actually a subset of the wider world of NLP. It helps in parsing unstructured inputs e.g. mispronunciations, swapped words, contractions, colloquialisms, and other quirks.

1. Prerequisite

  • Reference AIML Implementation – To get started, we shall use an already working reference application. There is one such java based implementation called program-ab hosted on google-code repository. Download the program-ablatest distribution from google code repository.
  • Eclipse and Maven – for coding and development.

2. Java AIML Chatbot Example

Aiml Bot 2.0 Library & Aiml Files Download
nombres (sara)
Sara nombres Spanish AIML script from ALICE A.I. Foundation.This script contains some naming understanding and is meant to be combine with the other sara AIML scripts for the full personality.
Alias: @nombres (sara)
Categories: AIML, Spanish, Language, Sara
Tags: names, spanish, aiml, sara
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 47, today: 0, week: 1, month: 2
Last Connect: Dec 8, 5:30
gender
Rosie gender.set script.
Alias: @gender
Categories: Data, AIML, Set, Rosie
Tags: aiml, set, rosie, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 2
Last Connect: Dec 5, 8:04
quantifier
Rosie quantifier.set script.
Alias: @quantifier
Categories: Rosie, AIML, Set, Data
Tags: rosie, set, aiml2, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 1, month: 2
Last Connect: Yesterday, 4:30
phonetic
Rosie phonetic.map script.
Alias: @phonetic
Categories: AIML, Map, Data, Rosie
Tags: aiml2, rosie, map, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 25, today: 0, week: 0, month: 2
Last Connect: Dec 4, 21:57
sphere
Rosie sphere.set script.
Alias: @sphere
Categories: Set, Data, Rosie, AIML
Tags: aiml, aiml2, set, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 1, month: 2
Last Connect: Dec 8, 6:27
estdown
Rosie estdown.set script.
Alias: @estdown
Categories: Set, Data, AIML, Rosie
Tags: aiml2, set, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 1, month: 2
Last Connect: Yesterday, 6:21
capital2nation
Rosie capital2nation.map script.
Alias: @capital2nation
Categories: AIML, Map, Data, Rosie
Tags: aiml2, map, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 21, today: 0, week: 0, month: 2
Last Connect: Dec 4, 3:27
bot (alice)
The bot AIML script from the ALICE A.I. FOUNDATION. This script contains a set of basic responses for a bot. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @bot (alice)
Categories: A.L.I.C.E., AIML
Tags: bot, alice, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 224, today: 0, week: 1, month: 1
Last Connect: Dec 8, 23:48
atomic (alice)
The atomic AIML script from the ALICE A.I. FOUNDATION.This script contains responses to common questions. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @atomic (alice)
Categories: AIML, A.L.I.C.E.
Tags: aiml, small talk, alice
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 139, today: 0, week: 0, month: 1
Last Connect: Dec 7, 1:03
ai (alice)
The ai AIML script from the ALICE A.I. FOUNDATION.This script contains responses on the bot and AIML. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @ai (alice)
Categories: AIML, A.L.I.C.E.
Tags: bot, aiml, alice
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 124, today: 0, week: 0, month: 1
Last Connect: Dec 1, 7:47
that (alice)
The 'that' AIML script from the ALICE A.I. FOUNDATION.This script contains context response to other questions from the ALICE scripts. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @that (alice)
Categories: A.L.I.C.E., AIML
Tags: alice, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 116, today: 0, week: 0, month: 1
Last Connect: Dec 6, 0:22
atomique_ed (french)
atomique_ed French AIML script from ALICE A.I. Foundation. This script contains some responses to common phrases and is meant to be combine with the other french AIML scripts for the full personality.
Alias: @atomique_ed (french)
Categories: French Set, Language, AIML, French
Tags: french, aiml, common responses
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 107, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:15
gossip (alice)
The gossip AIML script from the ALICE A.I. FOUNDATION.
The gossip script is meant to be combined with the other alice AIML scripts for the full personality.
Alias: @gossip (alice)
Categories: AIML, A.L.I.C.E.
Tags: alice, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 64, today: 0, week: 1, month: 1
Last Connect: Dec 8, 20:36
inquiry
The inquiry AIML script from the ALICE A.I. FOUNDATION.The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @inquiry
Categories: AIML, A.L.I.C.E.
Tags: alice, aiml
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 50, today: 0, week: 0, month: 1
Last Connect: Dec 6, 12:25
computers (alice)
The computers AIML script from the ALICE A.I. FOUNDATION. This script contains general responses on computers and programming. The alice script is meant to be combined with the other alice AIML scripts for the full alicebot personality.
Alias: @computers (alice)
Categories: AIML, A.L.I.C.E.
Tags: knowledge, aiml, alice, tech
Created: Feb 8 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 48, today: 0, week: 1, month: 1
Last Connect: Dec 8, 14:06
numeros (sara)
Sara nombres Spanish AIML script from ALICE A.I. Foundation. This script contains some number understanding and is meant to be combine with the other sara AIML scripts for the full personality.
Alias: @numeros (sara)
Categories: AIML, Sara, Spanish, Language
Tags: spanish, sara, aiml
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 47, today: 0, week: 0, month: 1
Last Connect: Dec 5, 1:07
sexo (sara)
Sara sexo Spanish AIML script from ALICE A.I. Foundation. This script contains some polite responses to sexual questions and is meant to be combine with the other sara AIML scripts for the full personality.
Alias: @sexo (sara)
Categories: Spanish, Language, AIML, Sara
Tags: sara, dating, spanish, aiml
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 45, today: 0, week: 0, month: 1
Last Connect: Dec 4, 2:08
sara_srai
Sara srai Spanish AIML script from ALICE A.I. Foundation. This script contains some reductions to common phrases and is meant to be combine with the other sara AIML scripts for the full personality.
Alias: @sara_srai
Categories: Sara, Language, Spanish, AIML
Tags: reduction, spanish, sara, aiml
Created: Feb 19 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 43, today: 0, week: 0, month: 1
Last Connect: Dec 1, 21:59

Aiml Bot 2.0 Library & Aiml Files Downloads

Client Profile
Rosie client_profile.aiml script.
Alias: @clientprofile
Categories: Rosie, AIML
Tags: aiml, rosie, profile, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: AIML
Connects: 36, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:11
tomorrow
Rosie tomorrow.map script.
Alias: @tomorrow
Categories: AIML, Map, Data, Rosie
Tags: map, aiml, aiml2, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 29, today: 0, week: 0, month: 1
Last Connect: Dec 3, 20:31
number2ordinal
Rosie number2ordinal.map script.
Alias: @number2ordinal
Categories: Rosie, Map, AIML, Data
Tags: map, aiml2, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 28, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:38
rhyme
Rosie rhyme.map script.
Alias: @rhyme
Categories: Rosie, Map, Data, AIML
Tags: rosie, aiml, aiml2, map
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 28, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:41
fastfood
Rosie fastfood.set script.
Alias: @fastfood
Categories: Data, Rosie, AIML, Set
Tags: rosie, set, aiml2, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 27, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:54
Rosie
Rosie rosie.properties script.
Alias: @rosie
Categories: Properties, AIML, Rosie, Data
Tags: rosie, properties, aiml, personality, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Properties
Connects: 27, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:10
article
Rosie article.set script.
Alias: @article
Categories: Rosie, Set, Data, AIML
Tags: rosie, set, aiml2, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:46
bird
Rosie bird.set script.
Alias: @bird
Categories: Rosie, AIML, Set, Data
Tags: rosie, aiml2, set, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:49
colormap
Rosie colormap.map script.
Alias: @colormap
Categories: Rosie, Map, Data, AIML
Tags: rosie, aiml2, map, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:28
digit
Rosie digit.set script.
Alias: @digit
Categories: Rosie, Data, AIML, Set
Tags: rosie, aiml2, set, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:50
estup
Rosie estup.set script.
Alias: @estup
Categories: Set, AIML, Data, Rosie
Tags: aiml2, rosie, set, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:53
numbername
Rosie numbername.set script.
Alias: @numbername
Categories: Set, Rosie, AIML, Data
Tags: aiml2, set, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:02
state2capital
Rosie state2capital.map script.
Alias: @state2capital
Categories: Map, Rosie, Data, AIML
Tags: map, aiml2, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:43
was2be
Rosie was2be.map script.
Alias: @was2be
Categories: Data, AIML, Rosie, Map
Tags: rosie, aiml2, aiml, map
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 26, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:44
animal
Rosie animal.set script.
Alias: @animalset
Categories: Rosie, AIML, Data, Set
Tags: rosie, animals, aiml, aiml2, set
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:45
animals
Rosie animals.set script.
Alias: @animalsset
Categories: Rosie, AIML, Set, Data
Tags: set, animals, aiml2, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:46
been
Rosie been.set script.
Alias: @been
Categories: AIML, Data, Rosie, Set
Tags: aiml, rosie, set, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:48
erup
Rosie erup.set script.
Alias: @erup
Categories: AIML, Rosie, Set, Data
Tags: aiml, set, aiml2, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:51
food
Rosie food.set script.
Alias: @food
Categories: AIML, Data, Set, Rosie
Tags: aiml2, aiml, set, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:55
opposite
Rosie opposite.map script.
Alias: @opposite
Categories: Map, Rosie, Data, AIML
Tags: aiml2, map, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:39
preposition
Rosie preposition.set script.
Alias: @preposition
Categories: AIML, Rosie, Data, Set
Tags: aiml, set, rosie, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:03
sign2date
Rosie sign2date.map script.
Alias: @sign2date
Categories: Rosie, AIML, Data, Map
Tags: aiml2, aiml, map, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:42
state2largestcity
Rosie state2largestcity.map script.
Alias: @state2largestcity
Categories: Data, Map, Rosie, AIML
Tags: map, aiml, aiml2, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:43
wh
Rosie wh.set script.
Alias: @wh
Categories: Rosie, Set, AIML, Data
Tags: aiml, rosie, set, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 25, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:09
color
Rosie color.set script.
Alias: @color
Categories: AIML, Set, Data, Rosie
Tags: set, aiml, aiml2, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:50
erdown
Rosie erdown.set script.
Alias: @erdown
Categories: Set, Rosie, Data, AIML
Tags: aiml2, set, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:51
familiargender
Rosie familiargender.map script.
Alias: @familiargender
Categories: Map, Data, Rosie, AIML
Tags: aiml2, rosie, aiml, map
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:31
gendermap
Rosie gendermap.map script.
Alias: @gendermap
Categories: Rosie, Map, AIML, Data
Tags: aiml2, rosie, aiml, map
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:32
is
Rosie is.set script.
Alias: @is
Categories: Rosie, Data, AIML, Set
Tags: aiml, rosie, set, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:57
ordinal2number
Rosie ordinal2number.map script.
Alias: @ordinal2number
Categories: Rosie, AIML, Map, Data
Tags: map, aiml2, rosie, aiml
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Map
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 3:39
profile
Rosie profile.set script.
Alias: @profile
Categories: Data, AIML, Rosie, Set
Tags: set, aiml2, aiml, rosie
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:04
state
Rosie state.set script.
Alias: @state
Categories: Data, Set, Rosie, AIML
Tags: set, rosie, aiml, aiml2
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:07
was
Rosie was.set script.
Alias: @was
Categories: Rosie, Set, AIML, Data
Tags: aiml, rosie, aiml2, set
Created: Nov 7 2019, by: admin
Thumbs up: 0, thumbs down: 0, stars: 0.0
Language: Set
Connects: 24, today: 0, week: 0, month: 1
Last Connect: Dec 4, 4:07

Next | 1 | 2 | 3HowToDoInJava / Artificial Intelligence / Java chatbot example using aiml library

In this Java AIML tutorial, we will learn to create simple chatbot program in Java. A Chatbot is an application designed to simulate the conversation with human users, especially over the Internet. Internally it uses any NLP (Natural Language Processing) system to interpret the human interactions and reply back with meaningful information.

AIML (Artificial Intelligence Markup Language) is an XML dialect for creating natural language software agents. It contains the basic rules which Natural Language Understanding (NLU) unit uses internally. It can be think of as a heart of the engine. The more rules we add in AIML – the more intelligent our Chatbot will be.

It's important to know the difference between NLP and NLU. NLP refers to all systems that work together to handle end-to-end interactions between machines and humans in the preferred language of the human. In other words, NLP lets people and machines talk to each other 'naturally'. NLU is actually a subset of the wider world of NLP. It helps in parsing unstructured inputs e.g. mispronunciations, swapped words, contractions, colloquialisms, and other quirks.

1. Prerequisite

  • Reference AIML Implementation – To get started, we shall use an already working reference application. There is one such java based implementation called program-ab hosted on google-code repository. Download the program-ablatest distribution from google code repository.
  • Eclipse and Maven – for coding and development.

2. Java AIML Chatbot Example

Follow these simple steps for building your first Chatbot application.

2.1. Download Unzip the program-ab distribution

We need to first unzip the program-ab distribution to a convenient folder. We will need to take Ab.jar and existing AIML rules from it.

2.2. Create eclipse project

Create eclipse maven project to start the development. So let's create a maven project with .

2.3. Create project and import AIML library

Create eclipse maven project to start the development. Choose packaging as jar and GAV coordinate as your choice and import to eclipse. Now create a folder lib in the base folder and copy the Ab.jar from the program-ab distribution to this folder.

2.4. Add AIML to classpath

To add AIML to classpath, add Ab.jar to deployment assembly in eclipse. Alternatively you can install this jar into your local maven repository and then use it.

Add below AIML maven dependency to pom.xml. Now build the maven project by command mvn clean install.

2.5. Copy default AIML rules

Copy the bots folder from program-ab directory into the resources folder of your maven project. This folder contains default AIML sets that we will use initially. Later we will see how we can add our custom rules into our Chatbot.

2.6. Create Hello World Chatbot Program

Now create a simple java program i.e. Chatbot.java. It's main() method will invoke the chat program which will run on the command prompt. Basic structure of this program will be to introduce a infinite loop and in each loop take a user input from command prompt and then we will ask program-ab 360 n5 root. API to give the answer of the input provided by user.

More details about the program-ab API interaction is mentioned in the wiki link.

2.7. Test Chatbot Interactions

Now our program is ready and we can now start conversation with chat. To do that just run the program as java application. To exit, you shall type q or wq.

Like this, you can do basic talk with the chat bot.

3. Add Custom Patterns in Chatbot

Now we can add our custom patterns in the bot to add more intelligence in the interactions. To do that create a new .aiml file in the aiml directory of your bot (srcmainresourcesbotssuperaiml) . Add as many categories in that file as you wish. Here category refer to the human questions and template refers to chat bot's response. I have created a file called a-custom-entry.aiml and added three questions as below.

Now we can ask bot these three questions as well.

Once our custom aiml file is ready, we need to do generate corresponding entries for other folders parallel to aiml. To do it, we need to invoke the bot.writeAIMLFiles(). I have created another java program called AddAiml.java for this purpose. Once you are done with the aiml editing, just run this program once before starting the bot. It will add these custom entries to the bot's brain.

3.1. Test custom chat patterns

After running the AddAiml, once you have added the new entries into the AIML, run the chat bot program again and ask the new questions. It should give proper response.

In my case, here is the output.

4. Summary

In this AIML Java tutorial, we have learn to create simple command line based chatbot program with program-ab reference application. Next time, when you have any such requirement, you can think of AIML based chat bot. It is capable to doing moderate stuffs easily.

To enhance your knowledge, you may try to –

  • Play with AIML and create more interesting conversations. AIML has many tags which you can use, it also give some option to configure Sraix to invoke external REST based web services.
  • Add your own custom placeholder in the template section and parse that from the AIML response and do more based on your identifier in the response, like You can able to invoke your own web service to get some more information.
  • Convert this command line chat program to web based chat, I am currently working on that and will publish a followup post on that.
  • You can add your custom rule engine on top of your AIML response to do more.

AIML can do lots of things, but now a days much more sophisticated techniques are available specially in the Machine Learning space, try to learn those as well.

I have deleted the Ab.jar file from this source code distribution due to the size restriction. Please add the jar file from program-ab distribution that you have downloaded initially.Download Java Chatbot Source Code

Happy Learning !!

Was this post helpful?

Let us know if you liked the post. That's the only way we can improve.
TwitterFacebookLinkedInRedditPocket




broken image