# Whatsapp-cmb account node

**URL:** <https://discourse.nodered.org/t/whatsapp-cmb-account-node/81768>\
**Category:** General\
**Created:** [4 October 2023 13:12 UTC](https://discourse.nodered.org/t/whatsapp-cmb-account-node/81768 "2023-10-04T13:12:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertobuti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/robertobuti/32/81936_2.png) [@robertobuti](https://discourse.nodered.org/u/robertobuti)\
**Post date:** [4 October 2023 13:12 UTC](https://discourse.nodered.org/t/whatsapp-cmb-account-node/81768/1 "2023-10-04T13:12:04Z")

</div>

Hello,  
i'm using this node and it's fine, author Daniel doing a great job for this (thanks for this), it works perfectly as proponed.  
if you dont'know it see here or from node-red palette manager:  
[https://github.com/PfisterDaniel/node-red-contrib-whatsapp-cmb](https://github.com/PfisterDaniel/node-red-contrib-whatsapp-cmb)  
Now i need to use this node with phone number & api key from tex inut field node from ui, but in the whatsapp node these account information are placed in configuration node, not from variable.  
Any suggestion / idea on how to do ?

thank

---

<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:** [4 October 2023 13:19 UTC](https://discourse.nodered.org/t/whatsapp-cmb-account-node/81768/2 "2023-10-04T13:19:46Z")

</div>

Hi @robertobuti

Looking at the Node's source code - it does not allow passing Creds in a message, it can only be set at Node level (in this case the Account Node).

This will need to be raised as a feature request with the author.

---

<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:** [4 October 2023 13:34 UTC](https://discourse.nodered.org/t/whatsapp-cmb-account-node/81768/3 "2023-10-04T13:34:12Z")

</div>

With that said, you can actually achieve this if you want to go about it yourself with the added benefit of Learning Node RED at the same time 🤓

```auto
[{"id":"0a0bbe2cf8be2537","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"7e94b257fac58d73","type":"function","z":"0a0bbe2cf8be2537","name":"Encode","func":"let URI = `https://api.callmebot.com/whatsapp.php?`\nURI += `phone=${msg.payload.phone}`\nURI += `&text=${encodeURIComponent(msg.payload.message)}`\nURI += `&apikey=${msg.payload.apiKey}`\nURI += `&source=nodered`\n\nreturn {\n url: URI\n}\n\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":290,"y":115,"wires":[["3ca73dbf9197dba2"]]},{"id":"b155c33874bbf572","type":"inject","z":"0a0bbe2cf8be2537","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"phone\":\"000000\",\"message\":\"Hello, World\",\"apiKey\":\"xxxxxx\"}","payloadType":"json","x":135,"y":115,"wires":[["7e94b257fac58d73"]]},{"id":"3ca73dbf9197dba2","type":"http request","z":"0a0bbe2cf8be2537","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":305,"y":190,"wires":[["43ca70dcb26bb108"]]},{"id":"43ca70dcb26bb108","type":"debug","z":"0a0bbe2cf8be2537","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":530,"y":190,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![robertobuti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/robertobuti/32/81936_2.png) [@robertobuti](https://discourse.nodered.org/u/robertobuti)\
**Post date:** [4 October 2023 13:39 UTC](https://discourse.nodered.org/t/whatsapp-cmb-account-node/81768/4 "2023-10-04T13:39:08Z")

</div>

Fine,  
it's a good workaround , i play on this.  
then i will propone a improvement suggestion on githut to Daniel.  
Thanks 😀

---

<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:** [18 October 2023 13:39 UTC](https://discourse.nodered.org/t/whatsapp-cmb-account-node/81768/5 "2023-10-18T13:39:18Z")

</div>

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