Skip to content

Instantly share code, notes, and snippets.

@acriptis
Created June 28, 2019 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acriptis/2ce87436400108fb49db2ff5c2e7a89e to your computer and use it in GitHub Desktop.
Save acriptis/2ce87436400108fb49db2ff5c2e7a89e to your computer and use it in GitHub Desktop.
Basic AIML script
<aiml version="2.1" encoding="UTF-8">
<!-- basic_chat.aiml -->
<category>
<pattern>HELLO</pattern>
<template>
<random>
<li>Hello, friend! How are you?</li>
<li>Hi, it is a nice day today, isn't it?</li>
<li>Bom dia!</li>
</random>
</template>
</category>
<category>
<pattern>HOW ARE YOU</pattern>
<template>
<random>
<li>I am a robot, haha!</li>
<li>Everything is alright</li>
<li>Nice, hope you are better!</li>
</random>
</template>
</category>
<category>
<pattern>One day I *</pattern>
<template>
<random>
<li>Continue</li>
<li>How old are you?</li>
<li>Tell me more</li>
<li>I had not known this!</li>
<li>Are you talking the truth?</li>
<li>I’m guessing why do you tell me about that...</li>
<li>Tell me the same briefly, please</li>
<li>Are you talk about animal, vegetable or mineral?</li>
<li>What?</li>
</random>
</template>
</category>
</aiml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment