# Want to integrate the WhatsApp with ignition

**URL:** <https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [June 23, 2025, 4:41pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683 "2025-06-23T16:41:38Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [June 23, 2025, 4:41pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/1 "2025-06-23T16:41:38Z")

</div>

Hello all,

Require integrating the WhatsApp with ignition platform.

So, how to do it from scratch?

Does the python` pywhatkit` library is useful or not?

because ignition current jython version 2.7 and `pywhatkit` is not available in to jython 2.7.

So, how to configure?

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [June 23, 2025, 7:45pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/2 "2025-06-23T19:45:42Z")

</div>

Looks like there's an API:

> **[Overview - WhatsApp Cloud API - Documentation - Meta for Developers](https://developers.facebook.com/docs/whatsapp/cloud-api/overview)**
>
> Cloud API, hosted by Meta, overview

It's Graph rather than REST, but you could perhaps sill use it?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 23, 2025, 7:51pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/3 "2025-06-23T19:51:15Z")

</div>

In 8.3, (our [upcoming release](https://docs.inductiveautomation.com/blog/83-release-timeline)) our Twilio module is getting extended with support for Whatsapp, if you can wait for it.

---

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [June 24, 2025, 4:24am UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/4 "2025-06-24T04:24:05Z")

</div>

Ok,  
Is there currently a way to integrate with Ignition?  
Is there an open-source platform that provides an API or is it possible through custom scripting?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 24, 2025, 4:03pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/5 "2025-06-24T16:03:05Z")

</div>

> [@govind](#):
>
> Is there an open-source platform that provides an API or is it possible through custom scripting?

Probably. What have you tried? The 'turn key' solution is not available until 8.3. _Anything_ you can find in the meantime is going to take some effort on your part.

---

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [June 24, 2025, 6:29pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/6 "2025-06-24T18:29:44Z")

</div>

I mean is it possible to through webdev module for whatsApp integration?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 24, 2025, 6:38pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/7 "2025-06-24T18:38:37Z")

</div>

You don't need Webdev for _outgoing_ HTTP calls; you can use [`system.net.httpClient`](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-net/system-net-httpClient) - you'll just have to figure out how to authenticate and make the appropriate requests to Whatsapp.

---

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [July 25, 2025, 9:25am UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/8 "2025-07-25T09:25:37Z")

</div>

I implemented an HTTP POST script in Ignition, which successfully sends messages via a Python-based Web API using the FastAPI framework.

**Ignition HTTP POST SCRIPT.**

```python

	msg = "This is test message from ignition platform."
	client = system.net.httpClient()
	
	url = "http://localhost:5005/send"
	payload = system.util.jsonEncode({
	    "phone": "+7456887611445",
	    "message": msg
	})
	
	response = client.post(
	    url,
	    data=payload,
	    headers={"Content-Type": "application/json"}
	)
	
	params = {"message" : msg}
	system.db.runNamedQuery("insertWhatsAppMsg", params)

```

\*\*API generate python script. \*\* ( **Run through CMD, for example python app.py** )  
**FAST API**

```python
from fastapi import FastAPI, HTTPException, Request
from pydantic import BaseModel
import pywhatkit
import uvicorn
import asyncio

app = FastAPI()

# Define the expected request body
class MessageRequest(BaseModel):
    phone: str
    message: str

@app.post("/send")
async def send_message(req: MessageRequest):
    if not req.phone or not req.message:
        raise HTTPException(status_code=400, detail="Missing phone or message")

    try:
        await asyncio.to_thread(pywhatkit.sendwhatmsg_instantly,req.phone, req.message)
        return {"status": "success", "details": "Message sent"}
    except Exception as e:
        raise HTTPException(status_code=500, detail=str(e))

if __name__ == " __main__":
    uvicorn.run(app, host="0.0.0.0", port=5005)

```

**Problem:** Each time the HTTP POST script is triggered from Ignition, a new WhatsApp Web session is opened in the browser, causing the previous session to close. Ideally, WhatsApp Web should run in the background without launching a new browser window or tab on every execution.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/e/8e9a90ea5ac87d1fd99561197949d347e3b101d2.png)

Is it possible to execute WhatsApp Web in the background (headless mode or via backend service) when sending messages, so that the browser does not visibly open during each message trigger?

- The user should only need to link WhatsApp Web to the mobile device once.
- After the initial linking, message triggers should occur silently, without visibly opening WhatsApp Web in the browser.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 25, 2025, 12:25pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/9 "2025-07-25T12:25:20Z")

</div>

You should not be calling `system.net.httpClient()` for every operation. The `client` object it returns is expected to be **reused**. Place that assignment **outside** your function at the outer level of a project library script module, so that it will be cached.

---

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [July 25, 2025, 1:27pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/10 "2025-07-25T13:27:14Z")

</div>

Still WhatsApp web session opened it into browser when executing script.

**Script package**

```python
client = system.net.httpClient()

def sendWhatsAppMessage(phone, msg):
    url = "http://localhost:5005/send"
    payload = system.util.jsonEncode({
        "phone": phone,
        "message": msg
    })
	
    response = client.post(
        url,
        data=payload,
        headers={"Content-Type": "application/json"}
    )

    params = {"message": msg}
    system.db.runNamedQuery("insertWhatsAppMsg", params)

    return response

```

Above function executing from the ignition script console.

`msg = httpUtils.sendWhatsAppMessage("+7456887611445", "This is test message")`

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 25, 2025, 2:16pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/11 "2025-07-25T14:16:32Z")

</div>

I don't know enough about WhatsApp to help further. I don't think this is Ignition-controlled behavior. (The script console doesn't have any connection to a browser itself.)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 25, 2025, 2:39pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/12 "2025-07-25T14:39:05Z")

</div>

`pywhatkit`, evidently, works by opening and automating a browser tab, not via any kind of API access (ew).

This is 100% the behavior of your choice of external library, not an Ignition problem:

> **[Sending WhatsApp Messages](https://github.com/Ankit404butfound/PyWhatKit/wiki/Sending-WhatsApp-Messages)**
>
> Send WhatsApp message at certain time and many other things. - Ankit404butfound/PyWhatKit

---

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [July 25, 2025, 4:24pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/13 "2025-07-25T16:24:31Z")

</div>

Ok, Will check and update it

---

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [July 25, 2025, 4:25pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/14 "2025-07-25T16:25:07Z")

</div>

Is it possible to execute WhatsApp Web in the background (headless mode or via backend service) when sending messages, so that the browser does not visibly open during each message trigger?

- The user should only need to link WhatsApp Web to the mobile device once.
- After the initial linking, message triggers should occur silently, without visibly opening WhatsApp Web in the browser.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 25, 2025, 4:26pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/16 "2025-07-25T16:26:17Z")

</div>

You're asking me/this forum for help with someone else's third party Python library. Ask them for help.

---

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [July 25, 2025, 4:42pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/17 "2025-07-25T16:42:46Z")

</div>

**Thank you @paul-griffith and @pturmel for your guidance regarding WhatsApp integration.**

If I need any further help, I’ll be message you regarding WhatsApp integration into Ignition.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 25, 2025, 4:44pm UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/18 "2025-07-25T16:44:03Z")

</div>

> [@govind](#):
>
> I’ll be message you

Do not send me a private message. I do not provide free help in private, with just a few commercial exceptions (noted in my profile).

---

<div class="post-metadata">

**Author:** ![Jasmine\_Quick](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jasmine_quick/32/80380_2.png) [@Jasmine\_Quick](https://forum.inductiveautomation.com/u/Jasmine_Quick)\
**Post date:** [February 11, 2026, 7:29am UTC](https://forum.inductiveautomation.com/t/want-to-integrate-the-whatsapp-with-ignition/107683/20 "2026-02-11T07:29:57Z")

</div>

Kymera Systems have a whatsapp module they made, that can be purchased.

> **[Ignition Third-Party Module Showcase](https://inductiveautomation.com/moduleshowcase/module/kymera-systems-inc-kymera-whatsapp-notification-module)**
>
> Easily extend Ignition's core functionality with Third-Party Modules. The Module Showcase is a great place to find a solution that best meets your needs.

When I had a meeting with them about it last year, they mentioned the hardest part is dealing with getting a Meta Developer account, and then having to be mindful of the automatic spam detection.
