Slot type from_text not working

I want to fill slot with exact task name and task description value that user is providing to chatbot. I am using from_text to do that but it is giving below error:

InvalidSlotTypeException: Failed to find slot type, ‘from_text’ is neither a known type nor user-defined. If you are creating your own slot type, make sure its module path is correct. You can find all build in types at Domain

domain.yml

entities:
  - task_name
  - task_description

slots:
  task_name:
    type: from_text
    mappings:
      - type: from_entity
        entity: task_name
  task_description:
    type: from_text
    mappings:
      - type: from_entity
        entity: task_description

Rasa Version      :         3.0.9
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.0.6
Rasa X Version    :         None
Python Version    :         3.8.3
Operating System  :         Windows-10-10.0.19041-SP0

type: from_text is wrong :slight_smile: Especially that you used from_entity right after. Even if it worked, that’s already a contradiction.

Try this:

  task_name:
    type: text
    mappings:
      - type: from_text
        intent: intent_name
        not_intent: excluded_intent

Read the docs for more info:

Thanks a lot Chris… I am very new to RASA as you can already see :slight_smile:

1 Like