Make use of amazon effect / voice / whisper in node red

Hi
I already use tts to make announcements via node red it works perfectly but I would like to make use of the effects that alexa has if I call a service in home assistant using this as a message: <amazon:effect name='whispered'>I am whispering this.</amazon:effect>

I get back “I am whispering this” if I try the same in node red I get the whole thing said back to as plain text. I do mean the whole thing "less than amazon effect name equals whispered etc.
I have tried putting it into a template node as I had hoped to make use of jinja but so far nothing. Does anyone have an idea or can point me in the correct direction please.

edit
for anyone looking for answers here the best I could do is add the Alexa formatting to the call service node
If i tried to add any before the call service node it just reads it back to me as plain text if I do it as the example flow below it works.
Other options are listed here

Speech Synthesis Markup Language (SSML) Reference | Alexa Skills Kit (amazon.com)

[{"id":"e1dfe6d315d2a7d0","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"62d8a7a69f802f9a","type":"inject","z":"e1dfe6d315d2a7d0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":160,"wires":[["fec58f249801cadb"]]},{"id":"fec58f249801cadb","type":"api-render-template","z":"e1dfe6d315d2a7d0","name":"Daily Brief","server":"e7f76522.c1a328","version":0,"template":"This is a test","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"template","templateLocationType":"msg","x":650,"y":160,"wires":[["41285728ef953d3a"]]},{"id":"41285728ef953d3a","type":"api-call-service","z":"e1dfe6d315d2a7d0","name":"Alexa ","server":"e7f76522.c1a328","version":5,"debugenabled":false,"domain":"notify","service":"alexa_media_dining_room_echo","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"<amazon:domain name=\\\"conversational\\\">{{payload}}</amazon:domain>\",\"data\":{\"type\":\"announce\",\"method\":\"speak\"},\"target\":[\"media_player.dining_room_echo\"]}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":900,"y":160,"wires":[[]]},{"id":"e7f76522.c1a328","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]

Hopefully this helps someone and if you do figure out how to do this with the formatting in the message please let me know I would like to make use of more than just changing everything said.

So I have another update to this and it would appear I got it working im not 100% sure what I did differently but here is the basic flow any way

[{"id":"2eecbf1453a10d7d","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"84bf56094d069e0c","type":"inject","z":"2eecbf1453a10d7d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":400,"y":180,"wires":[["46a1dc79bd65ce9e"]]},{"id":"46a1dc79bd65ce9e","type":"change","z":"2eecbf1453a10d7d","name":"Set Target","rules":[{"t":"set","p":"target","pt":"global","to":"media_player.dining_room_echo","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":180,"wires":[["eba0ad7920506981"]]},{"id":"eba0ad7920506981","type":"api-render-template","z":"2eecbf1453a10d7d","name":"Template","server":"e7f76522.c1a328","version":0,"template":"<amazon:domain name='conversational'> This is a test . </amazon:domain>\n\n<amazon:effect name='whispered'>this is a whispered test.</amazon:effect>\n\n\nThere is a three second pause here <break time='3s'/>\nthen the speech continues.\n\n<voice name='Emma'><amazon:domain name='fun'>This is a test in the voice of Emma in a fun style. Hi I am Emma</amazon:domain></voice>","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"template","templateLocationType":"msg","x":780,"y":180,"wires":[["13c6b3a3e9b0b7ac"]]},{"id":"13c6b3a3e9b0b7ac","type":"function","z":"2eecbf1453a10d7d","name":"Create Alexa Alert","func":"\nvar target = global.get('target')\nvar message = msg.payload\n\nvar payload = \n{\n \"data\":\n    {\n    \"target\": `${target}`,\n    \"message\": `${message}`,\n    }\n}\nmsg.payload = payload\nmsg.topic = `${target}`\nreturn msg","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":1010,"y":180,"wires":[["e28c86c3d73b435c"]]},{"id":"e28c86c3d73b435c","type":"api-call-service","z":"2eecbf1453a10d7d","name":"Alexa","server":"e7f76522.c1a328","version":5,"debugenabled":false,"domain":"notify","service":"alexa_media","areaId":[],"deviceId":[],"entityId":[],"data":"{\"data\":{\"type\":\"tts\",\"method\":\"speak\"},\"target\":[\"{{payload.data.target}}\"]}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1240,"y":180,"wires":[[]]},{"id":"e7f76522.c1a328","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]

You dont need to surround anything with youll likely have alexa saying she cant access the skill. I also found that " " quotes didnt work too well but ’ ’ quotes are ok but again that could be something I did so your mileage may vary.