Confirmation step was skipped - Rasa CALM - Rasa Community Forum

post by SunYusheng on Jun 4, 2024

SunYusheng
Jun 2024

transfer_money is defined as below:


flows:
  welcome_and_self_introduction:
    name: welcome
    description: Greet, introduce the assistant,and ask what the user needs help with
    steps:
      - action: utter_welcome_and_self_introduction

transfer_money:
    description: This flow lets users send money to recipient, Ask all the required questions to process a money transfer request from user.
    steps:
      - collect: recipient
      - collect: amount
        description: the number of US dollars to send
      - action: action_check_sufficient_funds
        next:
          - if: not slots.has_sufficient_funds
            then:
              - action: utter_insufficient_funds
                next: END
          - else: final_confirmation
      - collect : final_confirmation
        id: final_confirmation
        next:
          - if: not slots.final_confirmation
            then:
              - action: utter_transfer_cancelled
                next: END
          - else: transfer_successful
      - action: utter_transfer_complete
        id: transfer_successful

but final_confirmation step is not always executed.

post by l2nguyen on Jun 5, 2024

l2nguyen
Jun 2024

I would recommend setting ask_before_filling: true for the collect step for final_confirmation like here in the calm demo so that rasa always asks the user for that slot.
Docs on ask_before_filling here.

post by SunYusheng on Jun 6, 2024

SunYusheng
Jun 2024

Thank you. it works