# How to extract the name of detected entity value through Actions?

**URL:** <https://forum.rasa.com/t/how-to-extract-the-name-of-detected-entity-value-through-actions/3165>\
**Category:** Rasa Open Source\
**Created:** [November 30, 2018, 6:24am UTC](https://forum.rasa.com/t/how-to-extract-the-name-of-detected-entity-value-through-actions/3165 "2018-11-30T06:24:52Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dvigneshwee](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dvigneshwee/32/1318_2.png) [@dvigneshwee](https://forum.rasa.com/u/dvigneshwee)\
**Post date:** [December 13, 2018, 10:48am UTC](https://forum.rasa.com/t/how-to-extract-the-name-of-detected-entity-value-through-actions/3165/5 "2018-12-13T10:48:24Z")

</div>

One way to extract the entity type of the latest user input is by parsing the `latest_message` variable of the `DialogueStateTracker` class which contains the entire dump of the prediction from the NLU model

```auto
prediction = tracker.latest_message
entity_type = prediction['entities'][0]['entity']

```

---

_[View the full topic](https://forum.rasa.com/t/how-to-extract-the-name-of-detected-entity-value-through-actions/3165)._
