# Pass string to IFTTT

**URL:** <https://discourse.nodered.org/t/pass-string-to-ifttt/81849>\
**Category:** General\
**Created:** [7 October 2023 17:57 UTC](https://discourse.nodered.org/t/pass-string-to-ifttt/81849 "2023-10-07T17:57:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eerke2021](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eerke2021/32/83528_2.png) [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Post date:** [7 October 2023 17:57 UTC](https://discourse.nodered.org/t/pass-string-to-ifttt/81849/1 "2023-10-07T17:57:49Z")

</div>

Is there a way to pass a string to IFTTT notifications? I’ve tried node-red-contrib-ifttt but there doesn’t seem to be an option.  
I can get a notification fine but I’m guessing I need to convert the String to a JSON object and then append pairs of curly brackets to each side before making a HTTP call, or is there a better way you’d suggest?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [7 October 2023 18:21 UTC](https://discourse.nodered.org/t/pass-string-to-ifttt/81849/2 "2023-10-07T18:21:59Z")

</div>

Welcome to the forums @eerke2021

I don't use IFTTT, but the node you have linked to, can indeed make use of values.

Using a `Function` node, sending this to the IFTTT Node, will be utilised by IFTTT in the way it is intended.

```js
msg.payload = {
  value1 : 'Some Value',
  value2 : 'Some Value',
  value3 : msg.payload.someOtherValue
} 

return msg

```

Read from source code : [https://github.com/diegopamio/node-red-contrib-ifttt/blob/305e23cd622adeadd6635ce07c3e54afbb5e7ba3/nodes/ifttt.js#L21](https://github.com/diegopamio/node-red-contrib-ifttt/blob/305e23cd622adeadd6635ce07c3e54afbb5e7ba3/nodes/ifttt.js#L21)

It can also accept `msg.payload.eventName` - overriding what is setup In the node settings.  
here : [https://github.com/diegopamio/node-red-contrib-ifttt/blob/305e23cd622adeadd6635ce07c3e54afbb5e7ba3/nodes/ifttt.js#L26](https://github.com/diegopamio/node-red-contrib-ifttt/blob/305e23cd622adeadd6635ce07c3e54afbb5e7ba3/nodes/ifttt.js#L26)

---

<div class="post-metadata">

**Author:** ![eerke2021](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eerke2021/32/83528_2.png) [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Post date:** [7 October 2023 19:51 UTC](https://discourse.nodered.org/t/pass-string-to-ifttt/81849/3 "2023-10-07T19:51:56Z")

</div>

I too haven’t had much to do with IFTTT since they stopped it being free. You used to be able to sent it 3 values surrounded by something. I think pairs of wiggly brackets. Now I think you can also send 1 JSON object. The reason I thought of using IIFTTT is that you still get 2 free “applets”. How do people round here get notifications to their phones for free? I imagine there is a way of doing in on Android with Tasker but this seemed sensible of I can figure out how to take a message and attach it to the IFTTT notification. It works fine as it is but I am limited to 2 different notifications with a free IFTTT account.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [7 October 2023 19:58 UTC](https://discourse.nodered.org/t/pass-string-to-ifttt/81849/4 "2023-10-07T19:58:20Z")

</div>

If you want to get notifications on your phone, I can only suggest what I use.  
**Disclaimer** : There are plenty of others, and I am only stating what I use.

I use Pushover:

> **[Pushover: Simple Notifications for Android, iPhone, iPad, and Desktop](https://pushover.net)**
>
> Pushover makes it easy to get real-time notifications on your Android, iPhone, iPad, and Desktop (Android Wear and Apple Watch, too!)

And a brilliant node for it:

> **[node-red-node-pushover](https://flows.nodered.org/node/node-red-node-pushover)**
>
> A Node-RED node to send alerts via Pushover

Developed by our very own Node RED founders.

its purpose is for mobile notifications - nothing more, I use it to let me know if the home Security system has been triggered, and by what sensor

---

<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:** [7 October 2023 20:47 UTC](https://discourse.nodered.org/t/pass-string-to-ifttt/81849/5 "2023-10-07T20:47:26Z")

</div>

> [@eerke2021](#):
>
> How do people round here get notifications to their phones for free?

I and other also use telegram and [noder-red-contrib-telegrambot](https://flows.nodered.org/node/node-red-contrib-telegrambot) just set up a private group and add a bot using botfather. You can receive messages, files, send messages to node-red, and much more.

---

<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:** [6 December 2023 20:48 UTC](https://discourse.nodered.org/t/pass-string-to-ifttt/81849/6 "2023-12-06T20:48:11Z")

</div>

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