# Confidence level of intent

**URL:** <https://forum.rasa.com/t/confidence-level-of-intent/48446>\
**Category:** Rasa Open Source\
**Created:** [October 13, 2021, 9:11am UTC](https://forum.rasa.com/t/confidence-level-of-intent/48446 "2021-10-13T09:11:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurvitbhatia](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@gaurvitbhatia](https://forum.rasa.com/u/gaurvitbhatia)\
**Post date:** [October 13, 2021, 9:11am UTC](https://forum.rasa.com/t/confidence-level-of-intent/48446/1 "2021-10-13T09:11:56Z")

</div>

Hi… i want to pick up the top 3 confidence levels of the intents based on the user’s query and want to store it in a list in my actions.py file for a particular use case.

I didnt get anything how can I pick the confidence level and store it in form of a variable or a list.

All I found was how to print the confidence level of any user’s query using the rasa shell nlu command.

Kindly help,

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [October 13, 2021, 1:41pm UTC](https://forum.rasa.com/t/confidence-level-of-intent/48446/2 "2021-10-13T13:41:58Z")

</div>

In a custom action, you can find those using [`tracker.latest_message`](https://rasa.com/docs/action-server/sdk-tracker#attributes)

---

<div class="post-metadata">

**Author:** ![mina.fsh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mina.fsh/32/11076_2.png) [@mina.fsh](https://forum.rasa.com/u/mina.fsh)\
**Post date:** [October 13, 2021, 4:27pm UTC](https://forum.rasa.com/t/confidence-level-of-intent/48446/3 "2021-10-13T16:27:18Z")

</div>

I did something similar [here](https://github.com/Mina-Fsh/Chatbots-with-conversation-repair-strategies/blob/financial_bot_rasa_2/actions/repair_mix.py) in the function called `get_user_message_info` in line 255.
