Custom MongoDB Tracker

I am trying to create a custom mongodb tracker but i keep getting this error.

File “c:\python38\lib\site-packages\rasa\core\”, line 1109, in _load_from_module_name_in_endpoint_config

  • return tracker_store_class(* TypeError: init() got an unexpected keyword argument ‘domain’

i am assuming this is when the is calling the custom tracker but I’m not sure why domain is giving an error.

Are there any examples for a custom MongoDB Tracker?

The reason i was doing this was to add the username and passwords for MongoDB Tracker in a secure way to use this for production environments. Are there any better ways to do this?

Hey @jaison, which version of Rasa Open Source are you on?


I am on 2.0 version. Was able to get the custome_tracker working now. Thanks for the enquiry though :slight_smile:

I was able to get the Tracker working. I basically took the mongo tracker code from and removed all the other functions and added an import
from rasa.core.tracker_store import TrackerStore

for the endpoints.yml this was my file


type: mongo_tracker.mongo_tracker

url: “mongodb://url:port”

db: “database name”

the needs to be in the root directory and my class inside is called mongo_tracker If anyone has doubts i can paste the mongo_tracker code as well. Did not want to paste a code junk without any need.

Cheers :smiley:

1 Like