Dear community,
I want to know if there is a possibility to define many threshold ranges and execute actions based on these ranges.
for example if my threshold is between 0.5 and 0.7 i want to perform a google search,
if its bellow 0.5 i would like to ask the user for clarification
PS: I’m using TwoStage Fallback policy in Rasa 1.x
Thank you in advance
Hey Akenayou,
You can use two approaches.
First one is you can track for events using “tracker.events” and you can apply condition on events name and event
if event.get(‘event’) == '“action”:
if event.get(‘name’) == ‘action_custom_fallback’:
return [FollowupAction(‘action_ask_comfirmation’)]
Second approach is track confidence of intent in action_track_confidence using tracker.latest_message[‘intent’].get(‘confidence’) accordingly you can set action.
I hope above will help you.
1 Like
Thank you @Sharada201,
Very Helpful!