"Trigger not defined" after a "Wait for a trigger"

As in the topic Title, i need to know wich user has triggered an actionable notification.

I have an automation who calls a script. Inside the script there is a notification with a question:
I wish once an user reply to the question, other user will be informed.
So, i have a "wait_for_trigger: " after an actionable notification (who will be triggered or not)

Once triggered (the action before this is a “wait for a trigger”) :

i have tried also to get the name without the variable, with no luck:

[.....]
  - alias: Aspetta una scelta
    wait_for_trigger:
      - alias: Scelta Sto venendo
        platform: event
        event_type: mobile_app_notification_action
        event_data:
          action: "{{ 'doorbellggpedonale_apri' }}"
      - alias: Scelta Non c'è nessuno
        platform: event
        event_type: mobile_app_notification_action
        event_data:
          action: "{{ 'doorbellggpedonale_ignora' }}"
    timeout:
      hours: 0
      minutes: 0
      seconds: 35
      milliseconds: 0
    enabled: true
  - variables:
      utente: >-
       {% set uid = trigger.event.context.user_id if trigger.platform == event else
    trigger.to_state.context.user_id %} {% set p = states.person |
    selectattr('attributes.user_id', 'eq', uid) | list %} {{
    p[0].attributes.friendly_name if p | count == 1 else 'Hey tu' }}}
  - alias: Azioni
    choose:
      - conditions:
          - condition: template
            alias: Timeout
            value_template: "{{ wait.remaining == 0 }}"
        sequence:
          - alias: Play non c'è nessuno
            service: esphome.doorbellgg_pedonale_dfplayer_play
            data:
              file: 2
            enabled: false
          - service: notify.notifica_tutti
            data:
              message: clear_notification
              data:
                tag: bussata-pedonale
            alias: Cancella notifica
          - alias: Notifica Senza risposta
            data:
              data:
                clickAction: /lovelace/citofono
                image: /media/local/doorbells/gar_pedonale_ultimavisita.jpg
                priority: high
                ttl: 0
                tag: bussata-pedonale
                channel: doorbellpedonale
                importance: low
                car_ui: true
                push:
                  sound:
                    name: default
                    volume: 0
                    critical: 0
                vibrationPattern: >-
                  100, 1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000, 100,
                  1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000, 100
              message: Citofonata senza risposta (forse)
              title: Citofono SURNAME
            service: notify.notifica_tutti
      - conditions:
          - condition: template
            alias: Notifica cancellata
            value_template: "{{ wait.trigger.event_type == 'mobile_app_notification_cleared'}}"
        sequence:
          - alias: Play non c'è nessuno
            service: esphome.doorbellgg_pedonale_dfplayer_play
            data:
              file: 2
            enabled: false
          - service: notify.notifica_tutti
            data:
              message: clear_notification
              data:
                tag: bussata-pedonale
            alias: Cancella notifica tutti
          - alias: Notifica della cancellazione della notifica
            data:
              data:
                clickAction: /lovelace/citofono
                image: /media/local/doorbells/gar_pedonale_ultimavisita.jpg
                priority: high
                ttl: 0
                tag: bussata-pedonale
                channel: doorbellpedonale
                importance: low
                car_ui: true
                push:
                  sound:
                    name: default
                    volume: 0
                    critical: 0
                vibrationPattern: >-
                  100, 1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000, 100,
                  1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000, 100
              title: Citofono SURNAME
              message: "{{ utente }} ha ignorato la notifica"
            service: notify.notifica_tutti
      - conditions:
          - alias: Ha risposto apri
            condition: template
            value_template: "{{ wait.trigger.event.data.action == 'doorbellggpedonale_apri' }}"
        sequence:
          - alias: Se c'è qualcuno al pedonale
            if:
              - condition: numeric_state
                entity_id: sensor.frig_gar_pedonale_person_count
                above: 0
                alias: Se Frig gar pedonale person count > 0
            then:
              - type: turn_on
                device_id: 7a324ad8d4a4831e86cd755645d4ccb5
                entity_id: 4bbd1a1881e67c48b314ec360fb95f29
                domain: switch
                alias: Apri cancelletto pedonale
              - service: notify.notifica_tutti
                data:
                  message: clear_notification
                  data:
                    tag: bussata-pedonale
                alias: Cancella notifica
              - alias: Notifica risposta STO VENENDO
                data:
                  data:
                    clickAction: /lovelace/citofono
                    image: /media/local/doorbells/gar_pedonale_ultimavisita.jpg
                    priority: high
                    ttl: 0
                    tag: bussata-pedonale
                    channel: doorbellpedonale
                    importance: low
                    car_ui: true
                    push:
                      sound:
                        name: default
                        volume: 0
                        critical: 0
                    vibrationPattern: >-
                      100, 1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000,
                      100, 1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000, 100
                  message: "{{ utente }} ha aperto il Pedonale"
                  title: Citofono SURNAME
                service: notify.notifica_tutti
            else:
              - alias: Apri cancello scorrevole
                type: turn_on
                device_id: 11375b748e9013e568a189a995300a79
                entity_id: 19596939997f5684938beed13d71bb48
                domain: switch
              - service: notify.notifica_tutti
                data:
                  message: clear_notification
                  data:
                    tag: bussata-pedonale
                alias: Cancella notifica
              - alias: Notifica risposta STO VENENDO
                data:
                  data:
                    clickAction: /lovelace/citofono
                    image: /media/local/doorbells/gar_pedonale_ultimavisita.jpg
                    priority: high
                    ttl: 0
                    tag: bussata-pedonale
                    channel: doorbellpedonale
                    importance: low
                    car_ui: true
                    push:
                      sound:
                        name: default
                        volume: 0
                        critical: 0
                    vibrationPattern: >-
                      100, 1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000,
                      100, 1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000, 100
                  message: "{{ utente }} ha aperto lo Scorrevole"
                  title: Citofono SURNAME
                service: notify.notifica_tutti
      - conditions:
          - alias: Ha risposto NESSUNO
            condition: template
            value_template: >-
              {{ wait.trigger.event.data.action == 'doorbellggpedonale_ignora'
              }}
        sequence:
          - service: esphome.doorbellgg_pedonale_dfplayer_play
            data:
              file: 2
            enabled: false
          - service: notify.notifica_tutti
            data:
              message: clear_notification
              data:
                tag: bussata-pedonale
            alias: Cancella notifica
          - alias: Notifica scelta NESSUNO
            data:
              data:
                clickAction: /lovelace/citofono
                image: /media/local/doorbells/gar_pedonale_ultimavisita.jpg
                priority: high
                ttl: 0
                tag: bussata-pedonale
                channel: doorbellpedonale
                importance: low
                car_ui: true
                push:
                  sound:
                    name: default
                    volume: 0
                    critical: 0
                vibrationPattern: >-
                  100, 1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000, 100,
                  1000, 100, 1000, 100, 1000, 100, 1000, 100, 1000, 100
              message: "{{ utente }} ha ignorato l'apertura"
              title: Citofono SURNAME
            service: notify.notifica_tutti
        alias: Ha risposto Ignora
    enabled: true
mode: single
icon: mdi:bell-ring-outline

what am i missing?

that’s the EXACT FORMULA! (wait.trigger.event.context.user_id))

    {% set uid = wait.trigger.event.context.user_id %} {% set p = states.person |
    selectattr('attributes.user_id', 'eq', uid) | list %} {{
    p[0].attributes.friendly_name if p | count == 1 else 'Someone' }}