Chat History Logger using Custom Tracker Store

Hi all,

I have created a Chat history logger for logging the conversations to the JSON file using Custom Tracker Store.

You can get the code @

Check out the sample JSON file here : Rasa-ChatHistory-Logger/sampleChatHistoryData.json at master · JiteshGaikwad/Rasa-ChatHistory-Logger · GitHub

Hope it helps for those who want to log the conversations to the files :wink:

1 Like

Hi Jitesh, I tried using your code. But it is not working. I have a question, you have provided url="", Should it be changed to action server url or to rasa bot url? and the issue is only when I am running it on server, On local machine it is working fine.

can you show me the error logs?

Hi @JiteshGaikwad , I am trying to implement custom tracker store and while searching for tutorials I found two tutorials to implement custom tracker store. I tried this tutorial and it is throwing error UserWarning: Tracker store with type ‘myTracker.MyTrackerStore’ not found. Using InMemoryTrackerStore instead.

After surfing, I found that this issue can be resolved by setting the python path but, that didn’t help. I thought that my implementation was wrong so, I tried your method. It is still giving me the same error.

I am trying to implement CustomTrackerStore for storing just conversation of user and bot. I wrote the same endpoints.yml as you mentioned. Any help would be much appreciated. Thanks Nikhil

can you show me you project directory structure @n-k-chilagani

Hi @JiteshGaikwad, here is my project directory

can you show me your endpoints.yml?

I wrote just as you have mentioned in your github


@n-k-chilagani it should work as I have no set any path for the file and as it’s mentioned in the endpoints.yml, have you made any changes to

@JiteshGaikwad Nope, I didn’t change anything in Do I need to run any command other than

rasa run -m models --endpoints endpoints.yml --enable-api --cors “*” --debug

should not be a problem, may be you can try the below command:

rasa run -m models --enable-api --cors “*” --debug

@JiteshGaikwad I tried both commands in the shell. Do we need to use any specific version of Rasa or OS? I am using 1.10.3 version of Rasa in Windows 10 OS.

no, it will work with that version.

Hi @JiteshGaikwad, I reviewed my code again today and found out that I didn’t include in my project folder.

rasa run -m models --enable-api --cors “*” --debug

I don’t whether it is a bug or not. The above command does not show any import error in custom tracker files and it will directly configure to “InMemoryTrackerStore”. I solved the import issues by running python <custom tracker file>.py. Thanks for quick replies @JiteshGaikwad.

Thanks @n-k-chilagani for pointing out :slight_smile:

This is not a bug may be you have missed the error trace, as it shows where the error occurred.

I have the same error but the reason is not import I think we must create an in the root folder and then the endpoint file can know where the CustomTracker file i define.

If I’m not mistaken, you have a repo on Github about Rasa_deployment, it help me a lot. Thank you! :grinning:

@NgocNam1512, I do have a repo

Hi @JiteshGaikwad ,

Not able to find your repository in github as I’m also looking to implement the tracker store.

Thanks, Anirudh

1 Like