FormAction issues - Rasa Open Source - Rasa Community Forum

👋 Introducing the Rasa Playground

FormAction issues

post by younghao on Sep 17, 2018

When I use FormAction, I meet a problem.I set two slot in FormAction, like that:

def required_fields():
    return [\
        EntityFormField("car", "car"),\
        EntityFormField("house", "house")\
    ]

so, I want to ask people “do u have a car?” “do u have a house?”, then we extract entities from people’s answers, like “yes, I have a car”. But people’s answers aren’t always standard. For example, they just reply “yes” or “correct”, no entities involved. Then, the FormAction will be in loop.

so, How can I solve this problem? thx.

post by akelad on Sep 18, 2018

this can be done with a BooleanFormField https://rasa.com/docs/core/slotfilling/#slot-filling-with-a-formaction

post by vinaynagpal9 on Sep 19, 2018


python actions.py Traceback (most recent call last): File "actions.py", line 8, in from rasa_core.actions.forms import ( ModuleNotFoundError: No module named ‘rasa_core.actions.forms’

please solve this problem action forms are not working in new version i have tried your solution


from rasa_core.actions.forms import (
EntityFormField,
FormAction,
)

not working

post by younghao on Sep 19, 2018

from rasa_core_sdk.forms import FormAction, EntityFormField

this can be done

post by JoeTorino on Oct 8, 2018

Thanks, I couldn’t find the function to import from rasa_core, it’s not provided in the documentation.