Message alexa with input text

Hi guys, this is my first post and I take this opportunity to say hello.
I wanted some help.
I managed through automation to adjust the volume of alexa through input number.
I can not in any way to make Alexa speak with a text input created by me.
Can anyone help me with yaml code to create an automation? Thanks
This is automation volume

alias: Volume echo salotto
description: ""
trigger:
  - platform: state
    entity_id:
      - input_number.volume_echo_salotto
condition: []
action:
  - service: media_player.volume_set
    data_template:
      entity_id: media_player.echo_salotto
      volume_level: "{{ states('input_number.volume_echo_salotto') }}"
mode: single

If you are trying to have it adjust the volume, then speak a message it is often necessary to have a brief delay between the two commands or the second command will not be processed by the Alexa device.

alias: Volume echo salotto
description: ""
trigger:
  - platform: state
    entity_id:
      - input_number.volume_echo_salotto
condition: []
action:
  - service: media_player.volume_set
    data_template:
      entity_id: media_player.echo_salotto
      volume_level: "{{ states('input_number.volume_echo_salotto') }}"
  - delay: 2
  - service: notify.alexa_media
    data:
      target: media_player.echo_salotto
      message: "{{ states('input_text.announcement_text') }}"
mode: single

Hi, thanks for answering me.
What I would like to realize that I have seen working, is practically being able to make Alexa execute a reminder written in an input text at a time set by me with a date / time input. With another automation
Thank you

Hello, thank you I am infinitely grateful I succeeded.

Time trigger and Input Datetime

alias: Remind at time echo salotto
description: ""
trigger:
  - platform: time
    at: input_datetime.reminder_time
condition: []
action: 
  - service: notify.alexa_media
    data:
      target: media_player.echo_salotto
      message: "{{ states('input_text.announcement_text') }}"
mode: single
1 Like

Thank you, perfect.