Help with automation action templating

Good day! I would like to run different scripts using one automation. But unfortunately I don’t understand how to do it. Now I have implemented it like this:

  - alias: После поискать выбрать 1 фильм
    trigger:
      platform: event
      event_type: yandex_intent
      event_data:
        intent: videobox_enter_film
    condition:
      condition: template
      value_template: "{{ '1' in trigger.event.data.what }}"
    action:
      - service: script.turn_on
        entity_id: script.enter_1_film_play
        
  - alias: После поискать выбрать 2 фильм
    trigger:
      platform: event
      event_type: yandex_intent
      event_data:
        intent: videobox_enter_film
    condition:
      condition: template
      value_template: "{{ '2' in trigger.event.data.what }}"
    action:
      - service: script.turn_on
        entity_id: script.enter_2_film_play
        
  - alias: После поискать выбрать 3 фильм
    trigger:
      platform: event
      event_type: yandex_intent
      event_data:
        intent: videobox_enter_film
    condition:
      condition: template
      value_template: "{{ '3' in trigger.event.data.what }}"
    action:
      - service: script.turn_on
        entity_id: script.enter_3_film_play

But I would like everything to be in one automation.

The simplest way ive found is by using choose:
It gives you a condition which if met allows that action to be executed.

Thank you so much! I’ve been looking for such a solution for so long!

  - alias: После поискать выбрать любой фильм
    trigger:
      platform: event
      event_type: yandex_intent
      event_data:
        intent: videobox_enter_film
    action:
      - choose:
          # IF
          - conditions:
              - condition: template
                value_template: "{{ '1' in trigger.event.data.what }}"
            sequence:
              - service: script.enter_1_film_play
          # ELIF
          - conditions:
              - condition: template
                value_template: "{{ '2' in trigger.event.data.what }}"
            sequence:
              - service: script.enter_2_film_play
          # ELIF
          - conditions:
              - condition: template
                value_template: "{{ '3' in trigger.event.data.what }}"
            sequence:
              - service: script.enter_3_film_play
          # ELIF
          - conditions:
              - condition: template
                value_template: "{{ '4' in trigger.event.data.what }}"
            sequence:
              - service: script.enter_4_film_play
          # ELIF
          - conditions:
              - condition: template
                value_template: "{{ '5' in trigger.event.data.what }}"
            sequence:
              - service: script.enter_5_film_play
        # ELSE
        default:
          - service: script.turn_on
            entity_id: script.enter_6_film_play
    action:
      - choose:
          # IF
          - conditions:
              - condition: template
                value_template: "{{ trigger.event.data.what in ['1','2','3','4','5'] }}"
            sequence:
              - service: script.enter_{{ trigger.event.data.what }}_film_play
        default:
          - service: script.turn_on
            entity_id: script.enter_6_film_play

By the way, I tried this solution, but just with templates, so it did not work.
Thank you for reminding me of this method. And it works!