Accoring to the Tutorials of the rasa open source, I can not accomplish how to use stories for context switching, my rasa version is 2.0. rasa open source give a story as follow:
stories:
story: Context switch from credit card payment to money transfer
steps:
intent: pay_credit_card
action: credit_card_payment_form
active_loop: credit_card_payment_form
intent: transfer_money
active_loop: null
action: transfer_money_form
active_loop: transfer_money_form
active_loop: null
action: utter_continue_credit_card_payment
what should I do? I will very be thankful if someone can support me or give me some suggestion.
@xiaolinpeter, when credit card’s form is active and your assistant identify another intent, you can just ask for a confirmation before switch to money transfer. For example:
Hi Marcos, I’m having a similar situation here, but I’m not able to activate the other form after capturing the intent. Could you please help me ? I tried everything I thought to change/try, leave bellow details of my stories:
*** RULES**
version: "2.0"
- rule: unhappy path for create opportuity
condition:
# Condition that form is active.
- active_loop: create_opportunity_form
steps:
# This unhappy path handles the case of an intent `chitchat`.
- intent: update_task
- action: utter_change_form_update_task
- rule: unhappy path for create opportuity
condition:
# Condition that form is active.
- active_loop: create_opportunity_form
steps:
# This unhappy path handles the case of an intent `chitchat`.
- intent: update_task
- action: utter_change_form_update_task