How to send message variable to script

so trying to send a text from node-red to a home assistant script without success.

home-assistant script:

  mycroft_tts_general:
    alias: 'tts picroft_general'
    sequence:
      - service: notify.pycroft_tts
        data_template:
          message: '{{ trigger.payload }}'

call service in node-red:

what is wrong with my setup?

from node-red you can call notify.pycroft_tts service directly, domain should be notify.

Also the data field you need to wrap it curly braces.

ah yes, now calling notify.pycroft_tts and also put the curly braces, working good :slight_smile: