Automation Action proper Service syntax

I’m stuck understanding how to add simple code in the Automation Trigger Action section. Below, I would like to add the message (highlighted in the first image) to my Automation Action in the service area (second image)…how would I write it? Thanks.

ha_action_code
ha_action_automation

This site can help you convert YAML to JSON. You’d paste the data block (but not the data: line itself) to the YAML box there.

That would turn:

message: "Test"

into

{"message": "Test"}
1 Like

Thank you.