Which tracker store does rasa x use to keep a track of conversations?

Which tracker store does rasa x use to keep track of conversations? If it’s the default InMemoryTrackerStore, I want to know if this option is a good one. If not, please recommend the best option,

Thank you!

Welcome to the community! :slight_smile:

Yes, it’s the default InMemoryTrackerStore, which works fine.

You can switch to another one, let’s say MySQL, if you want to query it, or use PhpMyAdmin, or just like MySQL. It all comes down to personal preference.

1 Like

Hello and Welcome to the community!

Adding to Chris suggestion, you can implement the following:

@Lisa If you just want to store the bot/user conversation in any database?

For storing the bot/user conversation you can use tracker store:

Update this code in endpoints.yml

For Postgres:

tracker_store:
   type: SQL
   dialect: "postgresql"  # the dialect used to interact with the db
   url: "localhost"  # (optional) host of the sql db, e.g. "localhost"
   db: "chatbot"  # path to your db
   username: "postgres"  # username used for authentication
   password: "123"  # password used for authentication
   # query: # optional dictionary to be added as a query string to the connection URL
   #   driver: my-driver

For MySQL:

tracker_store:
   type: SQL
   dialect: "mysql+pymysql"  # the dialect used to interact with the db
   url: "localhost"  # (optional) host of the sql db, e.g. "localhost"
   db: "rasa"  # path to your db
   username: "root"  # username used for authentication
   password: "root"  # password used for authentication

Note: You also need to install psycopg2-binary and pymysql. You will see when it will throw an error.

You need to create a database schema i.e rasa (or whatever you feel like) and update same in db: rasa, train the bot and run rasa and rasa actions in separate terminals; whilst running you will get above mention errors or some other please install in your conda environment and again train and follow the process.

Good Luck!

1 Like