@jep182/n8n-nodes-whatsthat
v0.5.6
Published
n8n community nodes with embedded Baileys runtime for multi-session chat automation
Downloads
1,137
Maintainers
Readme
@jep182/n8n-nodes-whatsthat
WhatsThat lets you connect one or more WhatsApp numbers inside n8n, link chats or groups with simple names, send messages, and react to incoming events.
In the n8n node picker, you will find:
WhatsThatWhatsThat Trigger
You also need one credential:
WhatsThat Runtime
Before You Start
Create WhatsThat Runtime credentials and choose a persistent storage path, for example:
/home/node/.n8n/whatsthatThis folder is used to store session files and local metadata.
Inside WhatsThat you choose:
Section:Session,Linked Chat, orMessageAction: the specific action you want to run
How To Connect Your Number
- Add a
WhatsThatnode. - Set
SectiontoSession. - Set
ActiontoConnect Session. - Fill in:
Session Name: a stable internal name likemain-phoneDisplay Name: a friendly label likeLuca phoneWhatsApp Number: optional, only if you want a pairing code instead of relying only on QR
- Run the node.
- In the output, open
qrCodeUrl.
Open qrCodeUrl as the standard and recommended way to connect the number.
Important:
- open
qrCodeUrlwhenever possible - do not rely on
pairingCode pairingCodeis not stable and may fail or stop working depending on the session state and device behaviorqrDataUrlis available only if you specifically need the raw embedded QR image data
Example:
Session Name: main-phone
Display Name: Luca phone
WhatsApp Number: 393331234567How To Wait Until The Number Is Fully Connected
After Connect Session, add another WhatsThat node:
- Set
SectiontoSession - Set
ActiontoWait Until Connect - Use the same
Session Name - Choose how many seconds to wait in
Timeout Seconds
This second node waits for the already-started session to become fully connected.
How To Link A Group Or Chat Manually
- Add a
WhatsThatnode - Set
SectiontoLinked Chat - Start with
Action = List Discovered Chats - Pick the chat or group you want to use
- Change to
Action = Link Chat - Fill in:
Session NameChat JIDLinked Chat: the simple name you want to use later, for examplesupportorteam
Example:
Linked Chat: supportAfter that, you can send messages by choosing that linked chat instead of writing the raw JID every time.
How To Link A Group Or Chat From WhatsApp
Use WhatsThat Trigger.
- Add a
WhatsThat Triggernode - Select the same
Session Name - Set
EventtoLink Chat Command - Leave the default command or change it
By default, users can send a message like:
/link-whatsthat supportIf that message is sent inside a group or chat, WhatsThat links that conversation with alias support.
This is useful when you want users to self-register a group without opening n8n.
How To Send A Message To A Linked Chat
- Add a
WhatsThatnode - Set
SectiontoMessage - Set
Session Name - Set
Send Message TotoLinked Chat - Choose a linked chat from the dropdown
- Choose
Message Type - Write the message
Example:
Send Message To: Linked Chat
Linked Chat: support
Message Type: Text
Message: Hello from n8nHow To Send A Message To A Number
- Add a
WhatsThatnode - Set
SectiontoMessage - Set
Send Message TotoWhatsApp Number - Enter the number with country code, digits only, without
00and without+
Example:
WhatsApp Number: 393331234567How To Send A Message To Yourself
- Add a
WhatsThatnode - Set
SectiontoMessage - Set
Send Message TotoYourself
WhatsThat uses the number already connected for that session.
This is useful for testing.
How To Send Media
For images and videos you can choose:
Native MediaAs File
Use Media URL for the file you want to send.
Examples:
- send an image preview normally
- send a PDF as a document
- send a video as a file attachment
How To Receive Events
Use WhatsThat Trigger when you want to react to:
- incoming messages
- your own sent messages
- pairing events
- connection events
- group updates
Common examples:
- start a workflow when a message arrives
- auto-link a chat with
/link-whatsthat support - continue a workflow when a session becomes connected
Example Workflow
You can import this example:
It shows the basic flow:
Connect SessionWait Until Connect
Notes
- Use one persistent n8n instance as the owner of these sessions
- Keep the runtime storage path persistent
- If n8n restarts, active in-memory sockets are restarted from the saved session files
Thanks
This project uses Baileys.
License
MIT
