/ Home
RASA BASIC SETUP
Installation:
- create a new conda environment
conda create -n rasa -y python=3.8 - install rasa
pip install rasa - incase of pip error, upgrade pip
python -m pip install --upgrade pip - create a directory
mkdir rasa-test - create an initial model
rasa init
To run in terminal:
rasa shell
To create a new intent:
- add new intent in nlu.yml file:
```
- intent: food examples: |
- give me a food recommendation.
- recommend food ```
- add a response in domain.yml file:
utter_food: - text: "Noodles" - create a rule for the intent in rules.yml
- rule: Say "noodles" when food steps: - intent: food - action: utter_food - train the model (run in terminal)
rasa train - run the bot
rasa shell