Using rasa as a python library to interact with the bot

Hi @souvikg10. Great to see you here! Overall, the previous way of running the agent as a python module has been deprecated and replaced with the cli. However, you can still access the methods that can be used to train or run the models. For example, a very basic way of training the model would look as follows:

import rasa

config = "config.yml"
training_files = "data/"
domain = "domain.yml"
output = "models/"

model_path = rasa.train(domain, config, training_files, output)
1 Like