# WhatsApp for Node-RED

# Sending messages via Node Red

1\. First, let's add the inject function

<figure id="bkmrk-" style="display:block;margin:0px 0px 1em;padding:0px;clear:both;color:rgb(213,214,215);font-family:Roboto, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(34,34,34);">![8de92e87266f66a4d73054cc365ead64.png](https://bookstack-support-u7942.vm.elestio.app/uploads/images/gallery/2026-03/embedded-image-ywbedceb.png)</figure>2\. Next, in the WhatsApp tab, select the "Send a text" function

<figure id="bkmrk--1" style="display:block;margin:0px 0px 1em;padding:0px;clear:both;color:rgb(213,214,215);font-family:Roboto, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(34,34,34);">![353e72b7d4e9b4020822ae27721365fc.png](https://bookstack-support-u7942.vm.elestio.app/uploads/images/gallery/2026-03/embedded-image-974dnrsa.png)</figure>3\. After adding a function to the working field, double-click on it. In the account tab, add your account using the keys that we will send you after the connection is completed. In the Destination tab, enter the recipient's phone number, in the "Message" tab - the text of the template message.

<figure id="bkmrk--2" style="display:block;margin:0px 0px 1em;padding:0px;clear:both;color:rgb(213,214,215);font-family:Roboto, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(34,34,34);">![b70698d95138a3ffcd7ba2df2d9287d3.png](https://bookstack-support-u7942.vm.elestio.app/uploads/images/gallery/2026-03/embedded-image-sezuiezg.png)</figure><figure id="bkmrk--3" style="display:block;margin:0px 0px 1em;padding:0px;clear:both;color:rgb(213,214,215);font-family:Roboto, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(34,34,34);">![6da91648de7cd1dab71704a9d53d4b38.png](https://bookstack-support-u7942.vm.elestio.app/uploads/images/gallery/2026-03/embedded-image-w0qhkehh.png)</figure>4\. Next, add the Debug tab

<figure id="bkmrk--4" style="display:block;margin:0px 0px 1em;padding:0px;clear:both;color:rgb(213,214,215);font-family:Roboto, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(34,34,34);">![6cecf7c7c9bdbf32a513f755a4a03dcb.png](https://bookstack-support-u7942.vm.elestio.app/uploads/images/gallery/2026-03/embedded-image-7ss9pyjm.png)</figure>5\. After adding it to the working field, double-click on it and set the settings, as in the screenshot

<figure id="bkmrk--5" style="display:block;margin:0px 0px 1em;padding:0px;clear:both;color:rgb(213,214,215);font-family:Roboto, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(34,34,34);">![55226fa1abff660d73587d6bfe6d5b60.png](https://bookstack-support-u7942.vm.elestio.app/uploads/images/gallery/2026-03/embedded-image-6upqezgm.png)</figure>6\. Then click "Expand" at the top right.

<figure id="bkmrk--6" style="display:block;margin:0px 0px 1em;padding:0px;clear:both;color:rgb(213,214,215);font-family:Roboto, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(34,34,34);">![09daf337d013ed41a81f3724086c090b.png](https://bookstack-support-u7942.vm.elestio.app/uploads/images/gallery/2026-03/embedded-image-oescptlt.png)</figure>7\. To send a message, use the square next to the "Inject" function

<figure id="bkmrk--7">![c04318347f88b921e091c4c3bf67acef.png](https://bookstack-support-u7942.vm.elestio.app/uploads/images/gallery/2026-03/embedded-image-h2jb0zvd.png)</figure>