How to specify multiple response variants with multiple custom channels?

Hi,

I have a Rasa installation with multiple custom channels, and there are multiple response variants in the domains for the different intents. I can specify the responses in the following way (based on the documentation Responses (rasa.com)):

responses:
  utter_intent_1:
  - channel: channel_1
    text: response_in1_ch1
  - channel: channel_2
    text: response_in1_ch2
  utter_intent_2:
  - channel: channel_1
    text: response_in2_ch1
  - channel: channel_2
    text: response_in2_ch2

But if I would like to specify multiple variants for one given channel of an intent, I need the specify the channel again and again, like this:

responses:
  utter_intent_1:
  - channel: channel_1
    text: response_in1_ch1_variant_1
  - channel: channel_2
    text: response_in1_ch2_variant_1
  - channel: channel_1
    text: response_in1_ch1_variant_2
  - channel: channel_2
    text: response_in1_ch2_variant_2
  utter_intent_2:
  - channel: channel_1
    text: response_in2_ch1_variant_1
  - channel: channel_2
    text: response_in2_ch2_variant_1
  - channel: channel_1
    text: response_in2_ch1_variant_2
  - channel: channel_2
    text: response_in2_ch2_variant_2

Is there any other way to implement this (like grouping somehow the responses under a given channel)?

Thanks for any suggestion!

Did you try this ?

responses:
  utter_intent_1:
  - channel: channel_1
    text: response_in1_ch1_variant_1
    text: response_in1_ch1_variant_2
  - channel: channel_2
    text: response_in1_ch2_variant_1
    text: response_in1_ch2_variant_2

Yes, I have tried, but it is not a valid yaml, unfortunately, and does not work… (I can’t remember the exact error/warning message by heart, but I may check it tomorrow)

Hi, you might have to give the channel below your text I believe. Check this out → Responses

Hi, Yes, I have started with that (channel below the text), but Rasa (or Rasa X) re-structured the file automatically…