What are the benefits of Mapping policy and when should we use it?
Secondly:
An example would be really helpful in case of form actions.
Like if the form action is activated and requested slot is “XYZ” but user asked for the time that is mapped to an action ‘action_get_time’ after performing the action and event UtteranceReverted(), how can a bot re-ask the user for the ‘XYZ’ slot?
Use MappingPolicy, when youre 100% sure, that youre okay with the exact same reaction every time to a certain intent.
I only use it for things like unhappy path in forms.
(In a FormAction)
Bot: What is your ID?
User: I dont want to answer that
Bot: Do you want to stop the form? Buttons Yes/No
Now its very clear, if the user hits the ‘Yes’-button (‘Yes’ is just the title of the button here, the payload is another intent) I send a special intent, which should always lead to a ‘Deactivate’-Event (one that stops the FormAction). This can be easily achieved if the MappingPolicy triggering the Deactivate-Action.
Other things I might think of are FAQ-Bots, but even there Id rather have may bot ask if somethings wrong if the user repeats a question multiple times.
Referring my example given above, if a user chitchats during the form action at the state when the bot requested a slot from the user e.g “Please provide your ID”, and my chitchat intents are mapped to a custom action that returns an event UtteranceReverted(). So after the UtteranceReverted() event how can a bot again prompt the user with “Please provide your ID”. As it is not happening by default and i want to achieve this.
Thanks you reply on this would be highly appreciate-able.
So i want to revert the utterance because i want my story not to be affected by the chitchat during the form action and this way i dont need to write stories that will handle the chitchat during form actions. Secondly i think even if i dont revert the utterance bot still predicts action_listen after the chitchat action execution during the activation of the form action.
ok let’s say we don’t revert utterance, and during form action an intent gets predicted with mapping policy and after than bot returns back to the form action. How can we track that the bot has now come back to the form action and its a 3rd time for bot after the mapping policy and how can we now prompt the user for the slot or some other random message?
@Ghostvv Also i want to know that, is it recommended to use the mapping policy with every intent, either its a form action, custom action or a utterance action?
with ActionReverted(), i get this error "Circuit breaker tripped. Stopped predicting more actions for sender ‘default’
" and bot also went into action_listen