Slots not being fill in form

Hello guys,

I’m building a form that I want to be fill with all the values of the entity reason found in the sentence. But I try rasa interactive to build a story and the slots were not filled.

This is my domain file:

- approve
- bye
- deny
- get_focus_recommendation
- greet
- inform_bestself
- inform_choice
- inform_feedback
- inform_focus_area
- inform_how
- inform_mood
- inform_reason
- inform_recommendation
- inform_who
- neutral_explore

entities:
- choice
- conversation
- current_score
- feedback
- focus_area
- mood
- mood_level
- reason
- time_of_day
- user_name

slots:
  feeling_description:
    type: list
    influence_conversation: false
  energy_description:
    type: list
    influence_conversation: false
  behave_description:
    type: list
    influence_conversation: false
  prioritise_description:
    type: list
    influence_conversation: false
  self_description:
    type: list
    influence_conversation: false
  habits_description:
    type: list
    influence_conversation: false
  interaction_description:
    type: list
    influence_conversation: false
  summarise_description:
    type: list
    influence_conversation: false
  current_score:
    type: float
    influence_conversation: false
    max_value: 1.0
    min_value: 0.0
  showing_up_description:
    type: list
    influence_conversation: false
  changes_description:
    type: list
    influence_conversation: false

forms:
  bestself_form:
    required_slots:
      feeling_description:
      - type: from_entity
        entity: reason
      energy_description:
      - type: from_entity
        entity: reason
      behave_description:
      - type: from_entity
        entity: reason
      prioritise_description:
      - type: from_entity
        entity: reason
      self_description:
      - type: from_entity
        entity: reason
      habits_description:
      - type: from_entity
        entity: reason
      interaction_description:
      - type: from_entity
        entity: reason
      summarise_description:
      - type: from_entity
        entity: reason
      current_score:
      - type: from_entity
        entity: current_score
      showing_up_description:
      - type: from_entity
        entity: reason
      changes_description:
      - type: from_entity
        entity: reason


This is my rule file notice that my first step in this rule is trigger by the utter where I ask the question:

  - rule: Activate form
    steps:
      - action: utter_1010_feel
      - action: bestself_form
      - active_loop: bestself_form
      
  - rule: Submit form
    condition:
      - active_loop: bestself_form
    steps:
      - action: bestself_form
      - active_loop: null
      - slot_was_set:
          - requested_slot: null
      - action: utter_1010_end

Someone know how to procede on this?

The debug log should give you a good idea of what’s going on.

@stephens Hey Greg, that part is working now!

But I’m facing a problem with my form rule.

  - rule: Activate form
    steps:
      - action: utter_1010_feel
      - action: action_listen
      - action: bestself_form
      - active_loop: bestself_form

This is how I build it.

Once the utter with the questions is activated the bots open for an input, and then runs the form, and for the first loop it’s ok! But after that the bot opens again for input and then runs the form. But I need to ask the another question of the form to the user and then run the form.

Do you know how I can do it?

I try to active with the intent but this intent is already being used on the rules, and also in others stories.

I don’t completely follow what you are trying to do but if you need to fill an additional slot based on previous slots in the form, you can used required_slots method to add the slot.

Also, not sure why you have action_listen in the above rule.

Hey Greg, thank you for the answer.

The problem was in the name of the utters, to be requested automatically it should have this syntax:

utter_ask_slotname.