FormAction don´t validate slots that are filled before the call of FormAction

The FormAction works perfectly. But if you want it to check slots that were already filled with a value before it was called, it does not validate them and treats them as if they were valid.

Is this behavior an error or is it intentional?

1 Like

Hi @weberan96934, which version of SDK are you using? On the latest version, this should be fixed. Also when are your slots filled – on the user input that actually calls the form action, or before that?

Before the FormAction starts, various Slots are filled. After this has happened the FormAction should start and validate these slots.

Right yes, that should be taken care of if I understand you correctly. Can you perhaps post an example story that includes this form?

Again, what version of SDK are you on? Validation of pre-filled slots is a relatively new addition to SDK.

core: 13.8, nlu: 14.0

## Generated Story -3024517412927406706
    * fraud
        - utter_fraud
        - utter_exposeUrl
    * exposeUrl{"exposeUrl": "https://www.immowelt.de/expose/2356426d344g46"}
        - slot{"exposeUrl": "https://www.immowelt.de/expose/2356426d344g46"}
        - utter_fraudCategory
    * fraudCategory{"fraudCategory": "3"}
        - slot{"fraudCategory": "3"}
        - utter_fraudReason
    * fraudReason{"fraudReason": "das objekt exisitiert \u00fcberhaupt nicht ! leider habe ich bereits die kaution gezahlt ! seitdem habe ich von dem angeblichen vermieter nichts mehr geh\u00f6rt !"}
        - slot{"fraudReason": "das objekt exisitiert \u00fcberhaupt nicht ! leider habe ich bereits die kaution gezahlt ! seitdem habe ich von dem angeblichen vermieter nichts mehr geh\u00f6rt !"}
        - fraud_form
        - form{"name": "fraud_form"}
        - form{"name": null}
        - slot{"requested_slot": null}

I updated to core sdk version 0.14.0, core version 0.14.4 and nlu version 0.15.0. But that didn´t changed the problem.