{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# The AIML Chatbot kernel\n", "\n", "The _AIML Chatbot kernel_ wraps the [pyAIML](https://github.com/creatorrr/pyAIML) Python library to create a conversational bot within a notebook. The bot behaviour is defined by loading [AIML](https://en.wikipedia.org/wiki/AIML) categories. A \"category\" in AIML is akin to a rule, and defines a _pattern_-_template_ pair\n", "\n", "Input cells are messages for the bot, which get interpreted and the bot output is the result of the cell execution. Additionally, a few magics for both control (cells starting with apercent sign) are available; these are not passed to the bot as user messages, but executed to change the bot behaviour in some way." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## First steps\n", "\n", "On an empty bot there is nothing to do (the bot does not produce any output, since it does not have rules to work with). So when creating an (empty) AIML notebook, any input cell will just return the general help message" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "