# Message using WhatsApp

**URL:** <https://forum.inductiveautomation.com/t/message-using-whatsapp/41967>\
**Category:** Ignition\
**Created:** [January 5, 2021, 8:18am UTC](https://forum.inductiveautomation.com/t/message-using-whatsapp/41967 "2021-01-05T08:18:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom.wouters](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@tom.wouters](https://forum.inductiveautomation.com/u/tom.wouters)\
**Post date:** [January 5, 2021, 8:18am UTC](https://forum.inductiveautomation.com/t/message-using-whatsapp/41967/1 "2021-01-05T08:18:16Z")

</div>

Hello experts,

I have a client that wishes to use whatsapp messages when certain alarms are active.  
Now I know there is an SMS module but i’m wondering if it’s possible to use whatsapp?  
If you guys have any other suggestions that would be perfect aswell!  
Clients just wants the messages on his phone during certain hours to certain groups of people. (Reception in the building isn’t always perfect but wifi is covered)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [January 5, 2021, 9:26am UTC](https://forum.inductiveautomation.com/t/message-using-whatsapp/41967/2 "2021-01-05T09:26:05Z")

</div>

Likely need a 3rd party API. [Sendgrid.com](http://Sendgrid.com) do SMS, not sure about WhatsApp

---

<div class="post-metadata">

**Author:** ![jdefunes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jdefunes/32/20139_2.png) [@jdefunes](https://forum.inductiveautomation.com/u/jdefunes)\
**Post date:** [January 5, 2021, 10:33am UTC](https://forum.inductiveautomation.com/t/message-using-whatsapp/41967/3 "2021-01-05T10:33:14Z")

</div>

Has a lot of work but it is not impossible. [https://developers.facebook.com/docs/whatsapp/getting-started/](https://developers.facebook.com/docs/whatsapp/getting-started/)

---

<div class="post-metadata">

**Author:** ![gopinath.ps](https://avatars.discourse-cdn.com/v4/letter/g/7ea924/32.png) [@gopinath.ps](https://forum.inductiveautomation.com/u/gopinath.ps)\
**Post date:** [January 31, 2023, 6:46am UTC](https://forum.inductiveautomation.com/t/message-using-whatsapp/41967/5 "2023-01-31T06:46:53Z")

</div>

use this for whatsapp integration. for this you need to configure the whatsapp properly in facebook developer account.

```auto
def sendmsg():
	#Set the endpoint URL
	url = "https://graph.facebook.com/v15.0/<your_app_id>/messages"
	#Declare a variable and set the parameters for the endpoint URL
	#Instead of specifying the API call parameters for the endpoint URL in the beginning,
	params= {
		"messaging_product": "whatsapp",
		"to": "<phone_number>",
		"type": "template",
		"template": {
			"name": "sample_issue_resolution",
			"language": {
				"code": "en_US"
			},
			"components": [
					            {
					                "type" : "body",
					                "parameters": [
					                    {
					                        "type": "text",
					                        "text": "<Name> - message from Ignition"
					                    }
									]
								}
						]
					}
			}
	header={"Content-Type": "application/json", "Authorization":"Bearer <your token>"}
	response=system.net.httpClient().post(url=url, data=params, headers=header).json
	#system.net.httpClient(version)
	#Print the output
	print (response)
```
