> ## Documentation Index
> Fetch the complete documentation index at: https://rasa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tracker

> The Tracker class represents a Rasa conversation tracker.

The `Tracker` class represents a Rasa conversation tracker.
It lets you access your bot's memory in your custom
actions. You can get information about past events and the current state of the
conversation through `Tracker` attributes and methods.

## Attributes

The following are available as attributes of a `Tracker` object:

* `sender_id` - The unique ID of person talking to the bot.
* `slots` - The list of slots that can be filled as defined in the
  “ref”domains.
* `latest_message` - A dictionary containing the attributes of the latest
  message: `intent`, `entities` and `text`.
* `events` - A list of all previous events.
* `active_loop` - The name of the currently active loop.
* `latest_action_name` - The name of the last action the bot executed.

## Methods

The available methods from the `Tracker` are:

### Tracker.current\_state

Return the current tracker state as an object.

* **Return type**

`Dict[str, Any]`

### Tracker.is\_paused

State whether the tracker is currently paused.

* **Return type**

`bool`

### Tracker.get\_latest\_entity\_values

Get entity values found for the passed entity type and optional role and
group in latest message.
If you are only interested in the first entity of a given type use:

```python theme={null}
next(tracker.get_latest_entity_values(“my_entity_name”), None)
```

If no entity is found, then `None` is the default result.

* **Parameters**

  * `entity_type` – the entity type of interest
  * `entity_role` – optional entity role of interest
  * `entity_group` – optional entity group of interest
* **Returns**

List of entity values.

* **Return type**

`Iterator[str]`

### Tracker.get\_latest\_input\_channel

Get the name of the input\_channel of the latest UserUttered event

* **Return type**

`Optional[str]`

### Tracker.events\_after\_latest\_restart

Return a list of events after the most recent restart.

* **Return type**

`List[Dict]`

### Tracker.get\_slot

Retrieves the value of a slot.

* **Parameters**

  * `key` – the name of the slot of which to retrieve the value
* **Return type**

`Optional[Any]`

### Tracker.get\_intent\_of\_latest\_message

Retrieves the user's latest intent.

* **Parameters**

  * `skip_fallback_intent` (default: `True`) – Optionally skip the `nlu_fallback` intent and return the next highest ranked.
* **Returns**

The intent of the latest message if available.

* **Return type**

`Optional[Text]`


## Related topics

- [Tracker Stores](/docs/reference/integrations/tracker-stores.md)
- [Retrieve a conversations tracker](/docs/reference/api/pro/http-api/tracker/retrieve-a-conversations-tracker.md)
- [Replace a trackers events](/docs/reference/api/pro/http-api/tracker/replace-a-trackers-events.md)
- [Add a message to a tracker](/docs/reference/api/pro/http-api/tracker/add-a-message-to-a-tracker.md)
- [Append events to a tracker](/docs/reference/api/pro/http-api/tracker/append-events-to-a-tracker.md)
