RASA X change slots order in form

Hi, I wanted to ask if there is a reason for alphabetical order of slots used by forms (defined in domain file) when using RASA X?

I have something like this in my domain file:

 personal_data_form:
    name_and_surname:
      - entity: persName
        type: from_entity
    date_of_birth:
      - entity: time
        type: from_entity

When I start RASA X on my server, it edits my domain file and introduce an alphabetical order to my slots. Like this:

personal_data_form:
    date_of_birth:
      - entity: time
        type: from_entity
    name_and_surname:
      - entity: persName
        type: from_entity

Is that a desired behavior? I want my form to ask for name first (and then for date of birth). Rasa shell works just fine, but RASA X breaks the order of my slots and the dialog is incoherent.

Thanks in advance for response/advice.

@BarMin, you can use custom action to ask for the next action, i’ll send you the docs of teaching how you should do. Hope it helps :smiley:

1 Like

AFAIK, this is a bug in the current version of Rasa X and a tracked issue. It should be fixed in a release soon. In the meantime, you can use the custom action workaround in the comment above.

1 Like

Thanks for the answers. I actually just add numbers to my slots like:

    1_name_and_surname:
      - entity: persName
        type: from_entity
    2_date_of_birth:
      - entity: time
        type: from_entity

It’s not very beautiful, but it works both in RASA X and RASA and I didn’t have to create any custom actions this way (less code is always better :D)

When this bug will be fixed i will just remove the indices and that’s it.

2 Likes