How can I know what policy was triggered?

Hi,

I was wondering if there is a way to know if the confidence of the chosen intent was given by a policy rather than an other.

Thank you, Tiziano

Not 100% sure, what youre asking for, but the bot logs, which policy predicts the next action. It looks like this

2019-11-27 09:46:36 DEBUG    rasa.core.processor  - Received user message 'text' with intent '{'name': 'text', 'confidence': 0.8122491224015623}' and entities '[]'
2019-11-27 09:46:36 DEBUG    rasa.core.policies.two_stage_fallback  - NLU confidence threshold met,        confidence of fallback action set to core threshold (0.4).
2019-11-27 09:46:36 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_4_FormPolicy
2019-11-27 09:46:36 DEBUG    rasa.core.processor  - Predicted next action 'action_listen' with confidence 1.00.

Just start the botwith debug output (-vv)

That’s exactly what I meant, thank you!