Hello, I’m interested to capture every message being processed in Rasa by creating a python class which will store to database. I’m not exactly sure how to do this by default. I can trigger the class based on stories that match, but I can’t seem to figure out as a default.
These information’s are already saved to trackerstore database, if you want read from a DB.
Else, they are readily available in the tracker object which you can access them via your custom actions.
Can you share me a specific example to see if I can help you out ?
tracker_store:
type: SQL
dialect: "mysql"
url: "localhost:3306"
db: "rasa" # path to your db
username: root # username used for authentication
password: password # password used for authentication
rasa run --endpoints endpoints.yml created rasa database in mysql. But nothing is being updated and I don’t see anything on the startup console log.
tracker_store:
type: SQL
dialect: "mysql"
url: "mysql://localhost:3306"
db: "rasa" # path to your db
username: root # username used for authentication
password: password # password used for authentication
rasa run --endpoints endpoints.yml --debug --log-file log.txt
apparently I had a space in front of “tracker_store”
also, I had to remove mysql::// as it was expecting username password from URL
2021-04-28 10:08:32 DEBUG rasa.core.tracker_store - Attempting to connect to database via 'mysql://root:***@localhost:3306/rasa'.
2021-04-28 10:08:32 DEBUG rasa.core.tracker_store - Connection to SQL database 'rasa' successful.
2021-04-28 10:08:32 DEBUG rasa.core.tracker_store - Connected to SQLTrackerStore.