Is there a way to fetch a tracker via the Rasa python client? We’re trying to access the tracker in our custom channel connector to do some conditional branching on whether a form is active or not.
An option is to query the API directly, but was wondering if there is a way to do it from within the the Rasa python client.
Hi @moaazsidat, do you mean accessing all of the tracker values? Did you try to store it to the database(ex: MongoTrackerStore)? Also can you attach the code for creating the Rasa python client?(how you load the models, nlu interpreter)
Yep, we are using a persistent tracker store, regardless of that, there doesn’t seem to be a straightforward way of querying the tracker store in a custom channel connector
We have two apparent choices:
make a request to the rasa core api to fetch the tracker store
This is not ideal because why should the channel connector (running inside the Rasa core python process) make a http request to the Rasa core http api to get access to something inside that process), this can lead to odd raise conditions.
use the Sanic app and rasa’s internal api to query the tracker store inside the blueprint route