npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-whatghl

v0.1.107

Published

Community nodes for WhatGHL integration in n8n.

Readme

n8n-nodes-whatghl

Community nodes for integrating n8n with WhatGHL.

Included nodes

  • WhatGHL Trigger: receives webhook events forwarded by WhatGHL (n8n_webhook_url in subaccount config).
  • WhatGHL: sends actions to POST /actions using subaccount API key.

Installation in n8n

  1. Open Settings -> Community Nodes in your n8n instance.
  2. Click Install.
  3. Use package name: n8n-nodes-whatghl.
  4. Restart n8n if prompted.

Credentials

Create WhatGHL API credentials in n8n:

  • Base URL: your WhatGHL API base URL (example https://api.yourdomain.com)
  • API Key: n8n_api_key generated for the target subaccount

Actions supported

  • Send Text / Image / Video
  • Send Voice / File
  • Send Reaction
  • Send Seen
  • Start Typing / Stop Typing
  • Get All Labels
  • Create Label / Update Label / Delete Label
  • Get Labels For Chat / Save Labels For Chat
  • Get Chats By Label
  • Custom Action (raw payload to /actions)

Session selection (multi-session subaccounts)

  • Session Mode = Auto (default fallback): backend selects a session automatically.
  • Session Mode = By Session Name: the node sends sessionName to /actions.
  • Session Mode = Select Session (Recommended): pick a session from available sessions for the API key; node sends sessionId.
  • Session Name supports n8n expressions, for example {{$json.sessionName}}.

Example payload sent by the node (when session is selected):

{
  "action": "send_message",
  "sessionName": "Session1-0da2bdfd",
  "chatId": "<provided-by-workflow>",
  "content": "Hello from selected session",
  "type": "text"
}

Trigger payload

Expected body from WhatGHL relay:

{
  "subaccountId": "sub_123",
  "sessionName": "AI_US",
  "event": "message.received",
  "sourceEvent": "message",
  "relayReason": "canonical_inbound",
  "type": "message.received",
  "timestamp": 1700000000000,
  "payload": {}
}

Recommended trigger branches

  • Business automation: use message.received as the single inbound source.
  • Delivery/read tracking: use message.ack.
  • Technical diagnostics only: use engine.event.
  • In canonical backend policy, duplicated inbound engine.event -> events.Message is filtered.

License

MIT