# Accessing DialogueStateTracker in the channel connector

**URL:** <https://forum.rasa.com/t/accessing-dialoguestatetracker-in-the-channel-connector/11393>\
**Category:** Rasa Open Source\
**Created:** [June 12, 2019, 7:24pm UTC](https://forum.rasa.com/t/accessing-dialoguestatetracker-in-the-channel-connector/11393 "2019-06-12T19:24:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moaazsidat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/moaazsidat/32/2024_2.png) [@moaazsidat](https://forum.rasa.com/u/moaazsidat)\
**Post date:** [June 12, 2019, 7:24pm UTC](https://forum.rasa.com/t/accessing-dialoguestatetracker-in-the-channel-connector/11393/1 "2019-06-12T19:24:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yaput](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yaput/32/6710_2.png) [@yaput](https://forum.rasa.com/u/yaput)\
**Post date:** [June 13, 2019, 4:18am UTC](https://forum.rasa.com/t/accessing-dialoguestatetracker-in-the-channel-connector/11393/2 "2019-06-13T04:18:15Z")

</div>

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)

Cheers

---

<div class="post-metadata">

**Author:** ![moaazsidat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/moaazsidat/32/2024_2.png) [@moaazsidat](https://forum.rasa.com/u/moaazsidat)\
**Post date:** [June 13, 2019, 2:27pm UTC](https://forum.rasa.com/t/accessing-dialoguestatetracker-in-the-channel-connector/11393/3 "2019-06-13T14:27:40Z")

</div>

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:

1. make a request to the rasa core api to fetch the tracker store

2. use the Sanic app and rasa’s internal api to query the tracker store inside the blueprint route

---

<div class="post-metadata">

**Author:** ![mmm3bbb](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mmm3bbb](https://forum.rasa.com/u/mmm3bbb)\
**Post date:** [October 22, 2019, 11:01pm UTC](https://forum.rasa.com/t/accessing-dialoguestatetracker-in-the-channel-connector/11393/4 "2019-10-22T23:01:34Z")

</div>

@moaazsidat What did you end up doing? I have same issue.
