# How would I get action probabilities?

**URL:** <https://forum.rasa.com/t/how-would-i-get-action-probabilities/51899>\
**Category:** Rasa Open Source\
**Created:** [March 11, 2022, 3:35pm UTC](https://forum.rasa.com/t/how-would-i-get-action-probabilities/51899 "2022-03-11T15:35:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nat](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@nat](https://forum.rasa.com/u/nat)\
**Post date:** [March 11, 2022, 3:35pm UTC](https://forum.rasa.com/t/how-would-i-get-action-probabilities/51899/1 "2022-03-11T15:35:14Z")

</div>

I am looking to find a way to see the potential action probabilities similar to the way you can see intent probabilities through tracker.latest\_message[‘intent\_ranking’]. Is this possible?

I also noticed this value next\_action in this documentation [Actions](https://rasa.com/docs/action-server/actions/#next_action) but how can I access the value. I tried self.next\_action and many other versions but all come back with an error. What is the proper method to access this ‘next\_action’ value from the Rasa server?

Thanks in advance, Natalie

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [March 13, 2022, 1:43am UTC](https://forum.rasa.com/t/how-would-i-get-action-probabilities/51899/2 "2022-03-13T01:43:10Z")

</div>

Make sure you read the [Policies](https://rasa.com/docs/rasa/policies/) page if you haven’t already. The `next_action` you linked to is the json that is sent to the action server.

The tracker will show the action that was selected so this would be the event to search for on access the any **past** actions.

```json
{
"event": "action",
"timestamp": 1629171824.4370716,
"name": "utter_faq",
"policy": "policy_1_RulePolicy",
"confidence": 1.0,
"action_text": null,
"hide_rule_turn": true
}

```

Unfortunately, the `--debug` output is the only way I know to see the predictions for each policy.

You may want to look at customizing the policy `ensemble.py` [PolicyPredictionEnsemble](https://github.com/RasaHQ/rasa/blob/413ac0551721709ca78dc1e890e075a75fa35533/rasa/core/policies/ensemble.py#L64) class.
