Filling slot with free text

Hey guys, I have a form and I want to fill the slot with free text, regardless the entities or intents found on it.

I manage to fill the slots but if I don’t type exactly what is written in the story the utterances are not going as it should after the form.

Someone know what could be happening?

Rasa version:

Rasa Version      :         2.8.21
Minimum Compatible Version: 2.8.9
Rasa SDK Version  :         2.8.5

This is my stories file, if I type using rasa shell exactly what is written here the slots are filled and everything run like it should. But if I don’t bot open for user input after this: - action: utter_feedback_received And don’t follow the path after it:

- story: interactive_story_1
  steps:
  - intent: greet
  - action: utter_common_node
  - action: action_router
  - action: action_who_validation
  - action: action_weekly_validation
  - action: utter_weekly_time_check
  - intent: approve
  - action: action_weekly_summary
  - slot_was_set:
    - weekly_timestamp: 1652315379.860514
  - action: utter_weekly_no_reports
  - action: weekly_no_data_form
  - active_loop: weekly_no_data_form
  - slot_was_set:
    - requested_slot: weekly_rating_obstacle
  - slot_was_set:
    - weekly_rating_obstacle: I don't know
  - slot_was_set:
    - requested_slot: weekly_future_help
  - slot_was_set:
    - weekly_future_help: Remember me
  - slot_was_set:
    - requested_slot: null
  - active_loop: null
  - action: utter_feedback_received
  - action: utter_weekly_why_track
  - action: utter_weekly_no_mood
  - action: utter_weekly_mood_redirect
  - action: action_greet_dr
  - intent: inform_mood
    entities:
    - mood_level: 2

This is my rule file:

- rule: Activate weekly no data form
    steps:
    - action: weekly_no_data_form
    - slot_was_set:
      - weekly_rating_obstacle: San Antonio
      - weekly_future_help: San Antonio
    - active_loop: weekly_no_data_form
  
  - rule: Desactivate weekly no data form
    condition:
    - active_loop: weekly_no_data_form
    steps:
    - action: weekly_no_data_form
    - active_loop: null
    - slot_was_set:
      - weekly_rating_obstacle: San Antonio
      - weekly_future_help: San Antonio
      - requested_slot: null
    - action: utter_feedback_received
    wait_for_user_input: false

And my domain file:

**Slots:**
  weekly_rating_obstacle:
    type: text
    influence_conversation: true
  weekly_future_help:
    type: text
    influence_conversation: true

**Form:**
  weekly_no_data_form:
    required_slots:
      weekly_rating_obstacle:
      - type: from_text
      weekly_future_help:
      - type: from_text

You shouldn’t be using influence_conversation: true nor the interactive learning stories and rules with featureized slots.

Use standard forms with unfeaturized slots. Use a simple rule to enter the form and submit.

1 Like