How to configure SSML in node red

Hi everyone,

I have this script in node red that passes a certain message as a variable to the alexa announce service and then it is being announced, however i cannot get it to work with ssml configuration.

varmessage = msg.payload;
msg.payload = { "entity_id": varmessage };
msg.payload.data = { "message": varmessage , "data": { "type": "announce", "method": "speak" }, "target": ["media_player.living_room_echo_dot"] };
return msg;

How can i adapt it to this example?

<speak>
    <amazon:emotion name="excited" intensity="medium">
        Five seconds till lift off!
        <say-as interpret-as="digits">54321</say-as>.
        Lift off!
    </amazon:emotion>
</speak>