Creating question-answer pairs with Rasa
Now we will build on the simple chatbot that we built in the previous recipe and create new conversation pairs. Our bot will answer simple, frequently asked questions for a business, such as questions about hours, address, and so on.
Getting ready
We will continue using the bot we created in the previous recipe. Please follow the installation instructions specified there.
How to do it…
In order to create new question-answer pairs, we will modify the following files: domain.yml
, nlu.yml
, and rules.yml
. The steps are as follows:
- Open the
domain.yml
file and in the section namedintents
, add an intent namedhours
. The section should now look like this:intents: - greet - goodbye - affirm - deny - mood_great - mood_unhappy - bot_challenge - hours
- Now we will create a new response for a question about hours. Edit the section...