Need help with data section of text_notify script (data section works when called directly to service but not when its called through script, WHY?)

Can someone possibly help me figure out why does the below work but the second code post does not? (On the first code post, I get the message to both the iOS phones and the tv but on the second code post, I don’t get a message to the phones (notify.parents)

There are no errors in the logs.

WORKS:

  text_notify:
    sequence:
    - service: notify.parents
      data:
        title: '{{ title }}'
        message: '{{ message }}'
    - service: notify.tvs
      data:
        message: '{{ message }}'
        title: '{{ title }}'
        data:
          fontsize: max
          position: bottom-right
          duration: 10
          transparency: 25%
          color: indigo
          interrupt: 0

WORKS (CALLED DIRECTLY BY SERVICE–> rather than through script and variable); and it groups the messages properly.

    - service: notify.parents
      data:
        title: '{{ title }}'
        message: '{{ message }}'
        data:
          group: testgroup
          tag: 

DOES NOT WORK:—> used by an automation as shown in the last code post.

  text_notify:
    sequence:
    - service: notify.parents
      data:
        title: '{{ title }}'
        message: '{{ message }}'
        data:
          group: '{{ group }}'
          tag: '{{ tag }}'

I get no message at all, its like the “second level” data cannot be handled properly when I try to use it through a “text_notify” script.

  - id: dog_mode_deactivated
    alias: Dog mode Deactivated
    initial_state: true
    trigger:
      - platform: state
        entity_id: input_boolean.dog_mode
        to: "off"
    action:
      - service: script.text_notify
        data:
          who: "parents"
          message: "Dog Mode has been disabled"
          data:
            group: 'modes'
            tag:
      - service: light.turn_off
        data: {}
        target:
          entity_id:
            - light.long_kitchen_cabinet_accents
            - light.short_kitchen_cabinet_accents

Just so anyone that finds this in the future knows, this ended up getting corrected by using the proper indention on the calling script or automation. You pass all data properties at a single indention level. Below is the proper indention of the script.text_notify indention block. (This can be compared to the previous post which is incorrect and caused no message to be sent, but also no error in the logs)

 - id: dog_mode_deactivated
    alias: Dog mode Deactivated
    initial_state: true
    trigger:
      - platform: state
        entity_id: input_boolean.dog_mode
        to: "off"
    action:
      - service: script.text_notify
        data:
          who: "parents"
          message: "Dog Mode has been disabled"
          data:
          group: 'modes'
          tag:
      - service: light.turn_off
        data: {}
        target:
          entity_id:
            - light.long_kitchen_cabinet_accents
            - light.short_kitchen_cabinet_accents