Web Trigger Button With Dynamic Input

I have a web trigger in my configuration like this…

rest_command:
  kitchen_c4_t1:
    url: 'http://myurl.duckdns.org:52883/announce?message=1+2+3+4+5+6&submit_button_type=Kitchen'

and then I have a button setup like this:

name: Kitchen C4
tap_action:
  action: call-service
  service: rest_command.kitchen_c4_t1
type: button

And it works great but instead of having to create a new button for every message I want to submit is there a way to have a card with an input box and then it dynamically inserts it into the URL? So if I entered “hello there” it would have the URL set as “http://myurl.duckdns.org:52883/announce?message=hello+there&submit_button_type=Kitchen

have you tryed using the {{ }}

have a input_text

  text1:
    name: manual_message
    initial: 'Enter your text here'

then in you rest_command

rest_command:
  kitchen_c4_t1:
    url: 'http://myurl.duckdns.org:52883/announce?message={{states('input_text.text1')}}&submit_button_type=Kitchen'

Thank you for the suggestion. Im having some problem figuring out where to implement the first part…

  text1:
    name: manual_message
    initial: 'Enter your text here'

Am I adding that to my configuration.yaml file, or adding it as a card (guessing I would need a plugin from HACS for a special card type?) Can you guide me a little further on this part please?

sorry bro if you added it to the config file

make a section called input_text

so

input_text:
    text1:
    name: manual_message
    initial: 'Enter your text here'

watch the spacing

or you can

input_text: !include input_text.yaml

then in input_text.yaml
put the

  text1:
    name: manual_message
    initial: 'Enter your text here'

Im getting this error…

Error loading /config/configuration.yaml: while parsing a block mapping
in "/config/configuration.yaml", line 18, column 5
expected <block end>, but found '<scalar>'
in "/config/configuration.yaml", line 18, column 70

the code I have is…

rest_command:
  kitchen_c4_t1:
    url: 'http://myurl.duckdns.org:52883/announce?message={{states('input_text.text1')}}&submit_button_type=Kitchen'

I changed ‘input_text’ to “input_text” and that resolved the issue and thanks to your help its working exactly as desired, thank you for helping I really appreciate your help & time.

those bloody double Quotes single Quotes Mac Quotes marks

they are a plain in the ass some times

reason why it broke you started with single quote so when the sour the next single quote though that was the end. and tryed to do the Maths

I always used double quotes at start end and single quotes in the middle
and that form the old school coding

10 print “hello”
20 goto 10