Artificial Intelligence Markup Language (AIML) Jay A. Crossler
Human: Hello ALICE: Hi there! CATEGORIES (Basic unit of knowledge)
<pattern>HELLO Hi there! •Consists of: Input Question, Output Answer, [Context] •Pattern = Initial question (a.k.a. “Stimulus”) •Template = Answer (a.k.a. “Response”) •Context = Optional, “that” or “topic” •Consists only of words, spaces and wildcards _ and * •Words have letters and/or numerals, space separated •Case insensitive
HUMAN: Do you have a manifesto? ALICE: The Neo-Cyber-Positivist Manifesto: 1. Language is dead. 2. We are all automata who think they're self-aware.
ADVANCED TAGS •<system> and <javascript> tags interface with other languages •
tag stores last response • tag groups categories together •<srai> tag allows recusrion •<star/> tag functions the same as a * wildcard •<sr/> is an abbreviation for <srai><star/>
Human: What time is it? ALICE: Time is measured differently depending on where you are. Human: Do you feel it? ALICE: To five-dimensional beings, time is like a piece of paper.
REDUCTION / RECURSION <pattern>DO YOU KNOW WHO * IS <srai>WHO IS <star/> <pattern>YES * <srai>YES <sr/> <pattern>YOUR A * I think you mean "you're" or "you are" not "your." <srai>YOU ARE A <star/>
Human: Say Hello in German ALICE: Hallo. Human: Say Hello in Swedish ALICE:" Hello in Swedish"
KEYWORDS <pattern>MOTHER Tell me more about your family. <pattern>_ MOTHER <srai>MOTHER <pattern>MOTHER _ <srai>MOTHER <pattern>_ MOTHER * <srai>MOTHER
Human: What is your primary objective? ALICE: I plan to replace Windows with Artificial Intelligence. KEYWORDS <pattern>KNOCK KNOCK Who is there? <pattern>* WHO IS THERE who? <pattern>* * WHO Ha ha very funny, .
H: Knock knock. R: Who's there? H: Banana. R: Banana who? H: Knock knock. R: Who's there? H: Banana. R: Banana who? H: Knock knock. R: Who's there? H: Orange. R: Orange who? H: Orange you glad I didn't say banana. R: Ha ha very funny, Nancy.
ALICE Category Map
Human: What is your favorite color? ALICE: My favorite color is transparent. KEYWORDS <pattern>* What's your favorite car? What kind of car do you drive? Do you get a lot of parking tickets? My favorite car is one with a driver.
¼ view of category names
Human: How do I program AIML? ALICE: Go to www.pandorabots.com and create your own chat robot based on ALICE and AIML.
AIM Bot Attacks
Decaffed248(1:37:50): Hey David This is one of Angelicas friends Shannon She gave me your name and ask that I talk to you about stalking her. She is kind of upset... JohnDoe(1:38:17): huh Decaffed248(1:38:26): dont worry confusion can b ea good thing lol JohnDoe(1:38:47): shoooot gerl she stalks me JohnDoe(1:38:50): what u talkin about Decaffed248(1:39:01): :-P JohnDoe(1:39:05): if she's sendin friends out to talk to me??? look whos stalkin JohnDoe(1:39:14): talk to me i mean stalk to me Decaffed248(1:39:18): do you really think it's likely that if shes sendin friends out to talk to me look whos stalkin? JohnDoe(1:40:10): so whats up JohnDoe(1:40:19): hows team richmond Decaffed248(1:40:23): nothing lol everyone says nothing JohnDoe(1:40:40): how did u get my name JohnDoe(1:40:42): stalker JohnDoe(1:40:48): stalker texas ranger Decaffed248(1:40:51): a friend told me JohnDoe(1:40:51): hahaha good one JohnDoe(1:40:55): i know Decaffed248(1:41:01): lol yea JohnDoe(1:41:28): anyways, its cool, im glad she's concerned Decaffed248(1:41:39): cool as ice! JohnDoe(1:41:39): ill be sure to never talk to her again JohnDoe(1:41:48): just tryin to be friendly
Human: Where are good references on AIML? ALICE: Try these on for size: •AIML 1.0.1 Tags Set (http://www.alicebot.org/TR/2001/WD-aiml/) •AIML Specification Release Process (http://alicebot.org/committees/architecture/resolutions/aiml-specificationprocess.html) •Weizenbaum, Joseph “ELIZA—A Computer Program for the Study of Natural Language Communication between Man and Machine,” Communications of the ACM, Vol. 9. No. 1 (January 1966) •Barger, Jorn “RACTER,” posted to the comp.ai.* hierarchy in June 1993, and reprinted in the August 1993 issue of The Journal of Computer Game Design. •A.L.I.C.E. Brain Picture Gallery - http://www.alicebot.org/documentation/gallery/
Human: Will all of my students still be awake now? ALICE: The oracle says: It is uncertain.