AI chatbot for PatternFly. Based on Rasa open source framework.
- create a python virtual environment:
python3 -m venv my_venv - start a python virtual environment:
source my_venv/bin/activate - install
rasaand other necessary libraries into this virtual environment
- go to chatbot directory:
cd chatbot - train a model:
rasa train - in a separate terminal, start actions:
rasa run actions - start the model
rasa shell
- chatbot
- rasa framework project
domain.ymlincludes list of user intents, chatbot responses, list of actions, entities, slots, forms, session_config, ...data/nlu.ymldefines user intents and examples (sentences) for each intentdata/rules.ymldefines what action should the chatbot do as a reaction on an intent = strictdata/stories.ymldefines what action should the chatbot do as a reaction on an intent. Can have more steps than one intent-action.actions/actions.pydefines custom actions (how to respond on intents in a more customizable way)helpers/generate_component_intents.pycreates intents based on the various components inactions/components.jsonfile
- webscraper
main.pydownloads data about PatternFly components and saves them tochatbot/actions/components.json- requires a patternfly-org website running at
localhost:8003