Nodes Browser

ComfyDeploy: How ComfyUI-WA works in ComfyUI?

What is ComfyUI-WA?

Node to enable WhatsApp in ComfyUI.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI-WA and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

<a id="readme-top"></a>

<br /> <div align="center"> <a href="https://github.com/daxcay/ComfyUI-WA"> <img src="https://github.com/user-attachments/assets/117eab82-ef7a-4199-9a27-68c75ed25861" width="256px" height="128px"> </a> <h3 align="center">Comfy UI in WhatsApp.</h3> <p align="center"> <a href="https://github.com/daxcay/ComfyUI-WA/issues/new?labels=bug&template=bug-report---.md">Report Bug</a> · <a href="https://github.com/daxcay/ComfyUI-WA/issues/new?labels=enhancement&template=feature-request---.md">Request Feature</a> </p> <p align="center"> <img src="https://img.shields.io/badge/version-1.0.0-green" > <img src="https://img.shields.io/badge/last_update-Sept_2024-green" > </p> </div> <br>

About The Project

This project enables the use of ComfyUI Workflows in WhatsApp.

Video Tutorial: Coming Soon!

<br />

[!IMPORTANT] To log out, first stop ComfyUI and delete the user folder from the ComfyUI/WhatsApp directory. Then, restart ComfyUI, and log out from the linked device in WhatsApp.

[!IMPORTANT] Currently, only Windows is supported.

<br>

Installation

  • Installing Using comfy-cli

  • Manual Method

    • Go to your ComfyUI\custom_nodes and Run CMD.
    • Copy and paste this command: git clone https://github.com/daxcay/ComfyUI-WA.git
  • Automatic Method with Comfy Manager

    • Inside ComfyUI > Click the Manager Button on the side.
    • Click Custom Nodes Manager and search for ComfyUI-WA, then install this node.
<br>

[!CAUTION] Update to nodejs version v20.17.0 if you already have it. https://nodejs.org/dist/v20.17.0/node-v20.17.0-x64.msi

[!IMPORTANT]

Restart ComfyUI and Stop ComfyUI before proceeding to next step

<br>

NodeJS Installation

<br>

Setup

Location of WhatsApp folder

ComfyUI Folder

  • Drive:/ComfyUI_windows_portable/WhatsApp

Stable Matrix

  • Full Version: Drive:/StabilityMatrix/Packages/ComfyUI/WhatsApp
  • Portable Version: Drive:/StabilityMatrix/Data/Packages/ComfyUI/WhatsApp

From ComfyUI/WhatsApp folder open whatsapp.json

image

image

[!IMPORTANT] Fill phone_code and phone and save it. this will your admin account.

phone_code is tobe entered without + and -

[!IMPORTANT]

Start ComfyUI before proceeding to next step

<br>

Device Link

[!IMPORTANT]

Login from the same number you defined in whatsapp.json above

download

<br>

Enable Dev Mode

[!IMPORTANT]

Enable dev mode and save workflow in api format to make it compatible.

download (1)

<br>

Uploading WorkFlow

To upload a workflow to be used in in whatsapp use the workflow button in whatsapp dashboard.

[!IMPORTANT]

Attach WA-ImageSaver Node before saving the workflow in api format

image

Now upload it in workflow section

image

<br>

WhatsApp Commands

Writing /c in whatsapp will also provide the list of all commands:

image

  • Write /wfs to get a numbered list of uploaded workflows.

image

  • Write /wf id to select the workflow.

image

  • Write /wns to get numbered list of selected workflow nodes.

image

  • Write /wn id to get numbered list of inputs available.

image

  • Write /s node_id input_id value to set value for input selected.

image

  • Write /sce enable auto ksampler seed change.

image

  • Write /scd disable auto ksampler seed change.

image

  • Write /r to reset all to default settings.

image

  • Write /q to queue.

image

  • Write /i to interrupt queue.

image

  • Write /m number to set bot usage mode. 1: Single User, 2: Multi User.'

image

Multi User mode allows some other person to use ComfyUI by directly messaging you!.

<br>

Contact

Daxton Caylor - ComfyUI Node Developer

<br>

Disclaimer

This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates. The official WhatsApp website can be found at whatsapp.com. "WhatsApp" as well as related names, marks, emblems and images are registered trademarks of their respective owners. Also it is not guaranteed you will not be blocked by using this method. WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe.

I have used NodeJS and Python combined to make this project the library, I am using the following library in nodejs to enable whatsapp functionality.

https://github.com/pedroslopez/whatsapp-web.js