Actions50
- Message Actions
- Contact Actions
- Account Actions
- Call Actions
- Chat Actions
- Group Actions
- Instance Actions
- Media Actions
- Session Actions
- User Actions
Overview
This node integrates with the WSAPI WhatsApp API, enabling users to perform various operations on WhatsApp resources such as chats, messages, contacts, groups, and more. Specifically, for the Chat resource with the Get Chat operation, it retrieves detailed information about a specific WhatsApp chat by its identifier.
Common scenarios where this node is beneficial include:
- Fetching chat metadata or status for automation workflows.
- Retrieving group or individual chat details to trigger further processing.
- Monitoring chat activity or properties in customer support or sales automation.
For example, you can use this node to get the details of a particular group chat by providing its group ID, then use that data to send targeted messages or analyze chat participation.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the WhatsApp chat to retrieve. For individual contacts, this is the phone number followed by @s.whatsapp.net. For groups, this is the group ID followed by @g.us. Examples: 1234567890@s.whatsapp.net (individual), 120363123456789@g.us (group). |
Output
The node outputs JSON data representing the retrieved chat's details. This typically includes metadata such as chat name, participants, timestamps, message counts, and other relevant chat attributes provided by the WSAPI WhatsApp API.
If the node supports binary data output (not explicitly shown here), it would represent media or attachments related to the chat, but for the Get Chat operation, the primary output is structured JSON describing the chat.
Dependencies
- Requires an active connection to the WSAPI WhatsApp API service.
- Needs an API key credential configured in n8n to authenticate requests.
- The base URL for the WSAPI must be set in the credentials configuration.
Troubleshooting
- Invalid Chat ID: If the provided Chat ID does not exist or is malformed, the node may return an error indicating the chat was not found. Ensure the Chat ID matches the expected format (
phone@s.whatsapp.netfor individuals,groupID@g.usfor groups). - Authentication Errors: Missing or incorrect API credentials will cause authentication failures. Verify that the API key credential is correctly set up.
- Network Issues: Connectivity problems to the WSAPI endpoint can cause timeouts or request failures. Check network access and the base URL configuration.
- Operation Not Implemented: If the operation name is incorrect or unsupported, the node throws an error stating the operation is not implemented. Confirm the operation parameter is set to "getChat" for this use case.
Links and References
- WSAPI WhatsApp API Documentation (general reference for API endpoints and usage)
- WhatsApp Chat Identifiers Format (explains chat ID formats for individuals and groups)
This summary is based solely on static analysis of the provided source code and property definitions.