Python 3.7.x, pip3
- Flask
- AIML Learn More
Arificial Intelligence Markup Language is an XML dialect for creating natural language software agents.
pip3 install -r requirements.txt
^ sudo if required.
Run the app for CLI interaction
python3 chat.py
OR
Run the app for web based interaction
python3 webchat.py
Goto http://localhost:5000 in your browser.
- chat.py: code for loading and running the bot in CLI
- webchat.py: code for loading and running the bot on web
- data/: folder containing the AIML files
- model/learning_files.aiml: code for listing the files to train the bot
- model/pretrained_model.dump: a saved trained model that the bot can use
- templates/home.html: the html file for the web UI
- requirements.txt: file listing the Python dependencies
AIML tutorial Flask tutorial autocorrect Bootsnipp
- More AIML files can be added/updated into the data/ folder to improve the bot.
- A variety of HTML templates can be used from Bootsnipp to improve the look of the web chat UI.