ComfyUI-WA

ComfyUI-WA
★ 50

ComfyUI集成WhatsApp远程控制Windows限定
将ComfyUI与WhatsApp连接,可在WhatsApp中触发、控制并接收ComfyUI工作流结果,便于远程操作与通知。
💡 通过WhatsApp远程触发并接收ComfyUI工作流结果
🍴 4 Forks💻 JavaScript🔄 2024-11-28
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/b6135d9bd930
image
image
download
download (1)
image
image
image
image
image
image
image
image
image
image
image
image
image
image
📄 README

Comfy UI in WhatsApp.

Report Bug

·

Request Feature

About The Project

This project enables the use of ComfyUI Workflows in WhatsApp.

Video Tutorial: Coming Soon!

[!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.

Installation

  • ### Installing Using comfy-cli
  • comfy node registry-install ComfyUI-WA
  • https://registry.comfy.org/publishers/daxcay/nodes/comfyui-wa
  • ### 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.
  • > [!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

    NodeJS Installation

  • In case you have error in automated nodejs installation.
  • https://nodejs.org/en/download/prebuilt-installer
  • Use above link to manually install nodejs.
  • 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

    [!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

    Device Link

    [!IMPORTANT]

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

    Enable Dev Mode

    [!IMPORTANT]

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

    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

    Now upload it in workflow section

    WhatsApp Commands

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

  • Write /wfs to get a numbered list of uploaded workflows.
  • Write /wf id to select the workflow.
  • Write /wns to get numbered list of selected workflow nodes.
  • Write /wn id to get numbered list of inputs available.
  • Write /s node_id input_id value to set value for input selected.
  • Write /sce enable auto ksampler seed change.
  • Write /scd disable auto ksampler seed change.
  • Write /r to reset all to default settings.
  • Write /q to queue.
  • Write /i to interrupt queue.
  • Write /m number to set bot usage mode. 1: Single User, 2: Multi User.’
  • Multi User mode allows some other person to use ComfyUI by directly messaging you!.

    Contact

    Daxton Caylor – ComfyUI Node Developer

  • ### Contact
  • Email – daxtoncaylor+Github@gmail.com
  • Discord Server: https://discord.gg/UyGkJycvyW
  • ### Support
  • Patreon: https://patreon.com/daxtoncaylor
  • Buy me a coffee: https://buymeacoffee.com/daxtoncaylor
  • 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