# Trying to get Alexa to speak a flow variable via a change node

**URL:** <https://discourse.nodered.org/t/trying-to-get-alexa-to-speak-a-flow-variable-via-a-change-node/72065>\
**Category:** General\
**Created:** [12 December 2022 10:49 UTC](https://discourse.nodered.org/t/trying-to-get-alexa-to-speak-a-flow-variable-via-a-change-node/72065 "2022-12-12T10:49:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikee1234K](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikee1234k/32/70283_2.png) [@Mikee1234K](https://discourse.nodered.org/u/Mikee1234K)\
**Post date:** [12 December 2022 10:49 UTC](https://discourse.nodered.org/t/trying-to-get-alexa-to-speak-a-flow-variable-via-a-change-node/72065/1 "2022-12-12T10:49:22Z")

</div>

I am using Alexa to speak a message with a variable. This (in a change node as a expression) for example works:

```auto
"your weatherstation is reporting a temperature of " & msg.payload.value & " degrees"

```

Now I am trying to get her to speak a message with a flow variable (which in this case has a value of 37.4)

```auto
"your hot water has reached a temperature of" & hwtemp & " degrees"

```

She speaks the message, but without the 37.4, so just

your hot water has reached a temperature of degrees

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 December 2022 11:49 UTC](https://discourse.nodered.org/t/trying-to-get-alexa-to-speak-a-flow-variable-via-a-change-node/72065/2 "2022-12-12T11:49:46Z")

</div>

You do not need the change node as you can use JSONata expressions in the alexa remote routine node  
e.g.

 ![chrome_screenshot_1670845742925](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/91fcd061337f23e86e1d1c3ef2de4daf4b800c48.png)

---

<div class="post-metadata">

**Author:** ![Mikee1234K](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikee1234k/32/70283_2.png) [@Mikee1234K](https://discourse.nodered.org/u/Mikee1234K)\
**Post date:** [12 December 2022 13:39 UTC](https://discourse.nodered.org/t/trying-to-get-alexa-to-speak-a-flow-variable-via-a-change-node/72065/3 "2022-12-12T13:39:40Z")

</div>

Good to know, in my case I use link in/out to link to a routine node from various flows, so I have to use a change node unless I have multiple alexa routine nodes. Not sure what the better way is  
But changing my jsonata to your expression worked

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 December 2022 13:40 UTC](https://discourse.nodered.org/t/trying-to-get-alexa-to-speak-a-flow-variable-via-a-change-node/72065/4 "2022-12-26T13:40:21Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
