FormAction Stuck in Loop


(Adrian Humphrey) #1

I have training data to perform my FormAction then perform a difference action once the form is complete. However, when I run the bot, it is stuck inside of the form action and keeps running the submit method. It prints out:

The action was ran, but nothing was said.

How do I get out of the FormAction and on to the next one.?


(Akela Drissner) #2

Could you post your stories file?


(Adrian Humphrey) #3
## Generated Story -195929544701750116
* caller_choice_personal_loan
    - utter_confirm_personal_loan
* confirm
    - utter_calls_are_recorded
* confirm
    - action_personal_loan_form
    - slot{"requested_slot": "caller_last_name"}
* inform
    - action_personal_loan_form
    - slot{"caller_last_name": "dafdf"}
    - slot{"requested_slot": "caller_street"}
* inform
    - action_personal_loan_form
    - slot{"caller_street": "adsfadfs"}
    - slot{"requested_slot": "caller_city"}
* inform
    - action_personal_loan_form
    - slot{"caller_city": "1asdf"}
    - slot{"requested_slot": "caller_state"}
* inform
    - action_personal_loan_form
    - slot{"caller_state": "adfadf"}
    - slot{"requested_slot": "caller_zip_code"}
* inform
    - action_personal_loan_form
    - slot{"caller_zip_code": "adfaf"}
    - slot{"requested_slot": "caller_employer"}
* inform
    - action_personal_loan_form
    - slot{"caller_employer": "adfadf"}
    - slot{"requested_slot": "caller_steady_income"}
* confirm
    - action_personal_loan_form
    - slot{"caller_steady_income": true}
    - slot{"requested_slot": "caller_length_employment"}
* inform
    - action_personal_loan_form
    - slot{"caller_length_employment": "adfadf"}
    - slot{"requested_slot": "caller_monthly_debt"}
* inform
    - action_personal_loan_form
    - slot{"caller_monthly_debt": "sdfasdf"}
    - slot{"requested_slot": "caller_ssn"}
* inform
    - action_personal_loan_form
    - slot{"caller_ssn": "13434"}
    - slot{"application_finished": true}
* confirm
    - utter_apply_personal_loan_approval
* inform
    - utter_apply_personal_loan_approval_msg
* inform
    - utter_apply_personal_loan_approval_wrapup
    - slot{"current_agent": "super_agent"}
    - action_route_super_agent

(Adrian Humphrey) #4

This is the story that breaks the form action. If however the last action is like

* inform
    - action_personal_loan_form
    - slot{"caller_ssn": "13434"}
    - slot{"application_finished": true}
    - utter_form_complete

“utter_form_complete”, will never be called, and it will keep setting the last “requested_slot”


(Akela Drissner) #5

this is becasue your stories don’t have any entities in them. If the user says something providing the entity caller_last_name, this should be captured in your stories as: * inform{"caller_last_name":"dafdf"}


(Adrian Humphrey) #6

Got it! Thank you very much!